mirror of
https://github.com/13hannes11/hugo-coder-timeline.git
synced 2024-09-04 00:50:58 +02:00
Remove hide configs (#618)
* Remove "hide" configurations * Remove "footerContent"
This commit is contained in:
@@ -18,11 +18,7 @@ keywords = "blog,developer,personal"
|
|||||||
info = ["Full Stack DevOps", "Magician"]
|
info = ["Full Stack DevOps", "Magician"]
|
||||||
avatarURL = "images/avatar.jpg"
|
avatarURL = "images/avatar.jpg"
|
||||||
#gravatar = "john.doe@example.com"
|
#gravatar = "john.doe@example.com"
|
||||||
footerContent = "Enter a text here."
|
|
||||||
dateFormat = "January 2, 2006"
|
dateFormat = "January 2, 2006"
|
||||||
hideFooter = false
|
|
||||||
hideCredits = false
|
|
||||||
hideCopyright = false
|
|
||||||
since = 2019
|
since = 2019
|
||||||
# Git Commit in Footer, uncomment the line below to enable it
|
# Git Commit in Footer, uncomment the line below to enable it
|
||||||
commit = "https://github.com/luizdepra/hugo-coder/tree/"
|
commit = "https://github.com/luizdepra/hugo-coder/tree/"
|
||||||
@@ -167,7 +163,6 @@ author = "João Ninguém"
|
|||||||
info = "Full Stack DevOps e Mágico"
|
info = "Full Stack DevOps e Mágico"
|
||||||
description = "Sítio pessoal de João Ninguém"
|
description = "Sítio pessoal de João Ninguém"
|
||||||
keywords = "blog,desenvolvedor,pessoal"
|
keywords = "blog,desenvolvedor,pessoal"
|
||||||
footerContent = "Coloque algum texto aqui."
|
|
||||||
|
|
||||||
[[languages.pt-br.menu.main]]
|
[[languages.pt-br.menu.main]]
|
||||||
name = "Sobre"
|
name = "Sobre"
|
||||||
|
|||||||
@@ -1,26 +1,15 @@
|
|||||||
{{ if not .Site.Params.hideFooter | default false }}
|
<footer class="footer">
|
||||||
<footer class="footer">
|
<section class="container">
|
||||||
<section class="container">
|
©
|
||||||
{{ with .Site.Params.footerContent | safeHTML }}
|
{{ if (and .Site.Params.since (lt .Site.Params.since now.Year)) }}
|
||||||
<p>{{ . }}</p>
|
{{ .Site.Params.since }} -
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if not .Site.Params.hideCopyright }}
|
{{ now.Year }}
|
||||||
©
|
{{ with .Site.Params.author }} {{ . }} {{ end }}
|
||||||
{{ if (and (.Site.Params.since) (lt .Site.Params.since now.Year)) }}
|
·
|
||||||
{{ .Site.Params.since }} -
|
{{ i18n "powered_by" }} <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/luizdepra/hugo-coder/">Coder</a>.
|
||||||
{{ end }}
|
{{ if (and .Site.Params.commit .GitInfo) }}
|
||||||
{{ now.Year }}
|
[<a href="{{ .Site.Params.commit }}/{{ .GitInfo.Hash }}">{{ .GitInfo.AbbreviatedHash }}</a>]
|
||||||
{{ with .Site.Params.author }} {{ . }} {{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
</section>
|
||||||
{{ if not .Site.Params.hideCredits }}
|
</footer>
|
||||||
{{ 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 }}
|
|
||||||
[<a href="{{ .Site.Params.commit }}/{{ .GitInfo.Hash }}">{{ .GitInfo.AbbreviatedHash }}</a>]
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
</section>
|
|
||||||
</footer>
|
|
||||||
{{ end }}
|
|
||||||
|
|||||||
@@ -51,16 +51,8 @@ models:
|
|||||||
name: info
|
name: info
|
||||||
- type: string
|
- type: string
|
||||||
name: avatarURL
|
name: avatarURL
|
||||||
- type: boolean
|
|
||||||
name: hideFooter
|
|
||||||
- type: string
|
|
||||||
name: footerContent
|
|
||||||
- type: string
|
- type: string
|
||||||
name: dateFormat
|
name: dateFormat
|
||||||
- type: boolean
|
|
||||||
name: hideCredits
|
|
||||||
- type: boolean
|
|
||||||
name: hideCopyright
|
|
||||||
- type: boolean
|
- type: boolean
|
||||||
name: hideColorSchemeToggle
|
name: hideColorSchemeToggle
|
||||||
- type: number
|
- type: number
|
||||||
@@ -261,8 +253,6 @@ models:
|
|||||||
name: description
|
name: description
|
||||||
- type: string
|
- type: string
|
||||||
name: keywords
|
name: keywords
|
||||||
- type: string
|
|
||||||
name: footerContent
|
|
||||||
- type: number
|
- type: number
|
||||||
name: since
|
name: since
|
||||||
- type: object
|
- type: object
|
||||||
|
|||||||
Reference in New Issue
Block a user