diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2018-04-27 21:04:33 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2018-04-27 21:04:33 +0200 |
commit | 9a3263dbb95f5ee11c66cfaf6673685888571d51 (patch) | |
tree | f14df9bd693bc5e1fd3b001e1a4471419fe03ed3 /themes | |
parent | 74087a15b63dbc062e1c8a785917f44cda5f14c7 (diff) | |
download | www-andreasbaumann-cc-9a3263dbb95f5ee11c66cfaf6673685888571d51.tar.gz www-andreasbaumann-cc-9a3263dbb95f5ee11c66cfaf6673685888571d51.tar.bz2 |
nicer search bar, data protection in right widget
Diffstat (limited to 'themes')
6 files changed, 10 insertions, 3 deletions
diff --git a/themes/new_theme/layouts/partials/sidebar.html b/themes/new_theme/layouts/partials/sidebar.html index 8d20064..8241753 100644 --- a/themes/new_theme/layouts/partials/sidebar.html +++ b/themes/new_theme/layouts/partials/sidebar.html @@ -1,9 +1,10 @@ <aside class="sidebar" itemscope="itemscope" itemtype="http://schema.org/WPSideBar"> - {{ partial "widgets/google_site_search" . }} + {{ partial "widgets/google_site_search.html" . }} {{ $section := .Section }} {{ if or ( eq $section "blog" ) ( eq $section "" ) }} {{ partial "widgets/recent.html" . }} {{ partial "widgets/categories.html" . }} {{ partial "widgets/taglist.html" . }} {{ end }} + {{ partial "widgets/dataprotection.html" . }} </aside> diff --git a/themes/new_theme/layouts/partials/widgets/categories.html b/themes/new_theme/layouts/partials/widgets/categories.html index 506cb1f..7b93a4e 100644 --- a/themes/new_theme/layouts/partials/widgets/categories.html +++ b/themes/new_theme/layouts/partials/widgets/categories.html @@ -2,7 +2,7 @@ {{- if isset .Site.Taxonomies "categories" }} {{- if not (eq (len .Site.Taxonomies.categories) 0) }} <div class="widget-categories widget"> - <h4 class="widget__title"><a href="/categories/">Categories</a></h4> + <h4 class="widget__title">Categories</h4> <div class="widget__content"> <ul class="widget__list"> {{- range $name, $items := .Site.Taxonomies.categories }} diff --git a/themes/new_theme/layouts/partials/widgets/dataprotection.html b/themes/new_theme/layouts/partials/widgets/dataprotection.html new file mode 100644 index 0000000..68e9390 --- /dev/null +++ b/themes/new_theme/layouts/partials/widgets/dataprotection.html @@ -0,0 +1,4 @@ +<h4 class="widget__title">Data Protection and Privacy</h4> +<div class="widget__content"> + Read here about <a class="widget__link" href="/dataprotection">Data Protection and Privacy</a>. +</div> diff --git a/themes/new_theme/layouts/partials/widgets/elasticlunr_search.html b/themes/new_theme/layouts/partials/widgets/elasticlunr_search.html index 544be8d..c364156 100644 --- a/themes/new_theme/layouts/partials/widgets/elasticlunr_search.html +++ b/themes/new_theme/layouts/partials/widgets/elasticlunr_search.html @@ -1,5 +1,5 @@ {{- if .Site.Params.widgets.search }} -ElasticLunr: +<h4 class="widget__title">Search</h4> <div class="widget-search widget"> <form class="widget-search__form" role="search" method="get" action="/search/"> <label> diff --git a/themes/new_theme/layouts/partials/widgets/google_site_search.html b/themes/new_theme/layouts/partials/widgets/google_site_search.html index 352adc7..2c4befa 100644 --- a/themes/new_theme/layouts/partials/widgets/google_site_search.html +++ b/themes/new_theme/layouts/partials/widgets/google_site_search.html @@ -1,4 +1,5 @@ {{- if .Site.Params.widgets.search }} +<h4 class="widget__title">Search</h4> <div class="widget-search widget"> <form class="widget-search__form" role="search" method="get" action="//google.com/search"> <label> diff --git a/themes/new_theme/layouts/partials/widgets/strus_search.html b/themes/new_theme/layouts/partials/widgets/strus_search.html index 78ea7a8..efbfc8b 100644 --- a/themes/new_theme/layouts/partials/widgets/strus_search.html +++ b/themes/new_theme/layouts/partials/widgets/strus_search.html @@ -1,4 +1,5 @@ {{- if .Site.Params.widgets.search }} +<h4 class="widget__title">Search</h4> <div class="widget-search widget"> <form class="widget-search__form" role="search" method="get" action="/search/"> <label> |