{% if article.author and article.author.twitter_id %}
<meta name="twitter:creator:id" content="{{ article.author.twitter_id }}" />
{% endif %}
- <meta property="og:title" content="{{ article.title }}" />
- <meta name="twitter:title" content="{{ article.title }}" />
+ <meta property="og:title" content="{{ article.title|striptags|e }}" />
+ <meta name="twitter:title" content="{{ article.title|striptags|e }}" />
<meta property="og:url" content="{{ article.url|format_siteurl|e }}" />
{% if article.summary %}
<meta property="og:description" content="{{ article.summary|dehyphenate|striptags|e }}" />
<div class="m-row">
<div class="m-col-t-12 m-col-s-10 m-push-s-1 m-col-m-8 m-push-m-2">
{% set title = article.title.split(' — ') %}
- <h1><a href="{{ article.url|format_siteurl|e }}" rel="bookmark" title="Permalink to {{ article.title }}">{{ title[0] }}</a></h1>
+ <h1><a href="{{ article.url|format_siteurl|e }}" rel="bookmark" title="Permalink to {{ article.title|striptags|e }}">{{ title[0] }}</a></h1>
{% if title|length >= 2 %}
<h2>{{ title[1] }}</h2>
{% endif %}
<header>
- <h1><a href="{{ article.url|format_siteurl|e }}" rel="bookmark" title="Permalink to {{ article.title }}">
+ <h1><a href="{{ article.url|format_siteurl|e }}" rel="bookmark" title="Permalink to {{ article.title|striptags|e }}">
<time class="m-date" datetime="{{ article.date.isoformat() }}">
{% set month = article.date.strftime('%b') %}
{% set day = article.date.strftime('%d') %}
{% if author.page and author.page.twitter_id %}
<meta name="twitter:creator:id" content="{{ author.page.twitter_id }}" />
{% endif %}
- <meta property="og:title" content="{% if author.page and author.page.title %}{{ author.page.title }}{% else %}{{ author|e }}{% endif %}" />
- <meta name="twitter:title" content="{% if author.page and author.page.title %}{{ author.page.title }}{% else %}{{ author|e }}{% endif %}" />
+ <meta property="og:title" content="{% if author.page and author.page.title %}{{ author.page.title|striptags|e }}{% else %}{{ author|e }}{% endif %}" />
+ <meta name="twitter:title" content="{% if author.page and author.page.title %}{{ author.page.title|striptags|e }}{% else %}{{ author|e }}{% endif %}" />
<meta property="og:url" content="{{ author.url|format_siteurl|e }}" />
{% if author.page and author.page.summary %}
<meta property="og:description" content="{{ author.page.summary|dehyphenate|striptags|e }}" />
{% endblock %}
{% block social_title_url_image %}
- <meta property="og:title" content="{% if category.page and category.page.title %}{{ category.page.title }}{% else %}{{ category|e }}{% endif %}" />
- <meta name="twitter:title" content="{% if category.page and category.page.title %}{{ category.page.title }}{% else %}{{ category|e }}{% endif %}" />
+ <meta property="og:title" content="{% if category.page and category.page.title %}{{ category.page.title|striptags|e }}{% else %}{{ category|e }}{% endif %}" />
+ <meta name="twitter:title" content="{% if category.page and category.page.title %}{{ category.page.title|striptags|e }}{% else %}{{ category|e }}{% endif %}" />
<meta property="og:url" content="{{ category.url|format_siteurl|e }}" />
{% if category.page and category.page.summary %}
<meta property="og:description" content="{{ category.page.summary|dehyphenate|striptags|e }}" />
{% block social %}
<meta property="og:site_name" content="{{ SITENAME|e }}" />
- <meta property="og:title" content="{{ page.title }}" />
- <meta name="twitter:title" content="{{ page.title }}" />
+ <meta property="og:title" content="{{ page.title|striptags|e }}" />
+ <meta name="twitter:title" content="{{ page.title|striptags|e }}" />
<meta property="og:url" content="{{ page.url|format_siteurl|e }}" />
{% if page.summary %}
<meta property="og:description" content="{{ page.summary|dehyphenate|striptags|e }}" />
{% endblock %}
{% block social_title_url_image %}
- <meta property="og:title" content="{% if tag.page and tag.page.title %}{{ tag.page.title }}{% else %}{{ tag|e }}{% endif %}" />
- <meta name="twitter:title" content="{% if tag.page and tag.page.title %}{{ tag.page.title }}{% else %}{{ tag|e }}{% endif %}" />
+ <meta property="og:title" content="{% if tag.page and tag.page.title %}{{ tag.page.title|striptags|e }}{% else %}{{ tag|e }}{% endif %}" />
+ <meta name="twitter:title" content="{% if tag.page and tag.page.title %}{{ tag.page.title|striptags|e }}{% else %}{{ tag|e }}{% endif %}" />
<meta property="og:url" content="{{ tag.url|format_siteurl|e }}" />
{% if tag.page and tag.page.summary %}
<meta property="og:description" content="{{ tag.page.summary|dehyphenate|striptags|e }}" />
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
-SOCIAL = (
- ('Twitter', 'https://twitter.com/colmmacuait'),
- ('Google+', 'https://plus.google.com/u/0/115774225464003520154/posts'),
- )
-TWITTER_USERNAME = 'colmmacuait'
-
DEFAULT_PAGINATION = 10
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
TYPOGRIFY = True
-THEME = 'cjwatson-theme'
+
+THEME = 'm.css/pelican-theme'
+THEME_STATIC_DIR = 'static'
+THEME_STATIC_PATHS = ['static', '../../static']
+DIRECT_TEMPLATES = ['index']
+
+M_CSS_FILES = [
+ 'static/source-sans-pro.css',
+ 'static/source-code-pro.css',
+ 'static/m-dark.css',
+ ]
+M_THEME_COLOR = '#22272e'
+
+PLUGIN_PATHS = ['m.css/plugins']
+PLUGINS = ['m.htmlsanity']
+
+M_HIDE_ARTICLE_SUMMARY = True
+M_LINKS_FOOTER1 = [
+ ('Social', ''),
+ ('Twitter', 'https://twitter.com/colmmacuait'),
+ ('RSS feed', FEED_ALL_ATOM),
+ ]
+M_SOCIAL_TWITTER_SITE = '@colmmacuait'
--- /dev/null
+/* https://fonts.google.com/specimen/Source+Code+Pro
+ * https://fonts.googleapis.com/css?family=Source+Code+Pro:400,400i,600
+ */
+@font-face {
+ font-family: 'Source Code Pro';
+ font-style: italic;
+ font-weight: 400;
+ src: url(HI_QiYsKILxRpg3hIP6sJ7fM7PqlONvUlMc.ttf) format('truetype');
+}
+@font-face {
+ font-family: 'Source Code Pro';
+ font-style: normal;
+ font-weight: 400;
+ src: url(HI_SiYsKILxRpg3hIP6sJ7fM7PqlPevT.ttf) format('truetype');
+}
+@font-face {
+ font-family: 'Source Code Pro';
+ font-style: normal;
+ font-weight: 600;
+ src: url(HI_XiYsKILxRpg3hIP6sJ7fM7Pqt4s_Ds-cv.ttf) format('truetype');
+}
--- /dev/null
+/* https://fonts.google.com/specimen/Source+Sans+Pro
+ * https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i
+ */
+@font-face {
+ font-family: 'Source Sans Pro';
+ font-style: italic;
+ font-weight: 400;
+ src: url(6xK1dSBYKcSV-LCoeQqfX1RYOo3qPZ7nsDc.ttf) format('truetype');
+}
+@font-face {
+ font-family: 'Source Sans Pro';
+ font-style: italic;
+ font-weight: 600;
+ src: url(6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZY4lCds18E.ttf) format('truetype');
+}
+@font-face {
+ font-family: 'Source Sans Pro';
+ font-style: normal;
+ font-weight: 400;
+ src: url(6xK3dSBYKcSV-LCoeQqfX1RYOo3qOK7g.ttf) format('truetype');
+}
+@font-face {
+ font-family: 'Source Sans Pro';
+ font-style: normal;
+ font-weight: 600;
+ src: url(6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwlxdr.ttf) format('truetype');
+}