This commit is contained in:
parent
d404655fec
commit
7a855526d5
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: "Hello, world"
|
title: "Blog"
|
||||||
description: "This is a website"
|
menu: "main"
|
||||||
date: 2025-03-08
|
weight: 2
|
||||||
|
layout: "list"
|
||||||
|
outputs: ["HTML", "RSS"]
|
||||||
---
|
---
|
||||||
|
|
||||||
Hello World maybe
|
|
||||||
6
content/posts/_index.md
Normal file
6
content/posts/_index.md
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
title: "Blog"
|
||||||
|
menu: "main"
|
||||||
|
weight: 2
|
||||||
|
layout: "list"
|
||||||
|
---
|
||||||
@ -1,7 +1,9 @@
|
|||||||
---
|
---
|
||||||
title: "First post"
|
title: "My First Post"
|
||||||
date: 2025-03-08
|
date: 2025-03-09
|
||||||
|
tags: ["hugo", "test"]
|
||||||
draft: false
|
draft: false
|
||||||
|
layout: "single"
|
||||||
|
type: "post"
|
||||||
|
outputs: ["HTML"]
|
||||||
---
|
---
|
||||||
|
|
||||||
This is the first post!!!
|
|
||||||
20
hugo.toml
20
hugo.toml
@ -5,6 +5,26 @@ theme = "hugo-bearcub"
|
|||||||
|
|
||||||
enableRobotsTXT = true
|
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
|
# Setup syntax highlighting without inline styles. For more information about
|
||||||
# why you'd want to avoid inline styles, see
|
# 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
|
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/style-src#unsafe_inline_styles
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<section class="hero">
|
<section class="hero">
|
||||||
<h1>{{ .Title }}</h1>
|
<h1>{{ .Title }}</h1>
|
||||||
|
hello
|
||||||
<p>{{ .Content }}</p>
|
<p>{{ .Content }}</p>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user