Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/rhazdon/hugo-theme-hello-friend-ng.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDjordje Atlialp <djordje@atlialp.com>2022-02-05 01:00:46 +0300
committerGitHub <noreply@github.com>2022-02-05 01:00:46 +0300
commitc8ace1b8094d5d37122f262ab89ff3a43aac558a (patch)
tree32ef72104241211712703519837f9056fa84f87d
parent697194e122e4213d31404abdb67180464336d4ca (diff)
parent660f1fcaaf8e1bb9ad9ce9c3e4a308ca1077d94f (diff)
Merge pull request #356 from undergroundwires/subtitle
Make it easier to override subtitle
-rw-r--r--layouts/index.html5
-rw-r--r--layouts/partials/subtitle.html3
2 files changed, 5 insertions, 3 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 56dc443..d0c02a4 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -10,9 +10,8 @@
{{ end }}
<h1>{{ .Site.Title }}</h1>
- {{- with .Site.Params.homeSubtitle }}
- <p>{{.}}</p>
- {{- end }}
+
+ {{ partial "subtitle.html" . }}
{{- with .Site.Params.social }}
<div>
diff --git a/layouts/partials/subtitle.html b/layouts/partials/subtitle.html
new file mode 100644
index 0000000..f7f3e24
--- /dev/null
+++ b/layouts/partials/subtitle.html
@@ -0,0 +1,3 @@
+{{- with .Site.Params.homeSubtitle }}
+ <p>{{.}}</p>
+{{- end }} \ No newline at end of file