1
Fork 0

Move social list to page layout

This commit is contained in:
Jake Howard 2018-08-17 23:29:41 +01:00
parent ffec95f94d
commit f2f2aca76a
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 29 additions and 21 deletions

View file

@ -1,9 +1,8 @@
---
title: About
layout: about
---
In the interest of privacy, there's very little personal information here.
The information that is here is either not personal enough to bother protecting, or has been selectively chosen as nothing bad.
{{% social_list %}}

View file

@ -0,0 +1,28 @@
{{ define "main" }}
<div id="main">
<div class="container">
{{ partial "content.html" . }}
<div class="row">
{{ range $i, $e := sort .Site.Data.social.accounts "name" }}
<div class="col-sm-3 mt-3">
<div class="card text-center">
<a href="{{ $e.link }}" class="colour-invert">
<h1 class="display-3"><i class="{{ $e.icon }}"></i></h1>
</a>
<div class="card-body">
<a href="{{ $e.link }}" class="colour-invert">
<h3>{{ $e.name }}</h3>
</a>
<a href="{{ $e.link }}">
<p>{{ $e.username }}</p>
</a>
</div>
</div>
</div>
{{ end }}
</div>
</div>
{{ partial "share.html" . }}
</div>
{{ end }}

View file

@ -1,19 +0,0 @@
<div class="row">
{{ range $i, $e := sort .Site.Data.social.accounts "name" }}
<div class="col-sm-3 mt-3">
<div class="card text-center">
<a href="{{ $e.link }}" class="colour-invert">
<h1 class="display-3"><i class="{{ $e.icon }}"></i></h1>
</a>
<div class="card-body">
<a href="{{ $e.link }}" class="colour-invert">
<h3>{{ $e.name }}</h3>
</a>
<a href="{{ $e.link }}">
<p>{{ $e.username }}</p>
</a>
</div>
</div>
</div>
{{ end }}
</div>