From b93ac81256997ec490ad8d5847ae40c76a44f0ee Mon Sep 17 00:00:00 2001
From: Alphonse Mariya <alphonse.mariya@hotmail.com>
Date: Wed, 10 Nov 2021 22:56:13 +0000
Subject: [PATCH] Remove hide configs (#618)
---
exampleSite/config.toml | 5 -----
stackbit.yaml | 10 ----------
layouts/partials/footer.html | 41 +++++++++++++++--------------------------
3 files changed, 15 insertions(+), 41 deletions(-)
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 0dcd0a7..87153d3 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -18,11 +18,7 @@
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 @@
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"
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index c184381..78bd72c 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,26 +1,15 @@
-{{ if not .Site.Params.hideFooter | default false }}
- <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)) }}
- {{ .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 }}
- [<a href="{{ .Site.Params.commit }}/{{ .GitInfo.Hash }}">{{ .GitInfo.AbbreviatedHash }}</a>]
- {{ end }}
- {{ end }}
- </section>
- </footer>
-{{ end }}
+<footer class="footer">
+ <section class="container">
+ ©
+ {{ if (and .Site.Params.since (lt .Site.Params.since now.Year)) }}
+ {{ .Site.Params.since }} -
+ {{ end }}
+ {{ now.Year }}
+ {{ with .Site.Params.author }} {{ . }} {{ end }}
+ ·
+ {{ i18n "powered_by" }} <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/luizdepra/hugo-coder/">Coder</a>.
+ {{ if (and .Site.Params.commit .GitInfo) }}
+ [<a href="{{ .Site.Params.commit }}/{{ .GitInfo.Hash }}">{{ .GitInfo.AbbreviatedHash }}</a>]
+ {{ end }}
+ </section>
+</footer>
diff --git a/stackbit.yaml b/stackbit.yaml
index 0965929..dfb7f54 100644
--- a/stackbit.yaml
+++ b/stackbit.yaml
@@ -51,17 +51,9 @@
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
name: since
@@ -261,8 +253,6 @@
name: description
- type: string
name: keywords
- - type: string
- name: footerContent
- type: number
name: since
- type: object
--
Gitblit v1.10.0