Compare commits

...

4 commits

Author SHA1 Message Date
benjaoming 23d103122c Merge pull request 'Link preview image #105 - but will it build?' (#106) from some-card into main
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #106
2023-12-16 22:32:21 +00:00
Benjamin Bach e320c7be2b
Merge branch 'main' of git.data.coop:data.coop/website into some-card
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone/pr Build is passing
2023-12-16 23:19:57 +01:00
Benjamin Bach 396a4f8520
Some comment on how that works
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2023-12-16 23:19:23 +01:00
Benjamin Bach a5b576e790
Add OpenGraph and hellsite preview 2023-12-16 22:27:59 +01:00
4 changed files with 11 additions and 1 deletions

View file

@ -17,7 +17,13 @@ markup:
languages:
da:
title: data.coop
weight: 1
weight: 1
# First Hugo looks in your post front matter for an images value (images: [""])
# Then Hugo searchs for image page resources with feature, cover or thumbnail in their name. These are images files under a directory that matches the post (e.g. content\posts\first-post)
# If not images are found, Hugo looks for images (images: [""]) in your site config
# If no image if found, then an image-less Twitter summary card is used instead of summary_large_image
# https://digitaldrummerj.me/hugo-preview-when-sharing-twitter/
images: ["/static/img/some_card_preview_large_en.png"]
LanguageName: Dansk
menu:
nav:
@ -36,6 +42,7 @@ languages:
en:
title: data.coop
weight: 2
images: ["/static/img/some_card_preview_large_da.png"]
LanguageName: English
menu:
nav:

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

View file

@ -17,6 +17,9 @@
<meta name="msapplication-TileColor" content="#4b3aba">
<meta name="theme-color" content="#4b3aba">
{{ template "_internal/twitter_cards.html" . }}
{{ template "_internal/opengraph.html" . }}
{{ $style := resources.Get "static/css/style.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint "sha512" }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}" integrity="{{ $style.Data.Integrity }}">