Skip to content

Commit

Permalink
Home page external links now defined in page frontmatter (rather than…
Browse files Browse the repository at this point in the history
… hardcoded into template)
  • Loading branch information
justusthane committed Feb 8, 2020
1 parent 64f4cf9 commit 294faf7
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 11 deletions.
17 changes: 17 additions & 0 deletions user/pages/01.home/home.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
---
title: "justus.ws"
body_classes: 'home'
elsewhere_links:
-
menu: 'e-mail'
tagline: ': jg@justus.ws'
href: 'mailto:jg@justus.ws'
-
menu: 'photos'
tagline: ' > smugmug'
href: 'https://photos.justus.ws'
-
menu: 'github'
tagline: ' > code'
href: 'https://github.com/justusthane'
-
menu: 'keybase'
tagline: ' > encrypt'
href: 'https://keybase.io/justusthane'
---
22 changes: 11 additions & 11 deletions user/themes/straightline/templates/home.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@
{% endif %}
{% endfor %}
</dl>
<dl>
<h2>elsewhere</h2>
<dt><a href="mailto:jg@justus.ws">e-mail</a></dt>
<dd>: jg@justus.ws</h2>
<dt><a href="https://photos.justus.ws">photos</a></dt>
<dd>&nbsp;&gt;&nbsp;smugmug</dt>
<dt><a href="https://github.com/justusthane">github</a></dt>
<dd>&nbsp;&gt;&nbsp;code</dd>
<dt><a href="https://keybase.io/justusthane">keybase</a></dt>
<dd>&nbsp;&gt;&nbsp;encrypt</dd>
</dl>
{% if page.header.elsewhere_links %}
<dl>
<h2>elsewhere</h2>
{% for link in page.header.elsewhere_links %}
<dt><a href="{{ link.href }}">{{ link.menu }}</a></dt>
<dd>{{ link.tagline }}</dd>
{% endfor %}
</dl>
{% endif %}




</nav>
Expand Down

0 comments on commit 294faf7

Please sign in to comment.