Skip to content

Commit

Permalink
author pages WIP, #1
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesturk committed Oct 24, 2019
1 parent 25e0a8a commit 3d645c7
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 6 additions & 0 deletions content/author/james/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
name: James Turk
twitter: "@jamesturk"
---

James is the founder of Open States.
5 changes: 5 additions & 0 deletions content/author/miles/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: Miles Watkins
---

Miles is a core developer of Open States.
18 changes: 18 additions & 0 deletions layouts/author/list.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<h1>{{ .Params.name }}</h1>
<h2>Bio</h2>
{{ .Content }}

{{ with .Params.twitter }}
<p>
<a href="https://twitter.com/{{ substr . 1 }}">
Follow {{ $.Params.name }} on Twitter
</a>
</p>
{{ end }}

<h2>Articles</h2>
<ul>
{{ range .Data.Pages }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>

0 comments on commit 3d645c7

Please sign in to comment.