Skip to content

Commit

Permalink
Use internal OpenGraph and Twitter Cards templates
Browse files Browse the repository at this point in the history
  • Loading branch information
pindab0ter committed Oct 21, 2023
1 parent 42c6738 commit 344193c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 31 deletions.
13 changes: 11 additions & 2 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,17 @@ title = 'Cattery Hamana'
defaultContentLanguage = 'nl'
enableRobotsTXT = true

[params]
description = "Kleinschalige Ragdoll & Noorse Boskat-cattery in Arnhem die zich inzet voor het fokken van sociale en gezonde kittens."
[Params]
description = "Kleinschalige Ragdoll & Noorse Boskat-cattery in Arnhem die zich inzet voor het fokken van sociale en gezonde kittens."

[Params.favicons]
appleTouchIcon = '/apple-touch-icon.png'
icon32 = '/favicon-32x32.png'
icon16 = '/favicon-16x16.png'
manifest = '/site.webmanifest'
maskIcon = '/safari-pinned-tab.svg'
msApplicationTileColor = '#5bbad5'
themeColor = '#2B2B2B'

[menu]
[[menu.main]]
Expand Down
3 changes: 3 additions & 0 deletions content/nieuws/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
description: Het laatste nieuws van Cattery Hamana
---
31 changes: 2 additions & 29 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,36 +10,9 @@
{{ end }}
<meta name="description" content="{{ .Site.Params.description }}" />

<!-- Google / Search Engine Tags -->
<meta itemprop="name" content="{{ .Site.Title }}" />
<meta itemprop="description" content="{{ .Site.Params.description }}" />
<meta itemprop="image" content="https://hamana.nl/logo-text.png" />
{{ template "_internal/opengraph.html" . }}
{{ template "_internal/twitter_cards.html" . }}

<!-- Facebook Meta Tags -->
<meta property="og:url" content="https://hamana.nl" />
<meta property="og:type" content="website" />
{{ if .IsHome }}
<meta property="og:title" content="{{ .Site.Title }}" />
{{ else }}
<meta property="og:title" content="{{ .Site.Title }} | {{ .Title }}" />
{{ end }}
<meta property="og:locale" content="nl_NL" />
<meta property="og:description" content="{{ .Site.Params.description }}" />
<meta property="og:image" content="https://hamana.nl/logo-text.png" />
<meta property="og:image:type" content="image/png" />
<meta property="og:image:alt" content="Cattery Hamana logo" />

<!-- Twitter Meta Tags -->
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:domain" content="hamana.nl" />
<meta property="twitter:url" content="https://hamana.nl" />
{{ if .IsHome }}
<meta name="twitter:title" content="{{ .Site.Title }}" />
{{ else }}
<meta name="twitter:title" content="{{ .Site.Title }} | {{ .Title }}" />
{{ end }}
<meta name="twitter:description" content="{{ .Site.Params.description }}" />
<meta name="twitter:image" content="https://hamana.nl/logo-text.png" />

<!-- Favicons -->
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
Expand Down

0 comments on commit 344193c

Please sign in to comment.