From 58e57c3bab6102e5584bf3863f9fb7e2198a2bbd Mon Sep 17 00:00:00 2001 From: Diego Garcia Date: Sun, 14 Feb 2016 21:45:19 -0200 Subject: [PATCH 1/3] add `HEADER_COLOR` option to render header with a simple color --- templates/archives.html | 2 ++ templates/article.html | 2 ++ templates/author.html | 2 ++ templates/authors.html | 2 ++ templates/categories.html | 2 ++ templates/category.html | 2 ++ templates/index.html | 2 ++ templates/page.html | 2 ++ templates/period_archives.html | 2 ++ templates/tag.html | 2 ++ templates/tags.html | 2 ++ 11 files changed, 22 insertions(+) diff --git a/templates/archives.html b/templates/archives.html index 5d38c29..15149cb 100755 --- a/templates/archives.html +++ b/templates/archives.html @@ -6,6 +6,8 @@ {% if HEADER_COVER %}
+ {% elif HEADER_COLOR %} +
{% else %}
{% endif %} diff --git a/templates/article.html b/templates/article.html index 4fbdcda..3474864 100755 --- a/templates/article.html +++ b/templates/article.html @@ -93,6 +93,8 @@
{% elif HEADER_COVER %}
+ {% elif HEADER_COLOR %} +
{% else %}
{% endif %} diff --git a/templates/author.html b/templates/author.html index e18b291..5399bbc 100755 --- a/templates/author.html +++ b/templates/author.html @@ -6,6 +6,8 @@ {% if HEADER_COVER %}
+ {% elif HEADER_COLOR %} +
{% else %}
{% endif %} diff --git a/templates/authors.html b/templates/authors.html index 1eb418f..74917a8 100755 --- a/templates/authors.html +++ b/templates/authors.html @@ -6,6 +6,8 @@ {% if HEADER_COVER %}
+ {% elif HEADER_COLOR %} +
{% else %}
{% endif %} diff --git a/templates/categories.html b/templates/categories.html index 789f940..7af5236 100755 --- a/templates/categories.html +++ b/templates/categories.html @@ -6,6 +6,8 @@ {% if HEADER_COVER %}
+ {% elif HEADER_COLOR %} +
{% else %}
{% endif %} diff --git a/templates/category.html b/templates/category.html index 129627d..53b8879 100755 --- a/templates/category.html +++ b/templates/category.html @@ -6,6 +6,8 @@ {% if HEADER_COVER %}
+ {% elif HEADER_COLOR %} +
{% else %}
{% endif %} diff --git a/templates/index.html b/templates/index.html index 227219a..98f8bce 100755 --- a/templates/index.html +++ b/templates/index.html @@ -5,6 +5,8 @@ {% if HEADER_COVER %}
+ {% elif HEADER_COLOR %} +
{% else %}
{% endif %} diff --git a/templates/page.html b/templates/page.html index ee406cf..b7c8d71 100755 --- a/templates/page.html +++ b/templates/page.html @@ -8,6 +8,8 @@
{% elif HEADER_COVER %}
+ {% elif HEADER_COLOR %} +
{% else %}
{% endif %} diff --git a/templates/period_archives.html b/templates/period_archives.html index e45d927..19fdaa9 100755 --- a/templates/period_archives.html +++ b/templates/period_archives.html @@ -6,6 +6,8 @@ {% if HEADER_COVER %}
+ {% elif HEADER_COLOR %} +
{% else %}
{% endif %} diff --git a/templates/tag.html b/templates/tag.html index 8090efd..108d5be 100755 --- a/templates/tag.html +++ b/templates/tag.html @@ -3,6 +3,8 @@ {% block header %} {% if HEADER_COVER %}
+ {% elif HEADER_COLOR %} +
{% else %}
{% endif %} diff --git a/templates/tags.html b/templates/tags.html index 076949d..bab699f 100755 --- a/templates/tags.html +++ b/templates/tags.html @@ -6,6 +6,8 @@ {% if HEADER_COVER %}
+ {% elif HEADER_COLOR %} +
{% else %}
{% endif %} From 081b418aa958f2518183ef69be251c68b31724af Mon Sep 17 00:00:00 2001 From: Diego Garcia Date: Mon, 22 Feb 2016 10:22:01 -0300 Subject: [PATCH 2/3] update readme (add HEAD_COLOR option) --- README.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cb69c36..f6129bd 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,16 @@ To define custom header cover, set the property ``HEADER_COVER`` in ``pelicancon HEADER_COVER = 'static/my_image.png' ``` +### Header Color + +To define a simple header background color, set the property ``HEADER_COLOR`` in ``pelicanconf.py``: + +```python +HEADER_COLOR = 'black' +``` + +you can use any valid css color. + ### Social URLs Github, Twitter and Facebook URLs set these properties: @@ -90,12 +100,12 @@ will not see the desired results. Accept many analytics: - Google Analytics: ``GOOGLE_ANALYTICS``; - - Gauges: ``GAUGES`` + - Gauges: ``GAUGES`` - Piwik: ``PIWIK_URL`` and ``PIWIK_SITE_ID``. ### Twitter cards -Twitter cards are automatically generated if TWITTER_HANDLE is set: +Twitter cards are automatically generated if TWITTER_HANDLE is set: ```python TWITTER_HANDLE = "myprofile" ``` From 4818dbb5f77f4aeccee1edce5a4d0ff33a378c38 Mon Sep 17 00:00:00 2001 From: Diego Garcia Date: Mon, 22 Feb 2016 10:30:50 -0300 Subject: [PATCH 3/3] fix "unsafe" html tags in README markdown --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f6129bd..5f38b81 100644 --- a/README.md +++ b/README.md @@ -46,8 +46,8 @@ If you have new links add them to SOCIAL. The Name has to be the name of the cor You can specify an external feed URL (e.g. FeedBurner) in ``SOCIAL`` using the ``rss`` or ``rss-square`` icons. The icon will be shown in the footer with the -rest of your ``SOCIAL`` accounts. A tag for the external feed will be -placed in instead of the default Pelican feeds. +rest of your ``SOCIAL`` accounts. A ```` tag for the external feed will be +placed in ```` instead of the default Pelican feeds. ### Code highlights @@ -118,7 +118,7 @@ TWITTER_HANDLE = "myprofile" - Set ``SHOW_FULL_ARTICLE`` to True to show full article content on index.html instead of summary; - Set ``SHOW_SITESUBTITLE_IN_HTML`` to True to make use of the ``SITESUBTITLE`` - variable inside the HTML tag; + variable inside the ``<title>`` HTML tag; ### Articles