pelican-clean-blog
pelican-clean-blog copied to clipboard
"SOCIAL" links not updating on published site
I've updated pelicanconfg.py
and added
# Social widget
SOCIAL = (('linkedin', 'https://linkedin.com/in/{a_linked_in_profile}'),
('twitter', 'https://twitter.com/{a_twitter_user}'),
('instagram', 'https://instagram.com/{an_instagram_homepage}/'),
)
After that, I've cleaned, published the site with # make clean && make publish
but the social links on the site-footer are not reflecting the updates. And are simply empty links pointing to the site itself. I am using a 2 day old clone of the main repo branch (https://github.com/gilsondev/pelican-clean-blog.git
)
Furthermore, even though I have LinkedIn, Twitter and Instagram SOCIAL
elements on my pelicanconf.py
file, the default Twitter, Facebook & Instagram icons show up instead. I am sure that's just another symptom of the same problem.
I think I've followed instructions fairly close --indeed, this is not the first theme I've thrown on top of Pelican-- but the others' I've tried are behaving as expected in regards to the SOCIAL links.
Is your config file named pelicanconfg.py
or pelicanconf.py
? Also check if publishconf.py
doesn't override these settings. If possible upload your config files to take a look.
I checked, its pelicanconf.py
; here is its content (sans-redacted details)
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'[*******]'
COLOR_SCHEMA_CSS = 'monokai.css'
DEFAULT_LANG = u'en'
DEFAULT_PAGINATION = 10
GZIP_CACHE = True
PATH = 'content'
SITENAME = u'[*******]'
SITESUBTITLE = u'[*******]'
SITEURL = '[*******]'
TIMEZONE = 'America/Chicago'
# Feed generation is usually not desired when developing
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
CATEGORY_FEED_ATOM = None
FEED_ALL_ATOM = None
TRANSLATION_FEED_ATOM = None
# Blogroll
#LINKS =( )
# Social widget
SOCIAL = (('linkedin', 'https://linkedin.com/in/[*******]'),
('twitter', 'https://twitter.com/[*******]'),
('instagram', 'https://instagram.com/[*******]/'),
)
# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = True
#THEME = "blueidea"
THEME = "clean-blog"
STATIC_PATHS = ['images', 'extra/robots.txt', 'extra/favicon.ico']
EXTRA_PATH_METADATA = {
'extra/robots.txt': {'path': 'robots.txt'},
'extra/favicon.ico': {'path': 'favicon.ico'}
}
And here is my publishconf.py
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
# This file is only used if you use `make publish` or
# explicitly specify it as your config file.
import os
import sys
sys.path.append(os.curdir)
from pelicanconf import *
CATEGORY_FEED_ATOM = 'feeds/%s.atom.xml'
DELETE_OUTPUT_DIRECTORY = True
DISQUS_SITENAME = "[******]"
FEED_ALL_ATOM = 'feeds/all.atom.xml'
GOOGLE_ANALYTICS = "UA-[******]-1"
RELATIVE_URLS = False
#SHOW_SOCIAL_ON_INDEX_PAGE_HEADER = True
I did search through the base template, and I could not find any reference to SOCIAL
at all. I did find FACEBOOK_URL
, TWITTER_URL
and GITHUB_URL
explicitly. Is there perhaps a disconnect on the documentation? i.e. instead of indicating the use of this:
# Social widget
SOCIAL = (('linkedin', 'https://linkedin.com/in/[*******]'),
('twitter', 'https://twitter.com/[*******]'),
('instagram', 'https://instagram.com/[*******]/'),
)
Should it be in this form instead...?
TWITTER_URL = ''
FACEBOOK_URL = ''
That is not dynamic though and it would require updating base.html
if another "social" platform or blogroll needs to be added.
See: https://github.com/gilsondev/pelican-clean-blog/blob/master/templates/base.html#L159
which branch/repo are you looking at ? Are you by any chance using something old ?
@onemorepereira you resolved this?