mirror of
https://github.com/rottenwheel/revuoxmrtheme.git
synced 2024-12-27 02:47:48 +00:00
fix(meta): correct meta description and add Twitter/OG descriptions
Updated the meta description to use site parameters instead of page parameters for consistency. Added site-wide description to Twitter and Open Graph meta tags to enhance SEO and social media sharing. This ensures a uniform description across various platforms.
This commit is contained in:
parent
26f0a266ec
commit
a24ac412e2
1 changed files with 3 additions and 1 deletions
|
@ -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" />
|
||||
|
@ -21,9 +21,11 @@
|
|||
<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: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: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