mirror of https://github.com/onweru/compose.git

one
12.19.2020 bc3989e1fdb02665365adae579b13562ae83ec92
Merge pull request #3 from romanc/feature/disableSearchAndCopyright

Add Site.Params to disable search and copyright
2 files modified
5 ■■■■■ changed files
layouts/partials/footer.html 3 ●●●●● patch | view | raw | blame | history
layouts/partials/nav.html 2 ●●●●● patch | view | raw | blame | history
layouts/partials/footer.html
@@ -1,5 +1,8 @@
{{ if .Site.Params.enableCopyright | default true }}
<footer class="mt-2 pt-2 pb-2">
  <div class="wrap">
    <p>&copy; {{ now.Year}} {{ .Site.Params.author }}</p>
  </div>
</footer>
{{ end }}
layouts/partials/nav.html
@@ -9,7 +9,9 @@
            <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 }}