aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap2
diff options
context:
space:
mode:
authorJiachen Yang <farseerfc@gmail.com>2012-03-21 11:33:22 +0900
committerJiachen Yang <farseerfc@gmail.com>2012-03-21 11:33:22 +0900
commitfef5e152410db0d4daf25fc31cd321475d4230c3 (patch)
treeefb912a7d68397bd3e374d096797f354a6d0f498 /bootstrap2
parentacdc2b5399e5afca3926335a09284697a8367b43 (diff)
downloadpelican-themes-fef5e152410db0d4daf25fc31cd321475d4230c3.zip
pelican-themes-fef5e152410db0d4daf25fc31cd321475d4230c3.tar.gz
pelican-themes-fef5e152410db0d4daf25fc31cd321475d4230c3.tar.bz2
put sidebar on right side which is more common for blogs. Links under contents on mobile devices
Diffstat (limited to 'bootstrap2')
-rw-r--r--bootstrap2/templates/sidebar.html43
1 files changed, 43 insertions, 0 deletions
diff --git a/bootstrap2/templates/sidebar.html b/bootstrap2/templates/sidebar.html
new file mode 100644
index 0000000..fb94733
--- /dev/null
+++ b/bootstrap2/templates/sidebar.html
@@ -0,0 +1,43 @@
+<ul class="nav nav-list">
+{% if LINKS %}
+<li class="nav-header"><h4><i class="icon-external-link"></i>blogroll</h4></li>
+{% for name, link in LINKS %}
+ <li><i class="icon-external-link"></i><a href="{{ link }}">{{ name }}</a></li>
+{% endfor %}
+{% endif %}
+{% if SOCIAL %}
+<li class="nav-header"><h4><i class="icon-home icon-large"></i> social</h4></li>
+<li><a href="{{ SITEURL }}/{{ FEED }}" rel="alternate"><i class="icon-bookmark icon-large"></i>atom feed</a></li>
+{% if FEED_RSS %}
+<li><a href="{{ SITEURL }}/{{ FEED_RSS }}" rel="alternate"><i class="icon-bookmark icon-large"></i>rss feed</a></li>
+{% endif %}
+{% for name, link in SOCIAL %}
+ <li><a href="{{ link }}"><i class="icon-{{ name }}-sign icon-large"></i>{{ name }}</a></li>
+{% endfor %}
+{% endif %}
+
+<li class="nav-header"><h4><i class="icon-folder-close icon-large"></i>Categories</h4></li>
+{% for cat, null in categories %}
+<li>
+<a href="{{ SITEURL }}/category/{{ cat }}.html">
+ <i class="icon-folder-open icon-large"></i>{{ cat }}
+</a>
+</li>
+{% endfor %}
+
+<li class="nav-header"><h4><i class="icon-tags icon-large"></i>Tags</h4></li>
+{% for tag in tag_cloud %}
+<li class="tag-{{ tag.1 }}">
+ <a href="{{ SITEURL }}/tag/{{ tag.0 }}.html">
+ <i class="icon-tag icon-large"></i>{{ tag.0 }}
+ </a>
+</li>
+{% endfor %}
+
+{% include 'twitter_profile.html' %}
+{% include 'search_sidebar.html' %}
+
+{% if SIDEBAR_CUSTOM %}
+ {{ SIDEBAR_CUSTOM }}
+{% endif %}
+</ul> \ No newline at end of file