{{ article.title }}
--
diff --git a/pelicanconf_lite.py b/pelicanconf_lite.py index 13e24c5..35fa18a 100644 --- a/pelicanconf_lite.py +++ b/pelicanconf_lite.py @@ -26,10 +26,10 @@ MARKDOWN = { 'markdown.extensions.codehilite': {'css_class': 'highlight'}, 'markdown.extensions.extra': {}, 'markdown.extensions.meta': {}, - #'markdown.extensions.toc': { - # 'toc_depth': '2-3', - # 'anchorlink': True, - #}, + 'markdown.extensions.toc': { + 'toc_depth': '2-3', + 'anchorlink': True, + }, }, 'output_format': 'html5', } diff --git a/publishconf_lite.py b/publishconf_lite.py index cd64335..913e535 100644 --- a/publishconf_lite.py +++ b/publishconf_lite.py @@ -26,10 +26,10 @@ MARKDOWN = { 'markdown.extensions.codehilite': {'css_class': 'highlight'}, 'markdown.extensions.extra': {}, 'markdown.extensions.meta': {}, - #'markdown.extensions.toc': { - # 'toc_depth': '2-3', - # 'anchorlink': True, - #}, + 'markdown.extensions.toc': { + 'toc_depth': '2-3', + 'anchorlink': True, + }, }, 'output_format': 'html5', } @@ -56,8 +56,10 @@ TAGS_SAVE_AS = '' INDEX_SAVE_AS = 'index.html' ARTICLE_URL = '{slug}/' -ARTICLE_SAVE_AS = '{slug}/index.html' +ARTICLE_SAVE_AS = '{category}/{slug}/index.html' PAGE_URL = '{slug}/' PAGE_SAVE_AS = '{slug}/index.html' +CATEGORY_URL = '{slug}/' +CATEGORY_SAVE_AS = '{slug}/index.html' PROD = True diff --git a/themes/lite/templates/article.html b/themes/lite/templates/article.html index 5a44cd8..c3994ff 100644 --- a/themes/lite/templates/article.html +++ b/themes/lite/templates/article.html @@ -1,62 +1,56 @@ {% extends "base.html" %} -{% block title %}{{ SITENAME }} - {{ article.title|striptags }}{% endblock %} - -{% block head %} - {{ super() }} - - {% if article.date %} - - {% endif %} - - {% if article.summary %} - - - {% endif %} - - {% if article.category %} - - {% endif %} - - {% for tag in article.tags %} - - {% endfor %} - -{% endblock %} - -{% block info %} - Tanner Collin -
+{% block style %} +.summary { + font-style: italic; +} +.metadata { + color: #555; +} +pre { + font-size: 0.9rem; + line-height: 1.2; + padding: 1rem; + overflow-x: auto; + background-color: #ddd; +} +:not(pre)>code { + padding: 0 2px; + font-size: 0.8rem; + background-color: #ddd; +} +.aside { + display: inline; + float: left; + position: relative; + width: 8rem; + margin-left: -9rem; + font-size: 0.9rem; +} +img { + width: 100%; + height: auto; +} {% endblock %} {% block content %} +