diff --git a/content/images/fi.png b/content/images/fi.png new file mode 100644 index 0000000..14b9169 Binary files /dev/null and b/content/images/fi.png differ diff --git a/pelicanconf.py b/pelicanconf.py index 6b2806d..7b2457f 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -4,9 +4,11 @@ from __future__ import unicode_literals AUTHOR = 'rra' SITENAME = 'Wtt�F' -SITEURL = '' +SITEURL = 'https://roelof.info/~r/wttf/' SUBTITLE=" a project about federated social media and open source design" +FEATURED_IMAGE = SITEURL + 'images/fi.png' + PATH = 'content' THEME = 'theme/wttf' THEME_STATIC_DIR = 'theme/' diff --git a/theme/wttf/static/main.css b/theme/wttf/static/main.css index 47ddb77..c54f798 100644 --- a/theme/wttf/static/main.css +++ b/theme/wttf/static/main.css @@ -108,7 +108,7 @@ header{ line-height: 1.35; color:white; background-color: #fb4817; - background: linear-gradient(to bottom, #7e2502, #ff4800, #e2dede); + background: linear-gradient(to bottom, salmon, #ff7f4d, #e2dede); } #menu.main{ position: relative; diff --git a/theme/wttf/templates/base.html b/theme/wttf/templates/base.html index 85b8ae7..3978258 100644 --- a/theme/wttf/templates/base.html +++ b/theme/wttf/templates/base.html @@ -8,6 +8,9 @@ + {% from 'syndication.html' import syndication with context %} + {{ syndication(article) }} + {% if FEED_ALL_ATOM %} diff --git a/theme/wttf/templates/syndication.html b/theme/wttf/templates/syndication.html new file mode 100644 index 0000000..ea55fb6 --- /dev/null +++ b/theme/wttf/templates/syndication.html @@ -0,0 +1,63 @@ +{#This template is for syndicating across the fucked up part of the web. It implements Open Graph and Twitter Card metadata to display links to HBSC well on social media +# This code is mostly taken from Talha Mansoor's Elegant pelican theme https://github.com/talha131/pelican-elegant +#} + +{# Thumbnail image to show when homepage is shared on social media. It also +serves as the default image for posts whose featured_image is not set. #} +{% if not FEATURED_IMAGE %} +{% set FEATURED_IMAGE = 'https://roelof.info/~r/wttf/images/fi.png' %} +{% else %} +{% set FEATURED_IMAGE = FEATURED_IMAGE %} +{% endif %} + + +{% macro syndication(article) %} +{% if article %} + + + + + +{% if article.date %} + +{% endif %} +{% if article.locale_modified and article.modified %} + +{% endif %} + + + +{% if article.featured_image %} + {% if I18N_SUBSITES %} + {% for lang, url in I18N_SUBSITES.items() %} + {% if lang == 'en' %} + + + + {% endif %} + {% endfor %} +{% endif %} +{% else %} +{% if FEATURED_IMAGE %} + + + {% endif %} +{% endif %} +{% endif %} +{% if not article %} + + + + + + + + +{% if FEATURED_IMAGE %} + + +{% endif %} +{% endif %} +{% endmacro %}b + +