30 lines
1.5 KiB
HTML
30 lines
1.5 KiB
HTML
|
{{ define "meta_tags" }}
|
||
|
<meta name="description" content="{{ .Site.Params.homepage_meta_tags.meta_og_description }}" />
|
||
|
<meta property="og:title" content="{{ .Site.Params.homepage_meta_tags.meta_og_title }}" />
|
||
|
<meta property="og:type" content="{{ .Site.Params.homepage_meta_tags.meta_og_type }}" />
|
||
|
<meta property="og:url" content="{{ .Site.Params.homepage_meta_tags.meta_og_url }}" />
|
||
|
<meta property="og:image" content="{{ .Site.Params.homepage_meta_tags.meta_og_image }}" />
|
||
|
<meta property="og:description" content="{{ .Site.Params.homepage_meta_tags.meta_og_description }}" />
|
||
|
<meta name="twitter:card" content="{{ .Site.Params.homepage_meta_tags.meta_twitter_card }}" />
|
||
|
<meta name="twitter:site" content="{{ .Site.Params.homepage_meta_tags.meta_twitter_site }}" />
|
||
|
<meta name="twitter:creator" content="{{ .Site.Params.homepage_meta_tags.meta_twitter_creator }}" />
|
||
|
{{ end }}
|
||
|
|
||
|
{{ define "main" }}
|
||
|
<h2 class="text-4xl py-3 dark:text-white">{{if not .IsHome}}#{{ .Title }}{{end}}</h2>
|
||
|
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
|
||
|
{{if .IsHome}}
|
||
|
{{.Scratch.Set "Paginator" (.Paginate (where .Site.RegularPages "Type" "in" site.Params.mainSections)
|
||
|
(.Site.Params.paginator_pages) )}}
|
||
|
{{else}}
|
||
|
{{.Scratch.Set "Paginator" .Paginator}}
|
||
|
{{end}}
|
||
|
{{$paginator:=(.Scratch.Get "Paginator")}}
|
||
|
{{ range $paginator.Pages }}
|
||
|
<div class="border-b dark:border-warmgray-700">
|
||
|
{{ .Render "summary" }}
|
||
|
</div>
|
||
|
{{ end }}
|
||
|
</div>
|
||
|
{{ partial "paginator.html" . }}
|
||
|
{{ end }}
|