Add masonry

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-08-08 23:41:28 +02:00
parent 9d160b6890
commit 30f4d8d1e8
34 changed files with 328 additions and 9933 deletions

View File

@@ -1,4 +1,4 @@
{{ partial "image.html" (dict
{{ partial "image/index.html" (dict
"path" .Destination
"caption" .Text
"alt" .Title

View File

@@ -20,12 +20,14 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
{{ partial "head/bots.html" }}
{{ partial "head/rss.html" }}
{{ partial "head/bots.html" . }}
{{ partial "head/rss.html" . }}
{{ partial "head/opengraph.html" . }}
{{ partial "head/twitter.html" . }}
{{ partial "head/photoswipe.html" }}
{{ partial "head/styles.html" }}
{{ partial "head/js.html" . }}
{{ partial "head/css.html" . }}
</head>
<body>

View File

@@ -1,10 +1,9 @@
{{ define "main" }}
<main class="with-meta">
<section class="meta">
<h1>{{ .Page.Title }}</h1>
<p class="length">A {{ .Kind }} with {{ len .Pages }} items</p>
{{ .Content }}
</section>
{{ $withMeta := default true .Params.withMeta }}
<main class="{{- if $withMeta -}}with-meta{{- end -}}">
{{ if $withMeta }}
{{ partial "list/meta.html" . }}
{{ end }}
<div class="content">
{{ partial "posts/list.html" . }}
</div>

View File

@@ -1,6 +1,6 @@
{{ define "main" }}
<main>
{{ partial (printf "posts/%s.html" (.Params.heroType | default "hero")) . }}
{{ partial "posts/hero.html" . }}
<div class="content">
{{ .Content }}
</div>