diff --git a/CHANGELOG.md b/CHANGELOG.md index eb9304ec..aef8e740 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - Article pagination direction can be inverted - Author `headline` parameter - Skip to content and Scroll to top links +- Archetype for generating links to external articles ### Changed diff --git a/archetypes/external.md b/archetypes/external.md new file mode 100644 index 00000000..80f16dc8 --- /dev/null +++ b/archetypes/external.md @@ -0,0 +1,10 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +externalUrl: "" +summary: "" +showReadingTime: false +_build: + render: "false" + list: "local" +--- diff --git a/exampleSite/content/samples/external.md b/exampleSite/content/samples/external.md new file mode 100755 index 00000000..1d5de6a3 --- /dev/null +++ b/exampleSite/content/samples/external.md @@ -0,0 +1,14 @@ +--- +title: "An External Article" +date: 2019-01-24 +externalUrl: "https://jamespanther.com/writings/i-switched-from-google-analytics-to-fathom-analytics/" +summary: "The `externalUrl` front matter parameter can link to any URL." +showReadingTime: false +_build: + render: "false" + list: "local" +--- + +This page uses the `externalUrl` front matter parameter to link to an article outside of this Hugo website. + +It's great for things like linking to posts on Medium or to research papers you may have hosted on third party websites.