diff options
author | makefu <github@syntax-fehler.de> | 2014-05-21 18:26:18 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2014-05-21 18:26:18 +0200 |
commit | 720176d791425eacb777979a5041f63ade48eae5 (patch) | |
tree | f9972b0347f23297183c9811efc5427106a1fd0b /pelican-themes/gum/templates/sidebar.html | |
parent | b58fa13180981afce4f17b4d59b739d79a5873f5 (diff) |
add theme
Diffstat (limited to 'pelican-themes/gum/templates/sidebar.html')
-rw-r--r-- | pelican-themes/gum/templates/sidebar.html | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/pelican-themes/gum/templates/sidebar.html b/pelican-themes/gum/templates/sidebar.html new file mode 100644 index 0000000..25b22e4 --- /dev/null +++ b/pelican-themes/gum/templates/sidebar.html @@ -0,0 +1,53 @@ +<div class="three columns"> + +<h4>Pages</h4> + + <ul> + {% for title, link in MENUITEMS %} + <li><a href="{{ link }}">{{ title }}</a></li> + {% endfor %} + {% if DISPLAY_PAGES_ON_MENU %} + {% for p in PAGES %} + <li{% if p == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li> + {% endfor %} + {% else %} + {% if DISPLAY_CATEGORIES_ON_MENU %} + {% for cat, null in categories %} + <li{% if cat == category %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li> + {% endfor %} + {% endif %} + {% endif %} + </ul> + +<h4>Categories</h4> +{% if categories %} +<ul> + {% for cat, null in categories %} + <li><a href="{{ SITEURL }}/{{ cat.url|e }}">{{ cat }}</a></li> + {% endfor %} +</ul> +{% endif %} + + +<h4>Tags</h4> +{% if tags %} + <ul> + {% for tag in tag_cloud %} + <li class="tag-{{ tag.1 }}"><a href="{{ SITEURL }}/{{ tag.0.url }}">{{ tag.0|e }}</a></li> + {% endfor %} +</ul> +{% endif %} + + +{% if SOCIAL %} +<nav class="widget"> + <h4>Social</h4> + <ul> + {% for name, url in SOCIAL %} + <li><a href="{{ url|e }}">{{ name }}</a></li> + {% endfor %} + </ul> +</nav> +{% endif %} + +</div> |