From bae678828b4535fcece8327c0f2dbae63bf4c92f Mon Sep 17 00:00:00 2001 From: Duncan Lock Date: Sat, 19 Oct 2013 18:55:17 -0700 Subject: [PATCH] Upgrade theme for Pelican 3.3 --- static/css/main.css | 4 ++-- static/css/pygments-monokai.css | 7 ++++++- templates/article.html | 6 +++--- templates/base.html | 12 ++++++------ 4 files changed, 17 insertions(+), 12 deletions(-) diff --git a/static/css/main.css b/static/css/main.css index f29be7a..f9d58f3 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -67,7 +67,7 @@ h1 { .blog-header, .blog-footer { padding: 16px 0; - background: #2C71B8 url(/static/images/blueprint-background.png) repeat; + background: #2C71B8 url(/images/blueprint-background.png) repeat; color: #fff; margin-bottom: 1em; } @@ -377,7 +377,7 @@ h1 { .content div.note, .content div.caution { padding: 0.25em 1em; - background: #2C71B8 url(/static/images/blueprint-background.png); + background: #2C71B8 url(/images/blueprint-background.png); color: #fff; border: 1px solid #3C7CBD; border-radius: 4px; diff --git a/static/css/pygments-monokai.css b/static/css/pygments-monokai.css index 6429a3a..4ea9a23 100644 --- a/static/css/pygments-monokai.css +++ b/static/css/pygments-monokai.css @@ -56,4 +56,9 @@ .highlight .vc { color: #f8f8f2 } /* Name.Variable.Class */ .highlight .vg { color: #f8f8f2 } /* Name.Variable.Global */ .highlight .vi { color: #f8f8f2 } /* Name.Variable.Instance */ -.highlight .il { color: #ae81ff } /* Literal.Number.Integer.Long */ \ No newline at end of file +.highlight .il { color: #ae81ff } /* Literal.Number.Integer.Long */ + +.highlight .gh { color: #fff; } /* Generic Heading & Diff Header */ +.highlight .gu { color: #75715e; } /* Generic.Subheading & Diff Unified/Comment? */ +.highlight .gd { color: #f92672; } /* Generic.Deleted & Diff Deleted */ +.highlight .gi { color: #a6e22e; } /* Generic.Inserted & Diff Inserted */ diff --git a/templates/article.html b/templates/article.html index f874321..ce977dc 100644 --- a/templates/article.html +++ b/templates/article.html @@ -2,7 +2,7 @@ {% block pageschema %}{{ article.schema|d(DEFAULT_PAGESCHEMA) }}{% endblock %} -{% block metaimage %}{{ SITEURL }}{{ article.thumbnail|d('/static/images/favicon-128x128.png') }}{% endblock %} +{% block metaimage %}{{ SITEURL }}{{ article.thumbnail|d('/images/favicon-128x128.png') }}{% endblock %} {% block title %}{{ article.title|striptags }}: {{ SITENAME }}{% endblock %} {% block description %}{{ article.meta_description|d(article.summary|striptags|striptags|striptags) }}{% endblock %} @@ -13,7 +13,7 @@ {% else %} - + {% endif %} @@ -27,7 +27,7 @@ {% if article.thumbnail %} {% else %} - + {% endif %} diff --git a/templates/base.html b/templates/base.html index bca68d1..02cdc67 100644 --- a/templates/base.html +++ b/templates/base.html @@ -4,11 +4,11 @@ {% block title %}{{ SITE_TITLE }}: {{ SITENAME }}{% endblock %} {# Favicons #} - + - - - + + + @@ -43,7 +43,7 @@ - + {% endblock %} {% endif %} @@ -53,7 +53,7 @@ - + {% endblock %} {% endif %}