Skip to content

Commit

Permalink
Update config + archetype with video info and update example
Browse files Browse the repository at this point in the history
  • Loading branch information
MJacred committed Dec 30, 2022
1 parent 48f2a75 commit 9c76d03
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
* page param "seo_title"
* Default Archetype
* Image Gallery support
* YouTube Video support


### Changed
Expand Down
5 changes: 5 additions & 0 deletions archetypes/default.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ gallery: # images in a gallery; ignored by meta data
thumb_name: "0_t.jpg" # must be in assets/thumbnails/
cropped: true # optional
alt: "" # optional, but you should add an alternative text
video:
title:
videoID:
videoURL: "https://www.youtube.com/watch?v="
thumbnailURL: "t.jpg" # if url does not start with "http", then it searches in assets/thumbnail
# seo-meta
description: "Your description"
# robots: "" # default values by search engines: "index, follow", use e.g. "noindex" to change behaviour
Expand Down
16 changes: 16 additions & 0 deletions exampleSite/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ languages:
languageName: English
languageCode: en-us
# ------------------------------------------
# Video - accept 3rd party cookies
# ------------------------------------------
video:
infoRequired: "Playing YouTube videos requires you to accept their cookies."
showAccept: "Accept cookies & Show video"
directLink: "Open in new Tab"
cookiePreferences: "Show cookie preferences"
# ------------------------------------------
# SEO (serach engine optimization)
# ------------------------------------------
# Used as meta data; describe your site to make Search Engine Bots happy
Expand Down Expand Up @@ -167,6 +175,14 @@ languages:
languageName: Deutsch
languageCode: de-de
# ------------------------------------------
# Video - accept 3rd party cookies
# ------------------------------------------
video:
infoRequired: "Das Abspielen von YouTube Videos erfordert, dass Sie deren Cookies akzeptieren."
showAccept: "Cookies akzeptieren & Video anzeigen"
directLink: "Im neuen Tab öffnen"
cookiePreferences: "Öffne die Cookie Einstellungen"
# ------------------------------------------
# SEO (serach engine optimization)
# ------------------------------------------
# Used as meta data; describe your site to make Search Engine Bots happy
Expand Down
5 changes: 5 additions & 0 deletions exampleSite/content/_index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ detailCards: # Currently it will have **always** three `titles`.
text: This is some explanatory text that is on two rows
url: /
buttonText: Get started
video:
title: test-video
videoID: kHpXle4NqWI
videoURL: "https://www.youtube.com/watch?v=kHpXle4NqWI"
thumbnailURL: "toons.jpg"
featureHighlights: # Shows information why someone should use this product.
title: You're here because you want the best
subtitle: And we know it
Expand Down

0 comments on commit 9c76d03

Please sign in to comment.