From 7c5eaed76138e7fb78e99d40339d3db64d383c8c Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Wed, 3 Nov 2021 16:23:52 +1100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Update=20'Rich=20Content'=20exam?= =?UTF-8?q?ple=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- exampleSite/content/samples/rich-content.md | 24 +++++++++++++-------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/exampleSite/content/samples/rich-content.md b/exampleSite/content/samples/rich-content.md index 6772ec7d..aa200085 100755 --- a/exampleSite/content/samples/rich-content.md +++ b/exampleSite/content/samples/rich-content.md @@ -6,24 +6,30 @@ summary: "This is an _example_ of a **rich** content summary." tags: ["shortcodes", "privacy", "sample"] --- -Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugos-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds. +Hugo ships with several [built-in shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugos-built-in-shortcodes) for rich content, along with a [privacy config](https://gohugo.io/about/hugo-and-gdpr/) and a set of _simple shortcodes_ that enable static and no-JS versions of various social media embeds. -## YouTube Privacy Enhanced Shortcode +## YouTube + +Below is an example using the built-in `youtube` shortcode. {{< youtube ZJthWmvUzzc >}} -
+## Twitter ---- - -## Twitter Simple Shortcode +This example uses the `twitter_simple` shortcode to output a Tweet. It requires two named parameters `user` and `id`. {{< twitter_simple user="DesignReviewed" id="1085870671291310081" >}} -
+Alternatively, the `tweet` shortcode can be used to embed a fully marked up Twitter card. ---- +## Gist -## Vimeo Simple Shortcode +The `gist` shortcode can be used to embed a GitHub Gist. It requires two unnamed parameters: the username and ID of the Gist. + +{{< gist jpanther a873e1219ffeaa80a926bbe8255f348e >}} + +## Vimeo + +The `vimeo_simple` shortcode will embed a Vimeo video. {{< vimeo_simple 48912912 >}}