-
-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for responsive adsense banners #56
Conversation
@@ -25,6 +25,16 @@ The minimalist [Pelican](http://blog.getpelican.com/) theme. | |||
- [Piwik](http://piwik.org/) | |||
- [StatusCake](https://www.statuscake.com/) | |||
|
|||
## Adsense banner |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Settings are documented on Wiki.
@gustavofoa nice, but take a look in my comment at #47 |
@gustavofoa is this OK? |
It is Ok for me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like if a user uses more than one banner it will load ads JS for each banner, this is a shot in the foot, it will increase page load a lot.
JSs file should be loaded async at the page bottom, but as always google want's to load stuff in the head to keep it slow AF. Not sure if it will work, but adsense docs will say it.
Looks like GitHub is having problems, but I'll change the branch of this PR to another, so it wont break anything.
Also, I'll fix this PR tomorrow.
@@ -77,3 +77,13 @@ | |||
ADD_THIS_ID = 'ra-XX3242XX' | |||
|
|||
USE_LESS = True | |||
|
|||
ADSENSE = { | |||
'adClientId' : 'ca-pub-XXXXXXXXXXXXXXXX', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Variables should user only _ not camelCase mixed
I included support to responsive adsense banners on top/bottom of articles and index. And on bottom of aside.