🚸 Add archetype for external articles

pull/100/head
James Panther 2022-01-25 13:12:14 +11:00
parent 1d4816f90a
commit e9eb51e86b
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
3 changed files with 25 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,10 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
externalUrl: ""
summary: ""
showReadingTime: false
_build:
render: "false"
list: "local"
---

View File

@ -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.