Create a contributors setting instead of the traditional "author" field, and edited the footer to reflect this.

This commit is contained in:
Pepijn Kokke 2017-03-11 22:52:28 +00:00
parent f58de1fcdc
commit 7d020f3963
No known key found for this signature in database
GPG key ID: EF467CD387487CB8
3 changed files with 34 additions and 32 deletions

View file

@ -1,17 +1,25 @@
title: Agda Software Foundations title: Agda Software Foundations
# the author field should not be used in the template
author: Pepijn Kokke author: Pepijn Kokke
email: pepijn.kokke@gmail.com
# to include a new contributor, add:
# name, email, (github_username or twitter_username)
contributors:
- name: Pepijn Kokke
email: pepijn.kokke@ed.ac.uk
github_username: pepijnkokke
description: > description: >
Write an awesome description for your new site here. You can edit this There should be a description here.
line in _config.yml. It will appear in your document head meta (for
Google search results) and in your feed.xml site description. # include disqus to allow comments e.d.
baseurl: "/sf"
url: "https://pepijnkokke.github.io"
github_username: pepijnkokke
disqus: disqus:
shortname: pepijnkokke shortname: pepijnkokke
# Build settings # technical details below --- do not modify (ง'-')ง
baseurl: "/sf"
url: "https://pepijnkokke.github.io"
markdown: kramdown markdown: kramdown
theme: minima theme: minima
gems: gems:

View file

@ -7,31 +7,35 @@
<div class="footer-col-wrapper"> <div class="footer-col-wrapper">
<div class="footer-col footer-col-1"> <div class="footer-col footer-col-1">
<ul class="contact-list"> <ul class="contact-list">
{% if site.contributors %}
{% for contributor in site.contributors %}
<li> <li>
{% if site.author %} {% if contributor.email %}
{{ site.author | escape }} <a href="mailto:{{ contributor.email }}">
{% else %} {% endif %}
{{ site.title | escape }} {{ contributor.name | escape }}
{% if contributor.email %}
</a>
{% endif %} {% endif %}
</li> </li>
{% if site.email %} {% endfor %}
<li><a href="mailto:{{ site.email }}">{{ site.email }}</a></li>
{% endif %} {% endif %}
</ul> </ul>
</div> </div>
<div class="footer-col footer-col-2"> <div class="footer-col footer-col-2">
<ul class="social-media-list"> <ul class="social-media-list">
{% if site.github_username %} {% if site.contributors %}
{% for contributor in site.contributors %}
<li> <li>
{% include icon-github.html username=site.github_username %} {% if contributor.github_username %}
</li> <li>{% include icon-github.html username=contributor.github_username %}</li>
{% endif %} {% endif %}
{% if contributor.twitter_username %}
{% if site.twitter_username %} <li>{% include icon-twitter.html username=contributor.twitter_username %}</li>
<li> {% endif %}
{% include icon-twitter.html username=site.twitter_username %}
</li> </li>
{% endfor %}
{% endif %} {% endif %}
</ul> </ul>
</div> </div>

View file

@ -1,10 +0,0 @@
---
layout: default
---
<div class="home">
{{ content }}
</div>