Remove hide configs (#618)

* Remove "hide" configurations

* Remove "footerContent"
This commit is contained in:
Alphonse Mariya
2021-11-10 23:56:13 +01:00
committed by GitHub
parent 0048b9dc51
commit b93ac81256
3 changed files with 15 additions and 41 deletions

View File

@@ -18,11 +18,7 @@ keywords = "blog,developer,personal"
info = ["Full Stack DevOps", "Magician"]
avatarURL = "images/avatar.jpg"
#gravatar = "john.doe@example.com"
footerContent = "Enter a text here."
dateFormat = "January 2, 2006"
hideFooter = false
hideCredits = false
hideCopyright = false
since = 2019
# Git Commit in Footer, uncomment the line below to enable it
commit = "https://github.com/luizdepra/hugo-coder/tree/"
@@ -167,7 +163,6 @@ author = "João Ninguém"
info = "Full Stack DevOps e Mágico"
description = "Sítio pessoal de João Ninguém"
keywords = "blog,desenvolvedor,pessoal"
footerContent = "Coloque algum texto aqui."
[[languages.pt-br.menu.main]]
name = "Sobre"

View File

@@ -1,26 +1,15 @@
{{ if not .Site.Params.hideFooter | default false }}
<footer class="footer">
<footer class="footer">
<section class="container">
{{ with .Site.Params.footerContent | safeHTML }}
<p>{{ . }}</p>
{{ end }}
{{ if not .Site.Params.hideCopyright }}
©
{{ if (and (.Site.Params.since) (lt .Site.Params.since now.Year)) }}
{{ if (and .Site.Params.since (lt .Site.Params.since now.Year)) }}
{{ .Site.Params.since }} -
{{ end }}
{{ now.Year }}
{{ with .Site.Params.author }} {{ . }} {{ end }}
{{ end }}
{{ if not .Site.Params.hideCredits }}
{{ if not .Site.Params.hideCopyright }} · {{ end }}
·
{{ i18n "powered_by" }} <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/luizdepra/hugo-coder/">Coder</a>.
{{ end }}
{{ if .Site.Params.commit }}
{{ if .GitInfo }}
{{ if (and .Site.Params.commit .GitInfo) }}
[<a href="{{ .Site.Params.commit }}/{{ .GitInfo.Hash }}">{{ .GitInfo.AbbreviatedHash }}</a>]
{{ end }}
{{ end }}
</section>
</footer>
{{ end }}
</footer>

View File

@@ -51,16 +51,8 @@ models:
name: info
- type: string
name: avatarURL
- type: boolean
name: hideFooter
- type: string
name: footerContent
- type: string
name: dateFormat
- type: boolean
name: hideCredits
- type: boolean
name: hideCopyright
- type: boolean
name: hideColorSchemeToggle
- type: number
@@ -261,8 +253,6 @@ models:
name: description
- type: string
name: keywords
- type: string
name: footerContent
- type: number
name: since
- type: object