Replace more permalinks in retro theme
After Width: | Height: | Size: 497 KiB |
After Width: | Height: | Size: 329 KiB |
After Width: | Height: | Size: 497 KiB |
After Width: | Height: | Size: 581 KiB |
After Width: | Height: | Size: 389 KiB |
After Width: | Height: | Size: 497 KiB |
After Width: | Height: | Size: 497 KiB |
After Width: | Height: | Size: 497 KiB |
After Width: | Height: | Size: 134 KiB |
After Width: | Height: | Size: 497 KiB |
After Width: | Height: | Size: 389 KiB |
After Width: | Height: | Size: 352 KiB |
|
@ -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>
|
||||||
|
|
|
@ -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 }}
|
||||||
|
|
|
@ -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 }}
|
||||||
|
|