summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2019-01-31 09:20:13 +0100
committermakefu <github@syntax-fehler.de>2019-01-31 09:20:13 +0100
commit89cd24a83320cc130962e0ae946a1b6628e13dfc (patch)
tree09d64450fc26df117bb14acf7dd2e6aec822290e
parentd0492beacc9bae45c9ac73072c6c97621f0b1b5a (diff)
fix gumby theme
-rw-r--r--pelican-themes/gum/static/gumby.css2
-rw-r--r--pelican-themes/gum/static/style.css26
-rw-r--r--pelican-themes/gum/templates/sidebar.html56
3 files changed, 48 insertions, 36 deletions
diff --git a/pelican-themes/gum/static/gumby.css b/pelican-themes/gum/static/gumby.css
index 55b7b76..09eab09 100644
--- a/pelican-themes/gum/static/gumby.css
+++ b/pelican-themes/gum/static/gumby.css
@@ -5348,7 +5348,7 @@ form fieldset legend {
font-weight: bold;
line-height: 20px;
text-align: center;
- color: #fff;
+ color: #888888;
}
.badge a, .label a {
color: #777;
diff --git a/pelican-themes/gum/static/style.css b/pelican-themes/gum/static/style.css
index 57442a9..8209020 100644
--- a/pelican-themes/gum/static/style.css
+++ b/pelican-themes/gum/static/style.css
@@ -206,3 +206,29 @@ a:focus { color: #34495E; }
margin-left: auto;
margin-right: auto;
}
+
+
+
+/* tag-cloud */
+ul.tagcloud {
+ list-style: none;
+ padding: 0;
+}
+
+ul.tagcloud li {
+ display: inline-block;
+}
+
+li.tag-1 {
+ font-size: 150%;
+}
+
+li.tag-2 {
+ font-size: 120%;
+}
+
+
+ul.tagcloud .list-group-item <span>.badge {
+ background-color: grey;
+ color: white;
+}
diff --git a/pelican-themes/gum/templates/sidebar.html b/pelican-themes/gum/templates/sidebar.html
index 25b22e4..288b1b2 100644
--- a/pelican-themes/gum/templates/sidebar.html
+++ b/pelican-themes/gum/templates/sidebar.html
@@ -1,42 +1,7 @@
<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 %}
@@ -50,4 +15,25 @@
</nav>
{% endif %}
+<h4>Links</h4>
+
+ <ul>
+{% for title, link in LINKS %}
+ <li><a href="{{ link }}">{{ title }}</a></li>
+{% endfor %}
+</ul>
+<h4>Tags</h4>
+<ul class="tagcloud">
+ {% for tag in tag_cloud %}
+ <li class="tag-{{ tag.1 }}">
+ <a href="{{ SITEURL }}/{{ tag.0.url }}">
+ {{ tag.0 }}
+ {% if TAG_CLOUD_BADGE %}
+ <span class="badge">{{ tag.2 }}</span>
+ {% endif %}
+ </a>
+ </li>
+ {% endfor %}
+</ul>
+
</div>