Move social list to page layout
This commit is contained in:
parent
ffec95f94d
commit
f2f2aca76a
3 changed files with 29 additions and 21 deletions
|
@ -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 %}}
|
||||
|
|
28
layouts/_default/about.html
Normal file
28
layouts/_default/about.html
Normal 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 }}
|
|
@ -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>
|
Loading…
Reference in a new issue