Replace more permalinks in retro theme

This commit is contained in:
Joshua Goins 2023-10-29 15:20:14 -04:00
parent 36c09c63cb
commit 77dc684d34
15 changed files with 4 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 497 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 329 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 497 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 581 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 389 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 497 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 497 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 497 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 497 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 389 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 352 KiB

View file

@ -4,7 +4,7 @@
{{ range $.Site.Menus.badges }} {{ range $.Site.Menus.badges }}
{{ $badgeScope := . }} {{ $badgeScope := . }}
{{ with resources.Get .URL }} {{ with resources.Get .URL }}
<img style="image-rendering: pixelated;" width="{{ .Width }}" height="{{ .Height }}" src="{{ .Permalink }}" alt="{{ $badgeScope.Name }}"> <img style="image-rendering: pixelated;" width="{{ .Width }}" height="{{ .Height }}" src="{{ .RelPermalink }}" alt="{{ $badgeScope.Name }}">
{{ end }} {{ end }}
{{ end }} {{ end }}
</div> </div>

View file

@ -12,7 +12,7 @@
{{ $year = index $split 3 }} {{ $year = index $split 3 }}
{{ end }} {{ end }}
<a href="{{ .Permalink }}"> <a href="{{ .RelPermalink }}">
{{ $path := printf "/art/%d/%.2d/%s" (int $year) (int $month) $filename_without_ext}} {{ $path := printf "/art/%d/%.2d/%s" (int $year) (int $month) $filename_without_ext}}
{{ $title := .Params.title }} {{ $title := .Params.title }}
{{ $image := (resources.Get (printf "art/%s.webp" .Params.slug)).Resize "400x bmp" }} {{ $image := (resources.Get (printf "art/%s.webp" .Params.slug)).Resize "400x bmp" }}
@ -22,7 +22,7 @@
{{ end }} {{ end }}
{{ with $image }} {{ with $image }}
<img width="{{ .Width }}" height="{{ .Height }}" alt="{{ $title }}" title="{{ $title }}" src="{{ .Permalink }}"/> <img width="{{ .Width }}" height="{{ .Height }}" alt="{{ $title }}" title="{{ $title }}" src="{{ .RelPermalink }}"/>
{{ else }} {{ else }}
<p>Thumbnail not found!</p> <p>Thumbnail not found!</p>
{{ end }} {{ end }}

View file

@ -1,6 +1,6 @@
{{ range first 3 (where .Site.Pages "Type" "blog").ByDate.Reverse }} {{ range first 3 (where .Site.Pages "Type" "blog").ByDate.Reverse }}
<li style="margin-left: 10px; list-style-type: square;"> <li style="margin-left: 10px; list-style-type: square;">
<a href="{{ .Permalink }}">{{ .Title }}</a> <a href="{{ .RelPermalink }}">{{ .Title }}</a>
<p><i>{{ .Summary }}</i></p> <p><i>{{ .Summary }}</i></p>
</li> </li>
{{ end }} {{ end }}