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!"
|
name: "Welcome!"
|
||||||
|
description: "Welcome to my website!"
|
||||||
date: "October 20 2024"
|
date: "October 20 2024"
|
||||||
tags: ["welcome"]
|
tags: ["welcome"]
|
||||||
---
|
---
|
||||||
|
|
|
@ -14,6 +14,7 @@ import (
|
||||||
|
|
||||||
type FrontMatter struct {
|
type FrontMatter struct {
|
||||||
Name string
|
Name string
|
||||||
|
Description string
|
||||||
Date string
|
Date string
|
||||||
Tags []string
|
Tags []string
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,6 +18,7 @@ import (
|
||||||
type PostProps struct {
|
type PostProps struct {
|
||||||
Content template.HTML
|
Content template.HTML
|
||||||
Name string
|
Name string
|
||||||
|
Description string
|
||||||
Date string
|
Date string
|
||||||
Tags []string
|
Tags []string
|
||||||
}
|
}
|
||||||
|
@ -66,6 +67,7 @@ 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,
|
||||||
|
Description: frontmatter.Description,
|
||||||
Date: frontmatter.Date,
|
Date: frontmatter.Date,
|
||||||
Tags: frontmatter.Tags,
|
Tags: frontmatter.Tags,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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}}
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
@ -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}}
|
||||||
|
|
||||||
|
|
|
@ -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">
|
||||||
|
|
|
@ -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"}}
|
||||||
|
|
|
@ -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"}}
|
||||||
|
|
|
@ -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}}
|
||||||
|
|
||||||
|
|
|
@ -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}}
|
||||||
|
|
||||||
|
|
|
@ -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}}
|
||||||
|
|
||||||
|
|
|
@ -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}}
|
||||||
|
|
||||||
|
|
|
@ -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}}
|
||||||
|
|
Loading…
Add table
Reference in a new issue