From 45535cd290dd681a9348833c154f0b4a2da86085 Mon Sep 17 00:00:00 2001 From: Jason Tipton Date: Mon, 29 Jun 2020 19:40:42 -0800 Subject: [PATCH 1/9] Allow config.yaml to modify the site copyright (#18) --- README.md | 3 +++ exampleSite/config.yaml | 3 +++ layouts/partials/footer.html | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1026696..5215263 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,9 @@ enableEmoji: true # Custom parameters params: + # copyright + copyright: © 2020 Copyright. + # background image of the landing page background: "images/background.jpg" diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index f28da75..8132b96 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -20,6 +20,9 @@ enableEmoji: true # Custom parameters params: + # copyright + copyright: © 2020 Copyright. + # background image of the landing page background: "images/background.jpg" diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 555e211..8c8649a 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -54,7 +54,7 @@ Toha -
© 2020 Copyright.
+
{{ if .Site.Params.copyright }}{{ .Site.Params.copyright }}{{ else }}© 2020 Copyright.{{ end }}
Powered by Hugo Date: Mon, 29 Jun 2020 20:47:41 -0800 Subject: [PATCH 2/9] Configure section title and menu urls in section yaml files --- layouts/index.html | 6 ++- layouts/partials/about.html | 78 +++++++++++++++--------------- layouts/partials/achievements.html | 22 +++++---- layouts/partials/experiences.html | 42 ++++++++-------- layouts/partials/projects.html | 32 ++++++------ layouts/partials/recent-posts.html | 16 +++--- layouts/partials/skills.html | 17 ++++--- 7 files changed, 114 insertions(+), 99 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index 507e1a8..a7f621c 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -33,7 +33,11 @@ {{ range sort .Site.Data.sections "section.weight" }} {{ if .section.enable }}
- {{- partial (printf "%s.html" (replace (lower .section.name) " " "-")) . -}} + {{ if .section.template }} + {{- partial .section.template . -}} + {{ else }} + {{- partial (printf "%s.html" (replace (lower .section.name) " " "-")) . -}} + {{ end }}
{{ if eq $background "bg-white" }} diff --git a/layouts/partials/about.html b/layouts/partials/about.html index 2af5476..f4f542b 100644 --- a/layouts/partials/about.html +++ b/layouts/partials/about.html @@ -1,44 +1,46 @@ -
-
- -
+
+
+
+ + - -
-
- {{ range .softSkills }} - {{ partial "progress/soft-skills" . }} + {{ end }} +

+ {{ .summary | markdownify }} +

+
+ +
+ {{ if .resume }} + + {{ end }} +
+ +
+
+ {{ range .softSkills }} + {{ partial "progress/soft-skills" . }} + {{ end }} +
diff --git a/layouts/partials/achievements.html b/layouts/partials/achievements.html index 49b3ce9..599d6cf 100644 --- a/layouts/partials/achievements.html +++ b/layouts/partials/achievements.html @@ -1,13 +1,15 @@ -
-

{{ .section.name }}

-
-