Fixed formatting and added description
All checks were successful
Docker Deploy / build-and-push (push) Successful in 57s

This commit is contained in:
Atridad Lahiji 2025-01-11 23:08:39 -06:00
parent 6e51164403
commit 862ff8e546
Signed by: atridad
SSH key fingerprint: SHA256:LGomp8Opq0jz+7kbwNcdfTcuaLRb5Nh0k5AchDDb438
15 changed files with 73 additions and 31 deletions

View file

@ -1,5 +1,6 @@
---
name: "Welcome!"
description: "Welcome to my website!"
date: "October 20 2024"
tags: ["welcome"]
---

View file

@ -13,9 +13,10 @@ import (
)
type FrontMatter struct {
Name string
Date string
Tags []string
Name string
Description string
Date string
Tags []string
}
func ExtractFrontMatter(file fs.DirEntry, contentFS fs.FS) (CardLink, error) {

View file

@ -16,10 +16,11 @@ import (
)
type PostProps struct {
Content template.HTML
Name string
Date string
Tags []string
Content template.HTML
Name string
Description string
Date string
Tags []string
}
func Post(c echo.Context) error {
@ -64,10 +65,11 @@ func Post(c echo.Context) error {
}
props := PostProps{
Content: template.HTML(buf.String()),
Name: frontmatter.Name,
Date: frontmatter.Date,
Tags: frontmatter.Tags,
Content: template.HTML(buf.String()),
Name: frontmatter.Name,
Description: frontmatter.Description,
Date: frontmatter.Date,
Tags: frontmatter.Tags,
}
// Specify the partials used by this page

View file

@ -2,7 +2,11 @@
Atridad Lahiji // Root
{{end}}
{{define "headercontent"}}
{{define "description"}}
Researcher, Full-Stack Developer, and IT Professional.
{{end}}
{{define "navcontent"}}
Atridad Lahiji // Root
{{end}}

View file

@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="/public/favicon.ico" />
<title>{{template "title" .}}</title>
<meta name="description" content="Just here for the vibes...">
<meta name="description" content="{{template "description" .}}">
{{template "head" .}}
</head>

View file

@ -5,8 +5,8 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="/public/favicon.ico" />
<title>{{.Name}}</title>
<meta name="description" content="Just here for the vibes...">
<title>{{template "title" .}}</title>
<meta name="description" content="{{template "description" .}}">
{{template "head" .}}
</head>

View file

@ -2,7 +2,11 @@
Atridad Lahiji // Papers
{{end}}
{{define "headercontent"}}
{{define "description"}}
Papers I've Written
{{end}}
{{define "navcontent"}}
Atridad Lahiji // Papers
{{end}}

View file

@ -1,7 +1,7 @@
{{define "header"}}
<header class="navbar bg-base-100">
<div class="navbar-start">
<a class="btn btn-ghost normal-case text-lg sm:text-xl text-white" href="/">{{template "headercontent".}}</a>
<a class="btn btn-ghost normal-case text-lg sm:text-xl text-white" href="/">{{template "navcontent".}}</a>
</div>
<div class="navbar-end z-50">
<div class="dropdown dropdown-end">

View file

@ -1,9 +1,13 @@
{{define "title"}}
Atridad Lahiji // Post
Atridad Lahiji // Post // {{.Name}}
{{end}}
{{define "headercontent"}}
Atridad Lahiji // Post
{{define "description"}}
{{.Description}}
{{end}}
{{define "navcontent"}}
Atridad Lahiji // Post // {{.Name}}
{{end}}
{{define "head"}}

View file

@ -1,9 +1,13 @@
{{define "title"}}
Atridad Lahiji // Blog
Atridad Lahiji // Posts
{{end}}
{{define "headercontent"}}
Atridad Lahiji // Blog
{{define "description"}}
Posts I've Written
{{end}}
{{define "navcontent"}}
Atridad Lahiji // Posts
{{end}}
{{define "head"}}

View file

@ -2,7 +2,11 @@
Atridad Lahiji // Projects
{{end}}
{{define "headercontent"}}
{{define "description"}}
Projects I've Done
{{end}}
{{define "navcontent"}}
Atridad Lahiji // Projects
{{end}}

View file

@ -2,7 +2,11 @@
Atridad Lahiji // Talks
{{end}}
{{define "headercontent"}}
{{define "description"}}
Talks I've Given
{{end}}
{{define "navcontent"}}
Atridad Lahiji // Talks
{{end}}

View file

@ -2,7 +2,11 @@
Atridad Lahiji // Tools
{{end}}
{{define "headercontent"}}
{{define "description"}}
Tools I've Built
{{end}}
{{define "navcontent"}}
Atridad Lahiji // Tools
{{end}}

View file

@ -2,7 +2,11 @@
Atridad Lahiji // Tools // Resizer
{{end}}
{{define "headercontent"}}
{{define "description"}}
A tool to re-size images.
{{end}}
{{define "navcontent"}}
Atridad Lahiji // Tools // Resizer
{{end}}
@ -28,4 +32,4 @@ Atridad Lahiji // Tools // Resizer
{{end}}
{{define "foot"}}
{{end}}
{{end}}

View file

@ -1,9 +1,15 @@
{{define "title"}}Atridad Lahiji // Tools // SSE Demo{{end}}
{{define "headercontent"}}
{{define "title"}}
Atridad Lahiji // Tools // SSE Demo
{{end}}
{{define "navcontent"}}
Atridad Lahiji // Tools // SSE Demo
{{end}}
{{define "description"}}
A demo of my SSE implimentation.
{{end}}
{{define "head"}}
<link rel="stylesheet" href="/public/css/styles.css" />
{{end}}