Skip to content

Commit

Permalink
Upgrade theme for Pelican 3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dflock committed Oct 20, 2013
1 parent d5662f5 commit bae6788
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 12 deletions.
4 changes: 2 additions & 2 deletions static/css/main.css
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
Expand Down
7 changes: 6 additions & 1 deletion static/css/pygments-monokai.css
Expand Up @@ -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 */
.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 */
6 changes: 3 additions & 3 deletions templates/article.html
Expand Up @@ -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 %}
Expand All @@ -13,7 +13,7 @@
<meta name="twitter:image" content="{{ SITEURL }}{{ article.thumbnail }}">
{% else %}
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="{{ SITEURL }}/static/images/favicon-128x128.png">
<meta name="twitter:image" content="{{ SITEURL }}/images/favicon-128x128.png">
{% endif %}
<meta name="twitter:site" content="@{{ TWITTER_USERNAME }}">
<meta name="twitter:title" content="{{ article.title|striptags }}">
Expand All @@ -27,7 +27,7 @@
{% if article.thumbnail %}
<meta property="og:image" content="{{ SITEURL }}{{ article.thumbnail }}"/>
{% else %}
<meta property="og:image" content="{{ SITEURL }}/static/images/favicon-128x128.png"/>
<meta property="og:image" content="{{ SITEURL }}/images/favicon-128x128.png"/>
{% endif %}
<meta property="og:site_name" content="{{ SITENAME }}"/>
<meta property="og:title" content="{{ article.title|striptags }}"/>
Expand Down
12 changes: 6 additions & 6 deletions templates/base.html
Expand Up @@ -4,11 +4,11 @@
<meta charset="utf-8">
<title>{% block title %}{{ SITE_TITLE }}: {{ SITENAME }}{% endblock %}</title>
{# Favicons #}
<meta itemprop="image" content="{% block metaimage %}{{ SITEURL }}/static/images/favicon-128x128.png{% endblock %}">
<meta itemprop="image" content="{% block metaimage %}{{ SITEURL }}/images/favicon-128x128.png{% endblock %}">
<link rel="shortcut icon" href="{{ SITEURL }}/favicon.ico">
<link rel="apple-touch-icon" href="{{ SITEURL }}/static/images/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="{{ SITEURL }}/static/images/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="{{ SITEURL }}/static/images/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" href="{{ SITEURL }}/images/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="{{ SITEURL }}/images/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="{{ SITEURL }}/images/apple-touch-icon-114x114.png">

<meta name="description" itemprop="description" content="{% block description %}{{ SITE_DESCRIPTION }}{% endblock %}" />

Expand Down Expand Up @@ -43,7 +43,7 @@
<meta name="twitter:title" content="{{ SITENAME }}">
<meta name="twitter:description" content="{{ SITE_DESCRIPTION }}">
<meta name="twitter:creator" content="@{{ TWITTER_USERNAME }}">
<meta name="twitter:image" content="{{ SITEURL }}/static/images/favicon-128x128.png">
<meta name="twitter:image" content="{{ SITEURL }}/images/favicon-128x128.png">
<meta name="twitter:domain" content="{{ SITE_DOMAIN }}">
{% endblock %}
{% endif %}
Expand All @@ -53,7 +53,7 @@
<meta property="og:title" content="{{ SITENAME }}"/>
<meta property="og:type" content="blog"/>
<meta property="og:description" content="{{ SITE_DESCRIPTION }}"/>
<meta property="og:image" content="{{ SITEURL }}/static/images/favicon-128x128.png"/>
<meta property="og:image" content="{{ SITEURL }}/images/favicon-128x128.png"/>
<meta property="og:url" content="{{ SITEURL }}"/>
{% endblock %}
{% endif %}
Expand Down

0 comments on commit bae6788

Please sign in to comment.