Hugo site: layouts, config and pilot content
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YDRjtmAiNpo5mK5N3d7QwZ
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
{{/* section pages grouped by .Params.group; "cards" shows thumbnails */}}
|
||||
{{ range .pages.GroupByParam "group" }}
|
||||
<h2>{{ .Key }}</h2>
|
||||
{{ if $.cards }}
|
||||
<div class="thumbs">
|
||||
{{ range .Pages.ByTitle }}
|
||||
<a href="{{ .RelPermalink }}">{{ with .Params.image }}<img src="{{ . }}" alt="" loading="lazy">{{ end }}<span>{{ .Title }}</span></a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ else }}
|
||||
<ul class="links">
|
||||
{{ range .Pages.ByTitle }}<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user