From 10e6ec1125b5f08122026927a265479ce0a6ae50 Mon Sep 17 00:00:00 2001 From: Marcell Mars Date: Mon, 16 Mar 2020 12:08:41 +0100 Subject: [PATCH] fixing links after new hugo !publish!... --- .../_default/_markup/render-image.html | 12 ++--- themes/piratecare/layouts/partials/head.html | 49 ++++++++++--------- 2 files changed, 32 insertions(+), 29 deletions(-) diff --git a/themes/piratecare/layouts/_default/_markup/render-image.html b/themes/piratecare/layouts/_default/_markup/render-image.html index fea1987..a590de9 100644 --- a/themes/piratecare/layouts/_default/_markup/render-image.html +++ b/themes/piratecare/layouts/_default/_markup/render-image.html @@ -16,24 +16,24 @@ {{ if $.Page.Site.GetPage $s_destination }} {{ $session := $.Page.Site.GetPage $s_destination }} {{ if not $text_link }} - {{ $session.Title }} + {{ $session.Title }} {{ else }} - {{ $text_link }} + {{ $text_link }} {{ end }} {{ else }} - {{ $text_link }}⦚session:{{ $s_destination }} not found + {{ $text_link }}⦚session:{{ $s_destination }} not found {{ end }} {{ else if strings.HasPrefix .Destination "topic:" }} {{ $t_destination := printf "/topic/%s" (substr .Destination 6) }} {{ if $.Page.Site.GetPage $t_destination }} {{ $topic := $.Page.Site.GetPage $t_destination }} {{ if not $text_link }} - {{ $topic.Title }} + {{ $topic.Title }} {{ else }} - {{ $text_link }} + {{ $text_link }} {{ end }} {{ else }} - {{ $text_link }}⦚topic:{{ $t_destination }} not found + {{ $text_link }}⦚topic:{{ $t_destination }} not found {{ end }} {{ else if findRE "^.*static" .Destination }} {{ .Text }} diff --git a/themes/piratecare/layouts/partials/head.html b/themes/piratecare/layouts/partials/head.html index 2f174df..fff194a 100644 --- a/themes/piratecare/layouts/partials/head.html +++ b/themes/piratecare/layouts/partials/head.html @@ -1,25 +1,28 @@ -{{ block "title" . }} - {{- .Title }} - {{ .Site.Title -}} - {{ end }} + + + + - - - - - - - + {{ if .Description }} + + {{ end }} + {{ if .Keywords }} + + {{ end }} + {{ if .Params.Author }} + + {{ end }} - -{{ if .Description }} - -{{ end }} -{{ if .Keywords }} - -{{ end }} -{{ if .Params.Author }} - -{{ end }} -{{ template "_internal/opengraph.html" . }} -{{ template "_internal/twitter_cards.html" . }} -{{ hugo.Generator }} + {{ template "_internal/opengraph.html" . }} + {{ template "_internal/twitter_cards.html" . }} + + {{ hugo.Generator }} + + + + + + + + {{ block "title" . }}{{- .Title }} - {{ .Site.Title -}}{{ end }} +