Skip to content
Permalink
Browse files

Home page external links now defined in page frontmatter (rather than…

… hardcoded into template)
  • Loading branch information
justusthane committed Feb 8, 2020
1 parent 64f4cf9 commit 294faf768b95e80e0b8ba2b7028cc7ca797f202e
Showing with 28 additions and 11 deletions.
  1. +17 −0 user/pages/01.home/home.md
  2. +11 −11 user/themes/straightline/templates/home.html.twig
@@ -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'
---
@@ -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>

0 comments on commit 294faf7

Please sign in to comment.
You can’t perform that action at this time.