From 7a855526d5c90d8d8cb780b378222a0f3ad9e407 Mon Sep 17 00:00:00 2001 From: John Date: Sun, 9 Mar 2025 19:04:11 -0500 Subject: [PATCH] who knows --- content/_index.md | 10 +++++----- content/posts/_index.md | 6 ++++++ content/posts/first-post.md | 10 ++++++---- hugo.toml | 20 ++++++++++++++++++++ layouts/index.html | 1 + 5 files changed, 38 insertions(+), 9 deletions(-) create mode 100644 content/posts/_index.md diff --git a/content/_index.md b/content/_index.md index 5f099c4..ca92027 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,7 +1,7 @@ --- -title: "Hello, world" -description: "This is a website" -date: 2025-03-08 +title: "Blog" +menu: "main" +weight: 2 +layout: "list" +outputs: ["HTML", "RSS"] --- - -Hello World maybe \ No newline at end of file diff --git a/content/posts/_index.md b/content/posts/_index.md new file mode 100644 index 0000000..b0eb5cb --- /dev/null +++ b/content/posts/_index.md @@ -0,0 +1,6 @@ +--- +title: "Blog" +menu: "main" +weight: 2 +layout: "list" +--- diff --git a/content/posts/first-post.md b/content/posts/first-post.md index c133a8f..a4dfecd 100644 --- a/content/posts/first-post.md +++ b/content/posts/first-post.md @@ -1,7 +1,9 @@ --- -title: "First post" -date: 2025-03-08 +title: "My First Post" +date: 2025-03-09 +tags: ["hugo", "test"] draft: false +layout: "single" +type: "post" +outputs: ["HTML"] --- - -This is the first post!!! \ No newline at end of file diff --git a/hugo.toml b/hugo.toml index 482998e..e01c220 100644 --- a/hugo.toml +++ b/hugo.toml @@ -5,6 +5,26 @@ theme = "hugo-bearcub" enableRobotsTXT = true +[menu] + [[menu.main]] + name = "Home" + url = "/" + weight = 1 + [[menu.main]] + name = "Posts" + url = "/posts/" + weight = 2 + +[taxonomies] + tag = "tags" + +[outputs] + home = ["HTML", "RSS"] + section = ["HTML", "RSS"] + taxonomy = ["HTML", "RSS"] + term = ["HTML", "RSS"] + page = ["HTML"] + # Setup syntax highlighting without inline styles. For more information about # why you'd want to avoid inline styles, see # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/style-src#unsafe_inline_styles diff --git a/layouts/index.html b/layouts/index.html index 8d97769..07accff 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,6 +1,7 @@ {{ define "main" }}

{{ .Title }}

+ hello

{{ .Content }}