diff --git a/CHANGELOG.md b/CHANGELOG.md index aa2dea42..82f468d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/archetypes/default.md b/archetypes/default.md index 148f4b72..1b0dee5a 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -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 diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 19a44dca..d1ad8b6e 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -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 @@ -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 diff --git a/exampleSite/content/_index.en.md b/exampleSite/content/_index.en.md index b6052f2b..bdb208e6 100644 --- a/exampleSite/content/_index.en.md +++ b/exampleSite/content/_index.en.md @@ -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