Fixed a property in the post-card template and added embed metadata in the baseof template
parent
33a097a246
commit
95cce0bfe3
|
@ -8,6 +8,13 @@
|
|||
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
|
||||
<title>{{ $title }}</title>
|
||||
|
||||
<meta property="og:site_name" content="{{ .Site.Title }}">
|
||||
<meta name="twitter:domain" property="twitter:domain" content="{{ .Site.BaseURL }}">
|
||||
<meta name="og:title" property="og:title" content="{{ .Site.Title }}">
|
||||
<meta property="og:description" content="{{ $.Site.Params.description }}">
|
||||
<meta name="twitter:description" property="twitter:description" content="{{ $.Site.Params.description }}">
|
||||
<meta name="og:image" content="https://gianmarco.ga/me.png">
|
||||
|
||||
<meta name="HandheldFriendly" content="True" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
{{ if .context.Param "thumbnail" }}
|
||||
<a class="post-card-image-link" href="{{ .context.Permalink }}">
|
||||
<img class="post-card-image"src="{{ .context.Param "thumbnail" }}" alt="{{ .context.Title }}"/>
|
||||
<img class="post-card-image" src="{{ .context.Param "thumbnail" }}" alt="{{ .context.Title }}"/>
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
|
|
Loading…
Reference in New Issue