@@ -1,4 +1,4 @@
|
||||
{{ partial "image.html" (dict
|
||||
{{ partial "image/index.html" (dict
|
||||
"path" .Destination
|
||||
"caption" .Text
|
||||
"alt" .Title
|
||||
|
@@ -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>
|
||||
|
@@ -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>
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user