Add Site.Params to disable search and copyright
This PR adds site parameters to optionally disable the search field and
the copyright notice. Both options are enabled by default to keep
current default behavior.
| | |
| | | {{ if .Site.Params.enableCopyright | default true }} |
| | | <footer class="mt-2 pt-2 pb-2"> |
| | | <div class="wrap"> |
| | | <p>© {{ now.Year}} {{ .Site.Params.author }}</p> |
| | | </div> |
| | | </footer> |
| | | {{ end }} |
| | | |
| | |
| | | <img srcset = '{{ $normalPath }}' alt = '{{ .Site.Title }} Logo'> |
| | | </picture> |
| | | </a> |
| | | {{ if .Site.Params.enableSearch | default true }} |
| | | {{- partial "search.html" . }} |
| | | {{ end }} |
| | | <ul class="nav_body"> |
| | | {{- $p := . }} |
| | | {{- range .Site.Menus.main }} |