From 726ca45683974e991c3c2d172039716be8cb0d4c Mon Sep 17 00:00:00 2001 From: Timmy Keller Date: Sun, 11 Aug 2024 10:00:56 -0500 Subject: changes to copyright and style. open links in new tab if theyre to another site --- layouts/_default/_markup/render-link.html | 2 +- layouts/_default/baseof.html | 9 +++++++-- layouts/partials/theme-copyright.html | 1 + 3 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 layouts/partials/theme-copyright.html (limited to 'layouts') diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html index f04b2e3..69a1c1a 100644 --- a/layouts/_default/_markup/render-link.html +++ b/layouts/_default/_markup/render-link.html @@ -1 +1 @@ -{{ .Text | safeHTML }} +{{ .Text | safeHTML }} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index e5b0ed0..d91f60f 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -4,6 +4,8 @@ {{ $title := print .Title " - " .Site.Title }} {{ if .IsHome }}{{ $title = .Site.Title }}{{ end }} {{ $title | title }} + + {{- block "head" . }}{{- end }} @@ -13,7 +15,7 @@ {{ .Site.Title }} {{ .Title }} @@ -26,7 +28,10 @@
- © Tim Keller 2024 + {{ if .Site.Params.copyright.include }} + © {{ time.Now.Year }} {{ .Site.Params.copyright.name }} – {{ .Site.Params.copyright.type }} + {{ end }} + {{ partial "theme-copyright.html" . }} diff --git a/layouts/partials/theme-copyright.html b/layouts/partials/theme-copyright.html new file mode 100644 index 0000000..b97de5f --- /dev/null +++ b/layouts/partials/theme-copyright.html @@ -0,0 +1 @@ +Built Using the TJKBasic Hugo Theme -- cgit v1.2.3