[READ-ONLY] Mirror of https://github.com/glacials/winter. a thoughtful static website generator for long-lasting content twos.dev/winter
winter cmd defaults src cold index.md
1.1 kB · 42 lines
Markdown
at main


type: page #

New Winter Website #

If you're seeing this as a web page in your browser, your Winter setup works!

This file is located at src/cold/index.md. Edit it to your liking and it will be your homepage.

To create a new page, make a new Markdown or HTML file in src/cold and give it some content. If that page has type post, it will be displayed below.

{{ range posts }}

  • {{ with .Category }}{{ . }}: {{ end }}{{ .Title }} {{ if not .PublishedAt.IsZero }}({{ .PublishedAt.Format "2006 January" }}){{ end }}

{{ else }}

No posts detected.

{{ end }}

To give a document a type, prepend it with a frontmatter section, written in YAML and surrounded by ---, like so:

---
type: post
---

# My First Post

Any document with no type specified is automatically of type draft.