basic blog page!

This commit is contained in:
ari melody 2025-04-02 23:04:09 +01:00
parent 8eb432539c
commit 1a8dc4d9ce
Signed by: ari
GPG key ID: 60B5F0386E3DDB7E
9 changed files with 209 additions and 0 deletions

34
view/blog.html Normal file
View file

@ -0,0 +1,34 @@
{{define "head"}}
<title>{{.Title}} - ari melody 💫</title>
<link rel="shortcut icon" href="/img/favicon.png" type="image/x-icon">
<meta name="description" content="{{.Description}}">
<meta property="og:title" content="{{.Title}}">
<meta property="og:type" content="article">
<meta property="og:url" content="www.arimelody.me/blog/{{.Date.Year}}/{{.GetMonth}}/{{.TitleNormalised}}">
<meta property="og:image" content="https://www.arimelody.me/img/favicon.png">
<meta property="og:site_name" content="ari melody">
<meta property="og:description" content="{{.Description}}">
<link rel="stylesheet" href="/style/main.css">
<link rel="stylesheet" href="/style/index.css">
<link rel="stylesheet" href="/style/blog.css">
{{end}}
{{define "content"}}
<main>
<article class="blog">
<h1 class="typeout">{{.Title}}</h1>
<p class="blog-date">Posted by <a href="/blog/{{.AuthorID}}">{{.AuthorID}}</a> @ {{.PrintDate}}</p>
<hr>
{{.HTML}}
<hr>
<!-- comments section here! -->
</article>
<script type="module" src="/script/blog.js"></script>
</main>
{{end}}