Любая идея, почему мои «Социальные иконки» в моем блоге о пеликанах не отображаются? Вот мои файлы publishconf.py и pelicanconf.py ... Не знаю, что мне попробовать. Я использую тему voce
отсюда: «https://github.com/limbenjamin/voce».
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'nobody'
SITENAME = u'something.com'
SITEURL = ''
PATH = 'content'
TIMEZONE = 'Europe/Something'
DEFAULT_LANG = u'en'
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = 'feeds/all.atom.xml'
CATEGORY_FEED_ATOM = None #'feeds/{slug}.atom.xml'
TRANSLATION_FEED_ATOM = None
TAG_FEED_ATOM = None #'feeds/{slug}.tag.atom.xml'
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
THEME = './voce'
DEFAULT_DATE_FORMAT = "%b, %d, %Y"
USER_LOGO_URL = "https://i.imgur.com/p2NOe77.gif"
# Blogroll
LINKS = (('Index', 'http://something.com'),
('Résumé', 'http://something.com/files/cv.html')
,)
# Social widget
SOCIAL = (('Feed', '/feeds/all.atom.xml'),
('Email', 'mailto:mymail@gmail.com'),
('GitHub', 'https://github.com/mygithub'),
('Facebook', 'https://facebook.com/myfacebook'),
('Twitter', 'https://twitter.com/mytwitter'),
('Linkedin', 'https://www.linkedin.com/in/mylinkedin/'),)
DEFAULT_PAGINATION = 4
ARTICLES_PATHS = ['articles']
TAGS_URL = 'tags.html'
ARCHIVES_URL = 'archives.html'
ARTICLE_URL = 'articles/{date:%Y}/{date:%m}/{date:%d}/{slug}/'
ARTICLE_SAVE_AS = 'articles/{date:%Y}/{date:%m}/{date:%d}/{slug}/index.html'
STATIC_PATHS = ['images']
PAGE_URL = 'pages/{slug}/'
PAGE_SAVE_AS = 'pages/{slug}/index.html'
CATEGORY_URL = 'category/{slug}'
CATEGORY_SAVE_AS = 'category/{slug}/index.html'
TAG_URL = 'tag/{slug}'
TAG_SAVE_AS = 'tag/{slug}/index.html'
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
и 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 *
# If your site is available via HTTPS, make sure SITEURL begins with https://
SITEURL = 'https://something.com'
RELATIVE_URLS = False
FEED_ALL_ATOM = 'feeds/all.atom.xml'
CATEGORY_FEED_ATOM = 'feeds/{slug}.atom.xml'
DELETE_OUTPUT_DIRECTORY = False
# Following items are often useful when publishing
#DISQUS_SITENAME = ""
#GOOGLE_ANALYTICS = ""