Move hero stuff out of content into index.html template

This commit is contained in:
hedy 2024-04-13 14:44:43 +08:00
parent 1bb4339364
commit b5c790df77
Signed by: hedy
GPG Key ID: B51B5A8D1B176372
2 changed files with 8 additions and 10 deletions

View File

@ -3,16 +3,6 @@ outputs = ['html', 'gemtext']
title = 'home'
+++
<center class="hero" style="margin-bottom: 5rem;">
<h1><span style="font-size: 2.2rem;">{{% pfp-name %}}</span><span class="blink" style="font-family: var(--mono-font)"></span></h1>
[Fediverse](https://tilde.zone/@hedy) ⋅ [GitHub](https://github.com/hedyhli) ⋅ [SourceHut](https://sr.ht/~hedy)
</center>
---
## Contacts
Preferably <a rel="me" href="mailto:hedy.dev@protonmail.com">email</a> or

View File

@ -1,3 +1,11 @@
{{ define "main" }}
<div class="hero">
<h1>{{ partial "pfp-name.html" . }}<span class="blink"></span></h1>
<p><a href="https://tilde.zone/@hedy">Fediverse</a><a href="https://github.com/hedyhli">GitHub</a><a href="https://sr.ht/~hedy">SourceHut</a></p>
</div>
<hr>
{{ .Content }}
{{ end }}