Metadata raedy in list pages
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<body>
|
||||
{{- partial "header.html" . -}}
|
||||
<div id="content" class="feed-container">
|
||||
{{- block "main" . }}{{- end }}
|
||||
{{- block "main" . }}{{- end }}
|
||||
</div>
|
||||
{{- partial "footer.html" . -}}
|
||||
</body>
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
{{ define "main" }}
|
||||
{{ partial "minimal-navbar.html" }}
|
||||
{{ if eq .Page.Path "feed" }}
|
||||
<h5>/feed</h5>
|
||||
{{ else if eq .Page.Path "dev" }}
|
||||
<h5>/dev</h5>
|
||||
{{ end }}
|
||||
{{ $colors := slice "cyan" "yellow" "pink"}}
|
||||
{{ $opts := len $colors }}
|
||||
{{ range $i, $page := .Pages.ByDate.Reverse }}
|
||||
|
||||
@@ -10,5 +10,9 @@
|
||||
<meta property="og:site_name" content="{{ .Site.Params.Name }}">
|
||||
<meta property="og:url" content="{{ .Permalink }}">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:image" content="/images/ogbanner.jpg">
|
||||
{{ if .Params.Thumbnail }}
|
||||
<meta property="og:image" content="{{ .Params.Thumbnail }}">
|
||||
{{ else }}
|
||||
<meta property="og:image" content="/images/ogbanner.jpg">
|
||||
{{ end }}
|
||||
</head>
|
||||
|
||||
Reference in New Issue
Block a user