Docs.
This commit is contained in:
parent
fc0724e495
commit
798ddee7bd
16 changed files with 452 additions and 0 deletions
34
docs/content/articles/flex-pelican-theme-2.1.md
Normal file
34
docs/content/articles/flex-pelican-theme-2.1.md
Normal file
|
@ -0,0 +1,34 @@
|
|||
Title: Flex 2.1
|
||||
Date: 2016-11-16 08:00
|
||||
Modified: 2016-11-16 08:00
|
||||
Category: News
|
||||
Tags: pelican, python, theme
|
||||
Slug: flex-pelican-theme-update-2-1
|
||||
Cover: images/flex-screenshot.png
|
||||
|
||||
[Flex theme](https://github.com/alexandrevicenzi/Flex) 2.1 comes with a feature that I was delaying for so long.
|
||||
Flex 2.1 adds support for Google AdSense.
|
||||
|
||||
If you choose wisely, ads are a way to win some money, but if not, you may loose your users due to excessive use of ads.
|
||||
|
||||
Flex has six places for ads. Google recommends up to 3 ads per page. There is ads page only, and banner that appears on all pages.
|
||||
Below you can see how to enable ads in your pelican configuration file.
|
||||
|
||||
```python
|
||||
GOOGLE_ADSENSE = {
|
||||
'ca_id': 'ca-pub-1234567890', # Your AdSense ID
|
||||
'page_level_ads': True, # Allow Page Level Ads (mobile)
|
||||
'ads': {
|
||||
'aside': '1234561', # Side bar banner (all pages)
|
||||
'main_menu': '1234562', # Banner before main menu (all pages)
|
||||
'index_top': '1234563', # Banner after main menu (index only)
|
||||
'index_bottom': '1234564', # Banner before footer (index only)
|
||||
'article_top': '1234565', # Banner after article title (article only)
|
||||
'article_bottom': '1234566', # Banner after article content (article only)
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Version 2.1 also comes with new translations. You can see available translations [here](https://github.com/alexandrevicenzi/Flex/wiki/Translations).
|
||||
|
||||
Hope you enjoy this version.
|
Loading…
Add table
Add a link
Reference in a new issue