diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3b186e6..732d959 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: go-version: "1.25" - name: Install hype - run: go install github.com/gopherguides/hype/cmd/hype@latest + run: go install github.com/gopherguides/hype/cmd/hype@main - name: Build site run: hype blog build diff --git a/config.yaml b/config.yaml index 7981270..57150b0 100644 --- a/config.yaml +++ b/config.yaml @@ -14,3 +14,5 @@ seo: twitterCard: "summary_large_image" contentDir: "content" outputDir: "public" +listPages: + - blog diff --git a/content/blog-index/module.md b/content/blog-index/module.md deleted file mode 100644 index 5351485..0000000 --- a/content/blog-index/module.md +++ /dev/null @@ -1,21 +0,0 @@ -# Blog - -
-slug: blog -published: 03/15/2026 -author: Gopher Guides -seo_description: Articles, tutorials, and guides about Hype — the dynamic Markdown engine for technical writers. -tags: blog -
- -Tutorials, guides, and updates from the Hype project. - -## Tutorials - -- [Single-Source Documentation](/single-source-docs/) — Use one Markdown file to generate your README and website docs -- [Deploying a Hype Blog with Docker](/deploying-with-docker/) — Deploy with Dokploy, Heroku, or Docker Compose -- [Getting Started with Hype](/getting-started/) — Install Hype and create your first dynamic document - -## Documentation - -Looking for reference docs? See the [documentation section](/docs/). diff --git a/layouts/_default/list.html b/layouts/_default/list.html index cb59dd3..d8bddbf 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,4 +1,5 @@ {{define "main"}} + {{if eq .PagePath "/"}}
@@ -65,29 +66,80 @@

Build-Time Validation

- {{range $i, $a := .Articles}}{{if lt $i 3}} + {{range first 3 .Articles}} - {{end}}{{end}} + {{end}}
{{end}} + + {{else}} + +
+

Blog

+

Tutorials, guides, and updates from the Hype project.

+ + {{if .Articles}} +
+ $ + ls -la articles/ +
+
+ total {{len .Articles}} +
+
+ {{range .Articles}} +
+
+
+ {{.FormattedDate}} +
+
+

+ + {{.Title}} + +

+ {{if .SEODescription}} +

{{.SEODescription}}

+ {{end}} +
+ {{if .Author}}@{{.Author}}{{end}} + {{if .ReadingTime}}~{{.ReadingTime}}m{{end}} + {{if .Tags}} +
+ {{range .Tags}}#{{.}}{{end}} +
+ {{end}} +
+
+ + → + +
+
+ {{end}} +
+ {{end}} +
+ {{end}} {{end}}