Add ability to add about me page
This commit is contained in:
@@ -2,4 +2,7 @@
|
||||
title: "{{ replace .TranslationBaseName "-" " " | title }}"
|
||||
date: {{ .Date }}
|
||||
description: ""
|
||||
menu: false
|
||||
list: false
|
||||
draft: true
|
||||
---
|
||||
|
||||
@@ -4,5 +4,7 @@ date: {{ .Date }}
|
||||
description: ""
|
||||
categories: []
|
||||
featuredImage: ""
|
||||
menu: false
|
||||
list: true
|
||||
draft: true
|
||||
---
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<p class="list-header-subtext">{{ .Description }}</p>
|
||||
<h1 class="list-header-title">{{ .Title }}</h1>
|
||||
</header>
|
||||
{{ range .Paginator.Pages }}
|
||||
{{ range where .Paginator.Pages "Params.list" true }}
|
||||
{{ .Render "li" }}
|
||||
{{ end }}
|
||||
</main>
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
<article class="post">
|
||||
<header class="post-header">
|
||||
<h1 class="post-title">{{ .Title }}</h1>
|
||||
<p class="post-date">Posted <time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "Jan 2, 2006" }}</time></p>
|
||||
</header>
|
||||
{{ if isset .Params "featuredimage" }}
|
||||
<figure class="post-figure">
|
||||
@@ -16,14 +15,8 @@
|
||||
{{ end }}
|
||||
{{ .Content }}
|
||||
</article>
|
||||
<!--
|
||||
If you're going to use DISQUS comments, insert code here.
|
||||
-->
|
||||
</main>
|
||||
<nav class="end-nav side-padding">
|
||||
{{ with .Next }}
|
||||
{{ .Render "single-li" }}
|
||||
{{ end }}
|
||||
{{ partial "home-card.html" . }}
|
||||
</nav>
|
||||
{{ partial "scripts.html" . }}
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
<span></span>
|
||||
<ul class="hamburger-menu-overlay">
|
||||
<li><a href="/" class="hamburger-menu-overlay-link">Home</a></li>
|
||||
{{ range where .Site.Pages "Params.menu" true }}
|
||||
<li><a href="{{ .Permalink }}" class="hamburger-menu-overlay-link">{{ .Title }}</a></li>
|
||||
{{ end }}
|
||||
{{ range $key, $value := .Site.Taxonomies.categories }}
|
||||
<li><a href="/categories/{{ $key | urlize }}" class="hamburger-menu-overlay-link">{{ $key | humanize }}</a></li>
|
||||
{{ end }}
|
||||
|
||||
31
layouts/posts/single.html
Normal file
31
layouts/posts/single.html
Normal file
@@ -0,0 +1,31 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}" dir="ltr">
|
||||
{{ partial "head.html" . }}
|
||||
<body class="single-body">
|
||||
{{ partial "nav-bar.html" . }}
|
||||
<main class="content side-text-padding">
|
||||
<article class="post dropcase">
|
||||
<header class="post-header">
|
||||
<h1 class="post-title">{{ .Title }}</h1>
|
||||
<p class="post-date">Posted <time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "Jan 2, 2006" }}</time></p>
|
||||
</header>
|
||||
{{ if isset .Params "featuredimage" }}
|
||||
<figure class="post-figure">
|
||||
<img src="{{ .Site.BaseURL }}/{{.Params.featuredimage }}">
|
||||
</figure>
|
||||
{{ end }}
|
||||
{{ .Content }}
|
||||
</article>
|
||||
<!--
|
||||
If you're going to use DISQUS comments, insert code here.
|
||||
-->
|
||||
</main>
|
||||
<nav class="end-nav side-padding">
|
||||
{{ with .Next }}
|
||||
{{ .Render "li-next" }}
|
||||
{{ end }}
|
||||
{{ partial "home-card.html" . }}
|
||||
</nav>
|
||||
{{ partial "scripts.html" . }}
|
||||
</body>
|
||||
</html>
|
||||
@@ -126,7 +126,7 @@ input:checked ~ .hamburger-menu-overlay {
|
||||
.post-figure {
|
||||
margin: 1.5em 0;
|
||||
}
|
||||
.post > p:first-of-type::first-letter {
|
||||
.dropcase > p:first-of-type::first-letter {
|
||||
font-family: 'LatoLatinWebHeavyItalic';
|
||||
float: left;
|
||||
font-size: 3em;
|
||||
|
||||
Reference in New Issue
Block a user