Fix & show section emoji

This commit is contained in:
JP Hastings-Spital 2023-09-11 22:22:07 +01:00
parent 2a2f63ed8a
commit 7557d6f467
7 changed files with 16 additions and 3 deletions

View file

@ -1,6 +1,6 @@
---
title: "Curiosities"
emoji: 🧠
emoji: 🤩
draft: false
type: timeless
summary: A list of the many curious things I've made over the years.

View file

@ -1,5 +1,6 @@
---
title: Memex
emoji: 🧠
summary: My memory-expander; a space for me to keep links and thoughts that are interesting for reference later.
---

View file

@ -1,5 +1,6 @@
---
title: Photos
emoji: 📸
sitemap:
changefreq: monthly
priority: 0.8

4
content/posts/_index.md Normal file
View file

@ -0,0 +1,4 @@
---
title: Posts
emoji: 📔
---

View file

@ -4,7 +4,10 @@
<main class="posts">
{{ partial "generic-list-header.html" . }}
<h1>{{ title (replace .Title "-" " ") }}</h1>
<h1 class="p-name">
{{ with .Params.emoji }}<span data-emoji="{{.}}"></span>{{end}}
<a href="{{ .Permalink }}" class="noaccent u-url">{{ title (replace .Title "-" " ") }}</a>
</h1>
{{ if .Content }}
<div class="content">{{ .Content }}</div>

View file

@ -6,6 +6,7 @@
<article>
<hgroup class="post-title">
<h1 class="p-name">
{{ with .Params.emoji }}<span data-emoji="{{.}}"></span>{{end}}
<a href="{{ .Permalink }}" class="noaccent u-url">{{ title (replace .Title "-" " ") }}</a>
</h1>
</hgroup>

View file

@ -4,7 +4,10 @@
<main class="posts instagram">
{{ partial "generic-list-header.html" . }}
<h1>{{ title (replace .Title "-" " ") }}</h1>
<h1>
{{ with .Params.emoji }}<span data-emoji="{{.}}"></span>{{end}}
<a href="{{ .Permalink }}" class="noaccent u-url">{{ title (replace .Title "-" " ") }}</a>
</h1>
{{ if .Content }}
<div class="content">{{ .Content }}</div>