aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2016-08-02 23:11:21 +0200
committerWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2016-08-02 23:11:21 +0200
commita2d766dce88b7f7b1189df4b466ef2ac20454b8d (patch)
tree7198802d1869ae8c5c3433c93186e9b8b29597d3
parent25394160f2621bc701bbb635fb53572a44574847 (diff)
downloadpelican-themes-a2d766dce88b7f7b1189df4b466ef2ac20454b8d.zip
pelican-themes-a2d766dce88b7f7b1189df4b466ef2ac20454b8d.tar.gz
pelican-themes-a2d766dce88b7f7b1189df4b466ef2ac20454b8d.tar.bz2
add possibility to define links to arbitrary content on the sidebar
-rw-r--r--pelican-bootstrap3/static/css/style.css4
-rw-r--r--pelican-bootstrap3/templates/includes/sidebar.html16
2 files changed, 20 insertions, 0 deletions
diff --git a/pelican-bootstrap3/static/css/style.css b/pelican-bootstrap3/static/css/style.css
index 646765a..7c9dc0a 100644
--- a/pelican-bootstrap3/static/css/style.css
+++ b/pelican-bootstrap3/static/css/style.css
@@ -74,6 +74,10 @@ body {
margin-right: 3px;
}
+.sidebar-links {
+ font-size: 16px;
+}
+
a, a:hover {
color: inherit;
}
diff --git a/pelican-bootstrap3/templates/includes/sidebar.html b/pelican-bootstrap3/templates/includes/sidebar.html
index c59b8f0..b5b173f 100644
--- a/pelican-bootstrap3/templates/includes/sidebar.html
+++ b/pelican-bootstrap3/templates/includes/sidebar.html
@@ -4,6 +4,22 @@
<section class="well well-sm">
<ul class="list-group list-group-flush">
+ {% if SIDEBARITEMS %}
+ {% for name, link in SIDEBARITEMS %}
+ <li class="list-group-item sidebar-links">
+ <a href="{{ link }}">
+ {{ name }}
+ </a>
+ </li>
+ {% endfor %}
+ {% endif %}
+ {% if FEED_ALL_ATOM %}
+ <li class="list-group-item sidebar-links">
+ <a href="{{ SITEURL }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate">
+ Feed</a>
+ </li>
+ {% endif %}
+
{% if SOCIAL %}
<li class="list-group-item"><h4><i class="fa fa-home fa-lg"></i><span class="icon-label">Social</span></h4>
<ul class="list-group" id="social">