From 2f9439eea9ad2a9bd10fdbf93a67633c4954699b Mon Sep 17 00:00:00 2001 From: Salvydas Lukosius Date: Sun, 23 Jun 2024 17:08:12 +0100 Subject: [PATCH] modified: layouts/404.html --- layouts/404.html | 5 +++- layouts/index.html | 2 +- layouts/partials/extended_head.html | 13 +------- layouts/partials/footer.html | 5 +--- layouts/partials/head.html | 5 +--- layouts/partials/header.html | 21 +++---------- layouts/partials/post.html | 11 ++++--- layouts/partials/posts.html | 6 +++- layouts/partials/script.html | 46 ++++++++++++++++++++++++++--- layouts/partials/tags.html | 25 ++++++++++++++++ layouts/partials/user-profile.html | 24 +++++++++------ layouts/shortcodes/details.html | 6 ++++ 12 files changed, 112 insertions(+), 57 deletions(-) create mode 100644 layouts/partials/tags.html create mode 100644 layouts/shortcodes/details.html diff --git a/layouts/404.html b/layouts/404.html index bc53fc4b..00455e13 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -34,7 +34,10 @@

Didn’t find anything here!

{{ partial "footer.html" . }} - {{ template "_internal/google_analytics_async.html" . }} + + {{ if eq (getenv "HUGO_ENV") "production"}} + {{ template "_internal/google_analytics.html" . }} + {{ end }} diff --git a/layouts/index.html b/layouts/index.html index 3e0de307..1ea97f71 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,3 +1,3 @@ {{ define "content" }} {{ partial "home.html" . }} -{{ end }} +{{ end }} \ No newline at end of file diff --git a/layouts/partials/extended_head.html b/layouts/partials/extended_head.html index 8efa4662..0eb045c2 100644 --- a/layouts/partials/extended_head.html +++ b/layouts/partials/extended_head.html @@ -42,16 +42,5 @@ {{ if eq (getenv "HUGO_ENV") "production"}} -{{ with .Site.GoogleAnalytics }} - - +{{ template "_internal/google_analytics.html" . }} {{ end }} -{{ end }} \ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index eb153de5..410771bd 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -12,10 +12,7 @@ {{ if .Site.Copyright }}
  • {{ .Site.Copyright | safeHTML }}
  • {{ else }} -
  • - Digital Clouds | - Z-Shell -
  • +
  • Theme by github-style
  • {{ end }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 90282e4b..5b310588 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -2,9 +2,6 @@ - - - @@ -21,4 +18,4 @@ {{ partial "extended_head.html" . }} - + \ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html index aaff6d95..caf6e9f6 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -2,21 +2,13 @@
    @@ -59,4 +46,4 @@
    - \ No newline at end of file + diff --git a/layouts/partials/post.html b/layouts/partials/post.html index 8279de00..c2047e66 100644 --- a/layouts/partials/post.html +++ b/layouts/partials/post.html @@ -14,9 +14,12 @@

    - {{ .Site.Params.author }}/{{ .Title }} + {{ .Site.Params.author }} + + / + + {{ .Title }} +

    Created
    - \ No newline at end of file + diff --git a/layouts/partials/posts.html b/layouts/partials/posts.html index 2792b93f..7eb781aa 100644 --- a/layouts/partials/posts.html +++ b/layouts/partials/posts.html @@ -7,7 +7,7 @@
    {{ len .Pages }} results - for {{ .Params.title }} + for {{ .Title }}
    + {{else}} + {{if gt (len .Site.Taxonomies.tags) 0}} + {{partial "tags.html" .}} + {{end}} {{ end }}