mirror of
https://github.com/nairobilug/pelican-alchemy.git
synced 2024-12-30 12:15:06 +01:00
social buttons on articles
This commit is contained in:
parent
43f23f05b9
commit
c4da5c9734
4 changed files with 73 additions and 0 deletions
13
README.md
13
README.md
|
|
@ -53,6 +53,19 @@ An RSS icon will also appear on the nav if `FEED_ATOM` or `FEED_RSS` is set.
|
|||
| GOOGLE_ANALYTICS_DOMAIN | TEXT | Google analytics |
|
||||
| GOOGLE_ANALYTICS_ID | TEXT | Google analytics |
|
||||
|
||||
To include social buttons on articles add the following.
|
||||
|
||||
| Config | Type | Description |
|
||||
| ------------------------- | ---------- | ------------------------- |
|
||||
| TWITTER_USERNAME | TEXT | Twitter username |
|
||||
| CUSTOM_ARTICLE_FOOTERS | DICT | Add sharing.html |
|
||||
| CUSTOM_SCRIPTS_ARTICLE | TEXT | Add sharing_scripts.html |
|
||||
|
||||
An example of pelicanconf.py file for adding social buttons.
|
||||
|
||||
TWITTER_USERNAME = "your twitter username"
|
||||
CUSTOM_ARTICLE_FOOTERS = ('sharing.html',)
|
||||
CUSTOM_SCRIPTS_ARTICLE = "sharing_scripts.html"
|
||||
|
||||
## Live Demo
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue