Bug fix: download count style should only be added
once, at the end of the head section.
This commit is contained in:
parent
8176247f10
commit
16d5d11b86
|
@ -91,8 +91,7 @@ class GoogleAnalyticsPlugin(SingletonPlugin):
|
||||||
if show_downloads:
|
if show_downloads:
|
||||||
stream = stream | Transformer('//a[contains(@class, "resource-url-analytics")]')\
|
stream = stream | Transformer('//a[contains(@class, "resource-url-analytics")]')\
|
||||||
.apply(download_adder)
|
.apply(download_adder)
|
||||||
stream = stream | Transformer('//link[@rel="stylesheet"]')\
|
stream = stream | Transformer('//head').append(HTML(download_style))
|
||||||
.append(HTML(download_style))
|
|
||||||
|
|
||||||
return stream
|
return stream
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue