diff options
Diffstat (limited to 'themes/new_theme/layouts/partials/sidebar.html')
-rw-r--r-- | themes/new_theme/layouts/partials/sidebar.html | 7 |
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> |