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" title: "Curiosities"
emoji: 🧠 emoji: 🤩
draft: false draft: false
type: timeless type: timeless
summary: A list of the many curious things I've made over the years. summary: A list of the many curious things I've made over the years.

View file

@ -1,5 +1,6 @@
--- ---
title: Memex title: Memex
emoji: 🧠
summary: My memory-expander; a space for me to keep links and thoughts that are interesting for reference later. 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 title: Photos
emoji: 📸
sitemap: sitemap:
changefreq: monthly changefreq: monthly
priority: 0.8 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"> <main class="posts">
{{ partial "generic-list-header.html" . }} {{ 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 }} {{ if .Content }}
<div class="content">{{ .Content }}</div> <div class="content">{{ .Content }}</div>

View file

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

View file

@ -4,7 +4,10 @@
<main class="posts instagram"> <main class="posts instagram">
{{ partial "generic-list-header.html" . }} {{ 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 }} {{ if .Content }}
<div class="content">{{ .Content }}</div> <div class="content">{{ .Content }}</div>