From 6d7c4b1860c648bc17a36e96ad1026a19ecd9dd1 Mon Sep 17 00:00:00 2001
From: Christian Segundo
Date: Sun, 28 Jul 2024 13:51:14 +0200
Subject: add feedback page
---
content/feedback.md | 12 ++++++++++++
hugo.yaml | 6 +++---
layouts/_default/rss.xml | 4 ++--
layouts/shortcodes/google-form.html | 37 +++++++++++++++++++++++++++++++++++++
4 files changed, 54 insertions(+), 5 deletions(-)
create mode 100644 content/feedback.md
create mode 100644 layouts/shortcodes/google-form.html
diff --git a/content/feedback.md b/content/feedback.md
new file mode 100644
index 0000000..482edd7
--- /dev/null
+++ b/content/feedback.md
@@ -0,0 +1,12 @@
+---
+title: Feedback
+layout: page
+
+searchHidden: true
+comments: false
+showtoc: false
+disableShare: true
+robotsNoIndex: true
+---
+
+{{< google-form publishcode=1FAIpQLSc00HMR5dZMGQxUWOjWcBweuxaR2JkpQ-zPSqwLRGF9hGICLw >}}
diff --git a/hugo.yaml b/hugo.yaml
index 36a811e..30f4ab2 100644
--- a/hugo.yaml
+++ b/hugo.yaml
@@ -16,7 +16,7 @@ languages:
languageName: English
params:
homeInfoParams:
- Title: "welcome, denizen of the internet \U0001F44B"
+ Title: "__welcome__, denizen of the internet \U0001F44B"
menu:
main:
- identifier: archive
@@ -41,7 +41,7 @@ languages:
languageName: Spanish
params:
homeInfoParams:
- Title: "hola, hola caracola \U0001F44B"
+ Title: "__hola__, hola caracola \U0001F44B"
menu:
main:
- identifier: archive
@@ -132,7 +132,7 @@ params:
Text: "Source"
appendFilePath: true
- defaultTheme: dark
+ defaultTheme: light
disableThemeToggle: true
# hideFooter: true
footer:
diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml
index df3173b..235fd30 100644
--- a/layouts/_default/rss.xml
+++ b/layouts/_default/rss.xml
@@ -1,4 +1,4 @@
-{{- /* Same as https://github.com/adityatelange/hugo-PaperMod/blob/master/layouts/_default/rss.xml but without Hugo branding */}}
+{{- /* Same as https://github.com/adityatelange/hugo-PaperMod/blob/master/layouts/_default/rss.xml but without Hugo branding and hiding 'page' layout from feed */}}
{{- $authorEmail := "" }}
{{- with site.Params.author }}
{{- if reflect.IsMap . }}
@@ -64,7 +64,7 @@
{{ printf "" .Permalink .MediaType | safeHTML }}
{{- end }}
{{- range $pages }}
- {{- if and (ne .Layout `search`) (ne .Layout `archives`) }}
+ {{- if and (ne .Layout `search`) (ne .Layout `archives`) (ne .Layout `page`) }}
-
{{ .Title }}
{{ .Permalink }}
diff --git a/layouts/shortcodes/google-form.html b/layouts/shortcodes/google-form.html
new file mode 100644
index 0000000..8036f56
--- /dev/null
+++ b/layouts/shortcodes/google-form.html
@@ -0,0 +1,37 @@
+
+
+{{ if .IsNamedParams }}
+
+ {{ if .Site.Params.debug }}
+
+ {{ end }}
+{{ end }}
--
cgit v1.2.3