From 9ce6c42b05b2e316d3aef11c51f114e3ef545fa8 Mon Sep 17 00:00:00 2001 From: Himanshu Sardana Date: Mon, 23 Mar 2026 23:30:30 +0000 Subject: feat: add home page info --- go.mod | 10 ++++- go.sum | 8 ++++ home.html | 140 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ main.go | 4 +- 4 files changed, 159 insertions(+), 3 deletions(-) create mode 100644 home.html diff --git a/go.mod b/go.mod index 7144e83..28d182c 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,12 @@ module kite go 1.25.0 -require github.com/gomarkdown/markdown v0.0.0-20260217112301-37c66b85d6ab +require ( + github.com/adrg/frontmatter v0.2.0 + github.com/gomarkdown/markdown v0.0.0-20260217112301-37c66b85d6ab +) + +require ( + github.com/BurntSushi/toml v0.3.1 // indirect + gopkg.in/yaml.v2 v2.3.0 // indirect +) diff --git a/go.sum b/go.sum index 52d2bfd..c3f7179 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,10 @@ +github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ= +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/adrg/frontmatter v0.2.0 h1:/DgnNe82o03riBd1S+ZDjd43wAmC6W35q67NHeLkPd4= +github.com/adrg/frontmatter v0.2.0/go.mod h1:93rQCj3z3ZlwyxxpQioRKC1wDLto4aXHrbqIsnH9wmE= github.com/gomarkdown/markdown v0.0.0-20260217112301-37c66b85d6ab h1:VYNivV7P8IRHUam2swVUNkhIdp0LRRFKe4hXNnoZKTc= github.com/gomarkdown/markdown v0.0.0-20260217112301-37c66b85d6ab/go.mod h1:JDGcbDT52eL4fju3sZ4TeHGsQwhG9nbDV21aMyhwPoA= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU= +gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/home.html b/home.html new file mode 100644 index 0000000..afdbbcb --- /dev/null +++ b/home.html @@ -0,0 +1,140 @@ + + + + + + {{ .SiteTitle }} + + + + + + + + +
+ + + {{ if .Posts }} + + {{ else }} +

No posts yet.

+ {{ end }} +
+ + + + diff --git a/main.go b/main.go index 086655b..ef90476 100644 --- a/main.go +++ b/main.go @@ -247,8 +247,8 @@ func renderHomePage(summaries []PostSummary, outputDir string) { data := HomePage{ SiteTitle: "himanshu.co", AuthorName: "Himanshu Sardana", - AuthorRole: "", - AuthorBio: "", + AuthorRole: "Student", + AuthorBio: "20 y/o linux enthusiast & software engineer", Year: time.Now().Year(), Posts: summaries, } -- cgit v1.3.1