mirror of
https://github.com/rottenwheel/revuoxmrtheme.git
synced 2024-11-16 17:17:34 +00:00
commit
d3fefcb904
2 changed files with 10 additions and 4 deletions
|
@ -10,7 +10,11 @@
|
|||
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
|
||||
<time class="by-line">{{ .Date.Format .Site.Params.dateFormat }}</time>
|
||||
<a href="{{ .RelPermalink }}">
|
||||
<img class="img-lead" src="{{ .RelPermalink }}cover.png" alt="Revuo Monero Weekly #{{ .Params.issuenumber }} cover">
|
||||
{{ $image := .Resources.Get "cover.png" }}
|
||||
{{ $image := $image.Resize "650x" }}
|
||||
{{ with $image }}
|
||||
<img class="img-lead" src="{{ $image.RelPermalink }}" alt="Revuo Monero Weekly #{{ .Params.issuenumber }} cover">
|
||||
{{ end }}
|
||||
</a>
|
||||
|
||||
{{ $sTitle := split .Params.title ":" }}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
content="width=device-width, initial-scale=1.0, maximum-scale=1"
|
||||
/>
|
||||
<title>{{ .Title }}</title>
|
||||
<meta name="description" content="{{ .Description }}" />
|
||||
<meta name="description" content="{{ .Site.Params.Description }}" />
|
||||
<meta name="keywords" content="{{ .Keywords }}" />
|
||||
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/img/revuo-icon_1.png" />
|
||||
|
@ -20,10 +20,12 @@
|
|||
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="twitter:title" content="{{ .Title }}" />
|
||||
<meta name="twitter:image" content="{{ if (eq .Section "weekly") }}{{ .Permalink }}/cover.png{{ else }}{{ .Site.BaseURL }}/img/revuo-monero.png{{ end }}" />
|
||||
<meta name="twitter:image" content="{{ if (eq .Section "weekly") }}{{ .Permalink }}/cover.png{{ else }}{{ .Site.BaseURL }}/img/revuo-monero.jpg{{ end }}" />
|
||||
<meta name="twitter:description" content="{{ .Site.Params.Description }}" />
|
||||
<meta property="og:site_name" content="{{ .Site.Title }}" />
|
||||
<meta property="og:title" content="{{ .Title }}" />
|
||||
<meta property="og:image" content="{{ if (eq .Section "weekly") }}{{ .Permalink }}/cover.png{{ else }}{{ .Site.BaseURL }}/img/revuo-monero.png{{ end }}" />
|
||||
<meta property="og:image" content="{{ if (eq .Section "weekly") }}{{ .Permalink }}/cover.png{{ else }}{{ .Site.BaseURL }}/img/revuo-monero.jpg{{ end }}" />
|
||||
<meta property="og:description" content="{{ .Site.Params.Description }}" />
|
||||
|
||||
{{ with .OutputFormats.Get "rss" -}}
|
||||
{{ printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML }}
|
||||
|
|
Loading…
Reference in a new issue