Fixed formatting and added description
All checks were successful
Docker Deploy / build-and-push (push) Successful in 57s
All checks were successful
Docker Deploy / build-and-push (push) Successful in 57s
This commit is contained in:
parent
6e51164403
commit
862ff8e546
15 changed files with 73 additions and 31 deletions
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
name: "Welcome!"
|
||||
description: "Welcome to my website!"
|
||||
date: "October 20 2024"
|
||||
tags: ["welcome"]
|
||||
---
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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}}
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -2,7 +2,11 @@
|
|||
Atridad Lahiji // Papers
|
||||
{{end}}
|
||||
|
||||
{{define "headercontent"}}
|
||||
{{define "description"}}
|
||||
Papers I've Written
|
||||
{{end}}
|
||||
|
||||
{{define "navcontent"}}
|
||||
Atridad Lahiji // Papers
|
||||
{{end}}
|
||||
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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"}}
|
||||
|
|
|
@ -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"}}
|
||||
|
|
|
@ -2,7 +2,11 @@
|
|||
Atridad Lahiji // Projects
|
||||
{{end}}
|
||||
|
||||
{{define "headercontent"}}
|
||||
{{define "description"}}
|
||||
Projects I've Done
|
||||
{{end}}
|
||||
|
||||
{{define "navcontent"}}
|
||||
Atridad Lahiji // Projects
|
||||
{{end}}
|
||||
|
||||
|
|
|
@ -2,7 +2,11 @@
|
|||
Atridad Lahiji // Talks
|
||||
{{end}}
|
||||
|
||||
{{define "headercontent"}}
|
||||
{{define "description"}}
|
||||
Talks I've Given
|
||||
{{end}}
|
||||
|
||||
{{define "navcontent"}}
|
||||
Atridad Lahiji // Talks
|
||||
{{end}}
|
||||
|
||||
|
|
|
@ -2,7 +2,11 @@
|
|||
Atridad Lahiji // Tools
|
||||
{{end}}
|
||||
|
||||
{{define "headercontent"}}
|
||||
{{define "description"}}
|
||||
Tools I've Built
|
||||
{{end}}
|
||||
|
||||
{{define "navcontent"}}
|
||||
Atridad Lahiji // Tools
|
||||
{{end}}
|
||||
|
||||
|
|
|
@ -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}}
|
||||
|
|
|
@ -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}}
|
||||
|
|
Loading…
Add table
Reference in a new issue