summaryrefslogtreecommitdiff
path: root/themes/new_theme/layouts
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-02-09 18:47:32 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2017-02-09 18:47:32 +0100
commit67a395a58f3897642a6a76b3bd92f2bf77d259e9 (patch)
treeaf504e06a89b9ea40288320e46e357e0e37adb15 /themes/new_theme/layouts
parentb9d150508e78139ef63cfe750e8649b969779264 (diff)
downloadwww-andreasbaumann-cc-67a395a58f3897642a6a76b3bd92f2bf77d259e9.tar.gz
www-andreasbaumann-cc-67a395a58f3897642a6a76b3bd92f2bf77d259e9.tar.bz2
show recent posts only in blog
Diffstat (limited to 'themes/new_theme/layouts')
-rw-r--r--themes/new_theme/layouts/partials/sidebar.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/themes/new_theme/layouts/partials/sidebar.html b/themes/new_theme/layouts/partials/sidebar.html
index 7e6bad7..ce306a0 100644
--- a/themes/new_theme/layouts/partials/sidebar.html
+++ b/themes/new_theme/layouts/partials/sidebar.html
@@ -1,6 +1,9 @@
<aside class="sidebar" itemscope="itemscope" itemtype="http://schema.org/WPSideBar">
{{ partial "widgets/search.html" . }}
- {{ partial "widgets/recent.html" . }}
+ {{ $section := .Section }}
+ {{ if eq $section "blog" }}
+ {{ partial "widgets/recent.html" . }}
+ {{ end }}
{{ partial "widgets/categories.html" . }}
{{ partial "widgets/taglist.html" . }}
-</aside> \ No newline at end of file
+</aside>