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!" name: "Welcome!"
description: "Welcome to my website!"
date: "October 20 2024" date: "October 20 2024"
tags: ["welcome"] tags: ["welcome"]
--- ---

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,7 +1,7 @@
{{define "header"}} {{define "header"}}
<header class="navbar bg-base-100"> <header class="navbar bg-base-100">
<div class="navbar-start"> <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>
<div class="navbar-end z-50"> <div class="navbar-end z-50">
<div class="dropdown dropdown-end"> <div class="dropdown dropdown-end">

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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