From 18e8886c41548d7f9b5151f60eb15bb886aee8ab Mon Sep 17 00:00:00 2001 From: Lucas Rufkahr Date: Fri, 27 Feb 2026 22:36:11 -0600 Subject: [PATCH] added hugo files --- archetypes/cpp/index.md | 11 ++++++++++ archetypes/default.md | 5 +++++ content/cpp/basics/index.md | 11 ++++++++++ content/cpp/functions/index.md | 11 ++++++++++ hugo.toml | 8 ++++++++ layouts/_default/baseof.html | 12 +++++++++++ layouts/index.html | 9 +++++++++ layouts/notes/note.html | 4 ++++ public/categories/index.xml | 11 ++++++++++ public/chapter/01/index.xml | 11 ++++++++++ public/chapter/02/index.xml | 19 ++++++++++++++++++ public/chapter/index.xml | 26 ++++++++++++++++++++++++ public/cpp/basics/index.html | 15 ++++++++++++++ public/cpp/functions/index.html | 15 ++++++++++++++ public/cpp/index.xml | 26 ++++++++++++++++++++++++ public/cpp/test/index.html | 15 ++++++++++++++ public/index.html | 24 ++++++++++++++++++++++ public/index.xml | 26 ++++++++++++++++++++++++ public/notes/cpp/basics/index.html | 15 ++++++++++++++ public/notes/first/index.html | 24 ++++++++++++++++++++++ public/notes/index.xml | 11 ++++++++++ public/sitemap.xml | 32 ++++++++++++++++++++++++++++++ public/tags/cpp/index.xml | 11 ++++++++++ public/tags/index.xml | 18 +++++++++++++++++ 24 files changed, 370 insertions(+) create mode 100644 archetypes/cpp/index.md create mode 100644 archetypes/default.md create mode 100644 content/cpp/basics/index.md create mode 100644 content/cpp/functions/index.md create mode 100644 hugo.toml create mode 100644 layouts/_default/baseof.html create mode 100644 layouts/index.html create mode 100644 layouts/notes/note.html create mode 100644 public/categories/index.xml create mode 100644 public/chapter/01/index.xml create mode 100644 public/chapter/02/index.xml create mode 100644 public/chapter/index.xml create mode 100644 public/cpp/basics/index.html create mode 100644 public/cpp/functions/index.html create mode 100644 public/cpp/index.xml create mode 100644 public/cpp/test/index.html create mode 100644 public/index.html create mode 100644 public/index.xml create mode 100644 public/notes/cpp/basics/index.html create mode 100644 public/notes/first/index.html create mode 100644 public/notes/index.xml create mode 100644 public/sitemap.xml create mode 100644 public/tags/cpp/index.xml create mode 100644 public/tags/index.xml diff --git a/archetypes/cpp/index.md b/archetypes/cpp/index.md new file mode 100644 index 0000000..02be2ba --- /dev/null +++ b/archetypes/cpp/index.md @@ -0,0 +1,11 @@ ++++ +date = '{{ .Date }}' +draft = true +title = '{{ replace .File.ContentBaseName "-" " " | title }}' +layout = 'note' +type = 'notes' +tags = 'cpp' +chapter = '' ++++ + +# This is a Note diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..25b6752 --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,5 @@ ++++ +date = '{{ .Date }}' +draft = true +title = '{{ replace .File.ContentBaseName "-" " " | title }}' ++++ diff --git a/content/cpp/basics/index.md b/content/cpp/basics/index.md new file mode 100644 index 0000000..f3af0bb --- /dev/null +++ b/content/cpp/basics/index.md @@ -0,0 +1,11 @@ ++++ +date = '2026-02-27T22:22:10-06:00' +draft = true +title = 'Basics' +layout = 'note' +type = 'notes' +tags = 'cpp' +chapter = '01' ++++ + +This is the basics diff --git a/content/cpp/functions/index.md b/content/cpp/functions/index.md new file mode 100644 index 0000000..8d763aa --- /dev/null +++ b/content/cpp/functions/index.md @@ -0,0 +1,11 @@ ++++ +date = '2026-02-27T22:23:00-06:00' +draft = true +title = 'Functions' +layout = 'note' +type = 'notes' +tags = 'cpp' +chapter = '02' ++++ + +This is all about functions diff --git a/hugo.toml b/hugo.toml new file mode 100644 index 0000000..1c3cb12 --- /dev/null +++ b/hugo.toml @@ -0,0 +1,8 @@ +baseURL = 'https://example.org/' +languageCode = 'en-us' +title = 'My New Hugo Site' +[contentTypes] + [contentTypes.'text/markdown'] +[taxonomies] + tag = 'tags' + chapter = 'chapter' diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..7fb7650 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,12 @@ + + + + + + + + {{ block "main" . }} + {{ end }} + + + diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..3bb1d8a --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,9 @@ +{{ define "main" }} +{{ $chapters := where .Site.RegularPages "Params.tags" "cpp" }} + +{{ range sort $chapters "Params.chapter" "asc" }} + +{{ end }} +{{ end }} diff --git a/layouts/notes/note.html b/layouts/notes/note.html new file mode 100644 index 0000000..3cf95f1 --- /dev/null +++ b/layouts/notes/note.html @@ -0,0 +1,4 @@ +{{ define "main" }} +{{ .TableOfContents }} +{{ .Content }} +{{ end }} diff --git a/public/categories/index.xml b/public/categories/index.xml new file mode 100644 index 0000000..216aed4 --- /dev/null +++ b/public/categories/index.xml @@ -0,0 +1,11 @@ + + + + Categories on My New Hugo Site + http://localhost:1313/categories/ + Recent content in Categories on My New Hugo Site + Hugo + en-us + + + diff --git a/public/chapter/01/index.xml b/public/chapter/01/index.xml new file mode 100644 index 0000000..b704085 --- /dev/null +++ b/public/chapter/01/index.xml @@ -0,0 +1,11 @@ + + + + 01 on My New Hugo Site + http://localhost:1313/chapter/01/ + Recent content in 01 on My New Hugo Site + Hugo + en-us + + + diff --git a/public/chapter/02/index.xml b/public/chapter/02/index.xml new file mode 100644 index 0000000..cc85b44 --- /dev/null +++ b/public/chapter/02/index.xml @@ -0,0 +1,19 @@ + + + + 02 on My New Hugo Site + http://localhost:1313/chapter/02/ + Recent content in 02 on My New Hugo Site + Hugo + en-us + Fri, 27 Feb 2026 22:23:00 -0600 + + + Functions + http://localhost:1313/cpp/functions/ + Fri, 27 Feb 2026 22:23:00 -0600 + http://localhost:1313/cpp/functions/ + <p>This is all about functions</p> + + + diff --git a/public/chapter/index.xml b/public/chapter/index.xml new file mode 100644 index 0000000..39e1676 --- /dev/null +++ b/public/chapter/index.xml @@ -0,0 +1,26 @@ + + + + Chapter on My New Hugo Site + http://localhost:1313/chapter/ + Recent content in Chapter on My New Hugo Site + Hugo + en-us + Fri, 27 Feb 2026 22:23:00 -0600 + + + 02 + http://localhost:1313/chapter/02/ + Fri, 27 Feb 2026 22:23:00 -0600 + http://localhost:1313/chapter/02/ + + + + 01 + http://localhost:1313/chapter/01/ + Fri, 27 Feb 2026 22:22:10 -0600 + http://localhost:1313/chapter/01/ + + + + diff --git a/public/cpp/basics/index.html b/public/cpp/basics/index.html new file mode 100644 index 0000000..9d3c62b --- /dev/null +++ b/public/cpp/basics/index.html @@ -0,0 +1,15 @@ + + + + + + + + + +

This is the basics

+ + + + + diff --git a/public/cpp/functions/index.html b/public/cpp/functions/index.html new file mode 100644 index 0000000..b03c187 --- /dev/null +++ b/public/cpp/functions/index.html @@ -0,0 +1,15 @@ + + + + + + + + + +

This is all about functions

+ + + + + diff --git a/public/cpp/index.xml b/public/cpp/index.xml new file mode 100644 index 0000000..4e3e626 --- /dev/null +++ b/public/cpp/index.xml @@ -0,0 +1,26 @@ + + + + Cpps on My New Hugo Site + http://localhost:1313/cpp/ + Recent content in Cpps on My New Hugo Site + Hugo + en-us + Fri, 27 Feb 2026 22:23:00 -0600 + + + Functions + http://localhost:1313/cpp/functions/ + Fri, 27 Feb 2026 22:23:00 -0600 + http://localhost:1313/cpp/functions/ + <p>This is all about functions</p> + + + Basics + http://localhost:1313/cpp/basics/ + Fri, 27 Feb 2026 22:22:10 -0600 + http://localhost:1313/cpp/basics/ + <p>This is the basics</p> + + + diff --git a/public/cpp/test/index.html b/public/cpp/test/index.html new file mode 100644 index 0000000..4eb292c --- /dev/null +++ b/public/cpp/test/index.html @@ -0,0 +1,15 @@ + + + + + + + + + +

This is a Note

+ + + + + diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..14864e7 --- /dev/null +++ b/public/index.html @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/public/index.xml b/public/index.xml new file mode 100644 index 0000000..c744ab0 --- /dev/null +++ b/public/index.xml @@ -0,0 +1,26 @@ + + + + My New Hugo Site + http://localhost:1313/ + Recent content on My New Hugo Site + Hugo + en-us + Fri, 27 Feb 2026 22:23:00 -0600 + + + Functions + http://localhost:1313/cpp/functions/ + Fri, 27 Feb 2026 22:23:00 -0600 + http://localhost:1313/cpp/functions/ + <p>This is all about functions</p> + + + Basics + http://localhost:1313/cpp/basics/ + Fri, 27 Feb 2026 22:22:10 -0600 + http://localhost:1313/cpp/basics/ + <p>This is the basics</p> + + + diff --git a/public/notes/cpp/basics/index.html b/public/notes/cpp/basics/index.html new file mode 100644 index 0000000..4eb292c --- /dev/null +++ b/public/notes/cpp/basics/index.html @@ -0,0 +1,15 @@ + + + + + + + + + +

This is a Note

+ + + + + diff --git a/public/notes/first/index.html b/public/notes/first/index.html new file mode 100644 index 0000000..22d5899 --- /dev/null +++ b/public/notes/first/index.html @@ -0,0 +1,24 @@ + + + + + + + + + +

a

+

abc

+

b

+

abcde

+

Hello world

+ + + + + diff --git a/public/notes/index.xml b/public/notes/index.xml new file mode 100644 index 0000000..2d31e58 --- /dev/null +++ b/public/notes/index.xml @@ -0,0 +1,11 @@ + + + + Notes on My New Hugo Site + http://localhost:1313/notes/ + Recent content in Notes on My New Hugo Site + Hugo + en-us + + + diff --git a/public/sitemap.xml b/public/sitemap.xml new file mode 100644 index 0000000..9083c8a --- /dev/null +++ b/public/sitemap.xml @@ -0,0 +1,32 @@ + + + + http://localhost:1313/chapter/02/ + 2026-02-27T22:23:00-06:00 + + http://localhost:1313/chapter/ + 2026-02-27T22:23:00-06:00 + + http://localhost:1313/tags/cpp/ + 2026-02-27T22:23:00-06:00 + + http://localhost:1313/cpp/ + 2026-02-27T22:23:00-06:00 + + http://localhost:1313/cpp/functions/ + 2026-02-27T22:23:00-06:00 + + http://localhost:1313/ + 2026-02-27T22:23:00-06:00 + + http://localhost:1313/tags/ + 2026-02-27T22:23:00-06:00 + + http://localhost:1313/chapter/01/ + 2026-02-27T22:22:10-06:00 + + http://localhost:1313/cpp/basics/ + 2026-02-27T22:22:10-06:00 + + diff --git a/public/tags/cpp/index.xml b/public/tags/cpp/index.xml new file mode 100644 index 0000000..ea8adab --- /dev/null +++ b/public/tags/cpp/index.xml @@ -0,0 +1,11 @@ + + + + Cpp on My New Hugo Site + http://localhost:1313/tags/cpp/ + Recent content in Cpp on My New Hugo Site + Hugo + en-us + + + diff --git a/public/tags/index.xml b/public/tags/index.xml new file mode 100644 index 0000000..1cd951f --- /dev/null +++ b/public/tags/index.xml @@ -0,0 +1,18 @@ + + + + Tags on My New Hugo Site + http://localhost:1313/tags/ + Recent content in Tags on My New Hugo Site + Hugo + en-us + + + Cpp + http://localhost:1313/tags/cpp/ + Mon, 01 Jan 0001 00:00:00 +0000 + http://localhost:1313/tags/cpp/ + + + +