chiark / gitweb /
site: use the new global social meta tags.
authorVladimír Vondruš <mosra@centrum.cz>
Sat, 16 Dec 2017 16:52:20 +0000 (17:52 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Sat, 16 Dec 2017 16:52:20 +0000 (17:52 +0100)
doc/static/site.jpg [new file with mode: 0644]
site/pelicanconf.py

diff --git a/doc/static/site.jpg b/doc/static/site.jpg
new file mode 100644 (file)
index 0000000..cae6642
Binary files /dev/null and b/doc/static/site.jpg differ
index 85efd76305b86ceaf143404580112cfdafe30cec..9ab0938a8d7b05adae507e674687939ea8d03373 100644 (file)
@@ -29,9 +29,6 @@ M_SITE_LOGO_TEXT = 'm.css'
 SITENAME = 'm.css'
 SITEURL = ''
 
-M_BLOG_NAME = 'm.css example articles'
-M_BLOG_URL = 'examples/'
-
 STATIC_URL = '{path}'
 
 PATH = 'content'
@@ -51,6 +48,14 @@ TRANSLATION_FEED_ATOM = None
 AUTHOR_FEED_ATOM = None
 AUTHOR_FEED_RSS = None
 
+M_BLOG_NAME = "m.css example articles"
+M_BLOG_URL = 'examples/'
+
+M_SOCIAL_TWITTER_SITE = '@czmosra'
+M_SOCIAL_TWITTER_SITE_ID = 1537427036
+M_SOCIAL_IMAGE = 'static/site.jpg'
+M_SOCIAL_BLOG_SUMMARY = 'Example articles for the m.css Pelican theme'
+
 M_LINKS_NAVBAR1 = [('Why?', 'why/', 'why', []),
                    ('CSS', 'css/', 'css', [
                         ('Grid system', 'css/grid/', 'css/grid'),
@@ -139,16 +144,18 @@ M_HTMLSANITY_HYPHENATION = True
 M_DOX_TAGFILES = [
     ('../doc/doxygen/corrade.tag', 'http://doc.magnum.graphics/corrade/', ['Corrade::'])]
 
-DIRECT_TEMPLATES = []
+DIRECT_TEMPLATES = ['archives']
 
 PAGE_URL = '{slug}/'
 PAGE_SAVE_AS = '{slug}/index.html'
+ARCHIVES_URL = 'examples/'
+ARCHIVES_SAVE_AS = 'examples/index.html'
 ARTICLE_URL = '{category}/{slug}/'
 ARTICLE_SAVE_AS = '{category}/{slug}/index.html'
 AUTHOR_URL = 'author/{slug}/'
 AUTHOR_SAVE_AS = 'author/{slug}/index.html'
-CATEGORY_URL = '{slug}/'
-CATEGORY_SAVE_AS = '{slug}/index.html'
+CATEGORY_URL = 'examples/' # Aliases with the archives page
+CATEGORY_SAVE_AS = '' # The archives page is used instead
 TAG_URL = 'tag/{slug}/'
 TAG_SAVE_AS = 'tag/{slug}/index.html'