From 3d645c766d771bf2d9fb96fa1d17a218e0a54b74 Mon Sep 17 00:00:00 2001 From: James Turk Date: Thu, 24 Oct 2019 16:19:00 -0400 Subject: [PATCH] author pages WIP, #1 --- config.toml | 3 +++ content/author/james/_index.md | 6 ++++++ content/author/miles/_index.md | 5 +++++ layouts/author/list.html | 18 ++++++++++++++++++ 4 files changed, 32 insertions(+) create mode 100644 content/author/james/_index.md create mode 100644 content/author/miles/_index.md create mode 100644 layouts/author/list.html diff --git a/config.toml b/config.toml index d0c410c..ce89db9 100644 --- a/config.toml +++ b/config.toml @@ -8,6 +8,9 @@ googleAnalytics = "UA-143711479-2" [permalinks] post = ":filename" +[taxonomies] + author = "author" + [Params] subtitle = "Latest updates from the Open States team" logo = "img/openstates_icon_white.png" diff --git a/content/author/james/_index.md b/content/author/james/_index.md new file mode 100644 index 0000000..0865ef5 --- /dev/null +++ b/content/author/james/_index.md @@ -0,0 +1,6 @@ +--- +name: James Turk +twitter: "@jamesturk" +--- + +James is the founder of Open States. diff --git a/content/author/miles/_index.md b/content/author/miles/_index.md new file mode 100644 index 0000000..d3269d5 --- /dev/null +++ b/content/author/miles/_index.md @@ -0,0 +1,5 @@ +--- +name: Miles Watkins +--- + +Miles is a core developer of Open States. diff --git a/layouts/author/list.html b/layouts/author/list.html new file mode 100644 index 0000000..423a542 --- /dev/null +++ b/layouts/author/list.html @@ -0,0 +1,18 @@ +

{{ .Params.name }}

+

Bio

+{{ .Content }} + +{{ with .Params.twitter }} +

+ + Follow {{ $.Params.name }} on Twitter + +

+{{ end }} + +

Articles

+