diff options
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/image-gallery.html | 4 | ||||
-rw-r--r-- | layouts/partials/metadata.html | 18 |
2 files changed, 12 insertions, 10 deletions
diff --git a/layouts/partials/image-gallery.html b/layouts/partials/image-gallery.html index d3a5fae..943370c 100644 --- a/layouts/partials/image-gallery.html +++ b/layouts/partials/image-gallery.html @@ -12,13 +12,13 @@ /> <img class="gallery__img" - src="{{ (.Fill "1152x768").Permalink }}" + src="{{ (.Fill "1152x768").RelPermalink }}" alt="" loading="lazy" /> <label for="img-{{ $id }}" class="gallery__thumb"> <img - src="{{ (.Fill "150x100").Permalink }}" + src="{{ (.Fill "150x100").RelPermalink }}" alt="" loading="lazy" /> diff --git a/layouts/partials/metadata.html b/layouts/partials/metadata.html index fdbb504..7756667 100644 --- a/layouts/partials/metadata.html +++ b/layouts/partials/metadata.html @@ -21,25 +21,27 @@ | {{ .ReadingTime }} mins read {{ end }} - {{ with .Params.tags }} + {{ with .GetTerms "tags" }} | - <a href="/tags" class="link grow w3-text-theme ph1"> + <a href="/tags" class="link w3-text-theme ph1"> <i class="fas fa-tags"></i> </a> {{ range . }} - {{ $href := print (absURL "tags/") (urlize .) }} - <a class="link underline color-inherit" href="{{ $href }}">{{ . }}</a> + <a class="link underline color-inherit" href="{{ .RelPermalink }}" + >{{ .Title }}</a + > {{ end }} {{ end }} - {{ with .Params.categories }} + {{ with .GetTerms "categories" }} | - <a href="/categories" class="link grow w3-text-theme ph1"> + <a href="/categories" class="link w3-text-theme ph1"> <i class="fas fa-folder-open"></i> </a> {{ range . }} - {{ $href := print (absURL "categories/") (urlize .) }} - <a class="underline color-inherit" href="{{ $href }}">{{ . }}</a> + <a class="link underline color-inherit" href="{{ .RelPermalink }}" + >{{ .Title }}</a + > {{ end }} {{ end }} </p> |