added hugo files
This commit is contained in:
11
archetypes/cpp/index.md
Normal file
11
archetypes/cpp/index.md
Normal file
@@ -0,0 +1,11 @@
|
||||
+++
|
||||
date = '{{ .Date }}'
|
||||
draft = true
|
||||
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
|
||||
layout = 'note'
|
||||
type = 'notes'
|
||||
tags = 'cpp'
|
||||
chapter = ''
|
||||
+++
|
||||
|
||||
# This is a Note
|
||||
5
archetypes/default.md
Normal file
5
archetypes/default.md
Normal file
@@ -0,0 +1,5 @@
|
||||
+++
|
||||
date = '{{ .Date }}'
|
||||
draft = true
|
||||
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
|
||||
+++
|
||||
11
content/cpp/basics/index.md
Normal file
11
content/cpp/basics/index.md
Normal file
@@ -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
|
||||
11
content/cpp/functions/index.md
Normal file
11
content/cpp/functions/index.md
Normal file
@@ -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
|
||||
8
hugo.toml
Normal file
8
hugo.toml
Normal file
@@ -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'
|
||||
12
layouts/_default/baseof.html
Normal file
12
layouts/_default/baseof.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
{{ block "main" . }}
|
||||
{{ end }}
|
||||
</body>
|
||||
|
||||
</html>
|
||||
9
layouts/index.html
Normal file
9
layouts/index.html
Normal file
@@ -0,0 +1,9 @@
|
||||
{{ define "main" }}
|
||||
{{ $chapters := where .Site.RegularPages "Params.tags" "cpp" }}
|
||||
|
||||
{{ range sort $chapters "Params.chapter" "asc" }}
|
||||
<ul>
|
||||
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
||||
</ul>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
4
layouts/notes/note.html
Normal file
4
layouts/notes/note.html
Normal file
@@ -0,0 +1,4 @@
|
||||
{{ define "main" }}
|
||||
{{ .TableOfContents }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
11
public/categories/index.xml
Normal file
11
public/categories/index.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>Categories on My New Hugo Site</title>
|
||||
<link>http://localhost:1313/categories/</link>
|
||||
<description>Recent content in Categories on My New Hugo Site</description>
|
||||
<generator>Hugo</generator>
|
||||
<language>en-us</language>
|
||||
<atom:link href="http://localhost:1313/categories/index.xml" rel="self" type="application/rss+xml" />
|
||||
</channel>
|
||||
</rss>
|
||||
11
public/chapter/01/index.xml
Normal file
11
public/chapter/01/index.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>01 on My New Hugo Site</title>
|
||||
<link>http://localhost:1313/chapter/01/</link>
|
||||
<description>Recent content in 01 on My New Hugo Site</description>
|
||||
<generator>Hugo</generator>
|
||||
<language>en-us</language>
|
||||
<atom:link href="http://localhost:1313/chapter/01/index.xml" rel="self" type="application/rss+xml" />
|
||||
</channel>
|
||||
</rss>
|
||||
19
public/chapter/02/index.xml
Normal file
19
public/chapter/02/index.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>02 on My New Hugo Site</title>
|
||||
<link>http://localhost:1313/chapter/02/</link>
|
||||
<description>Recent content in 02 on My New Hugo Site</description>
|
||||
<generator>Hugo</generator>
|
||||
<language>en-us</language>
|
||||
<lastBuildDate>Fri, 27 Feb 2026 22:23:00 -0600</lastBuildDate>
|
||||
<atom:link href="http://localhost:1313/chapter/02/index.xml" rel="self" type="application/rss+xml" />
|
||||
<item>
|
||||
<title>Functions</title>
|
||||
<link>http://localhost:1313/cpp/functions/</link>
|
||||
<pubDate>Fri, 27 Feb 2026 22:23:00 -0600</pubDate>
|
||||
<guid>http://localhost:1313/cpp/functions/</guid>
|
||||
<description><p>This is all about functions</p></description>
|
||||
</item>
|
||||
</channel>
|
||||
</rss>
|
||||
26
public/chapter/index.xml
Normal file
26
public/chapter/index.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>Chapter on My New Hugo Site</title>
|
||||
<link>http://localhost:1313/chapter/</link>
|
||||
<description>Recent content in Chapter on My New Hugo Site</description>
|
||||
<generator>Hugo</generator>
|
||||
<language>en-us</language>
|
||||
<lastBuildDate>Fri, 27 Feb 2026 22:23:00 -0600</lastBuildDate>
|
||||
<atom:link href="http://localhost:1313/chapter/index.xml" rel="self" type="application/rss+xml" />
|
||||
<item>
|
||||
<title>02</title>
|
||||
<link>http://localhost:1313/chapter/02/</link>
|
||||
<pubDate>Fri, 27 Feb 2026 22:23:00 -0600</pubDate>
|
||||
<guid>http://localhost:1313/chapter/02/</guid>
|
||||
<description></description>
|
||||
</item>
|
||||
<item>
|
||||
<title>01</title>
|
||||
<link>http://localhost:1313/chapter/01/</link>
|
||||
<pubDate>Fri, 27 Feb 2026 22:22:10 -0600</pubDate>
|
||||
<guid>http://localhost:1313/chapter/01/</guid>
|
||||
<description></description>
|
||||
</item>
|
||||
</channel>
|
||||
</rss>
|
||||
15
public/cpp/basics/index.html
Normal file
15
public/cpp/basics/index.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script>
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<nav id="TableOfContents"></nav>
|
||||
<p>This is the basics</p>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
15
public/cpp/functions/index.html
Normal file
15
public/cpp/functions/index.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script>
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<nav id="TableOfContents"></nav>
|
||||
<p>This is all about functions</p>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
26
public/cpp/index.xml
Normal file
26
public/cpp/index.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>Cpps on My New Hugo Site</title>
|
||||
<link>http://localhost:1313/cpp/</link>
|
||||
<description>Recent content in Cpps on My New Hugo Site</description>
|
||||
<generator>Hugo</generator>
|
||||
<language>en-us</language>
|
||||
<lastBuildDate>Fri, 27 Feb 2026 22:23:00 -0600</lastBuildDate>
|
||||
<atom:link href="http://localhost:1313/cpp/index.xml" rel="self" type="application/rss+xml" />
|
||||
<item>
|
||||
<title>Functions</title>
|
||||
<link>http://localhost:1313/cpp/functions/</link>
|
||||
<pubDate>Fri, 27 Feb 2026 22:23:00 -0600</pubDate>
|
||||
<guid>http://localhost:1313/cpp/functions/</guid>
|
||||
<description><p>This is all about functions</p></description>
|
||||
</item>
|
||||
<item>
|
||||
<title>Basics</title>
|
||||
<link>http://localhost:1313/cpp/basics/</link>
|
||||
<pubDate>Fri, 27 Feb 2026 22:22:10 -0600</pubDate>
|
||||
<guid>http://localhost:1313/cpp/basics/</guid>
|
||||
<description><p>This is the basics</p></description>
|
||||
</item>
|
||||
</channel>
|
||||
</rss>
|
||||
15
public/cpp/test/index.html
Normal file
15
public/cpp/test/index.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script>
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<nav id="TableOfContents"></nav>
|
||||
<h1 id="this-is-a-note">This is a Note</h1>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
24
public/index.html
Normal file
24
public/index.html
Normal file
@@ -0,0 +1,24 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta name="generator" content="Hugo 0.152.2"><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script>
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul>
|
||||
<li><a href="http://localhost:1313/cpp/basics/">Basics</a></li>
|
||||
</ul>
|
||||
|
||||
<ul>
|
||||
<li><a href="http://localhost:1313/cpp/functions/">Functions</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
26
public/index.xml
Normal file
26
public/index.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>My New Hugo Site</title>
|
||||
<link>http://localhost:1313/</link>
|
||||
<description>Recent content on My New Hugo Site</description>
|
||||
<generator>Hugo</generator>
|
||||
<language>en-us</language>
|
||||
<lastBuildDate>Fri, 27 Feb 2026 22:23:00 -0600</lastBuildDate>
|
||||
<atom:link href="http://localhost:1313/index.xml" rel="self" type="application/rss+xml" />
|
||||
<item>
|
||||
<title>Functions</title>
|
||||
<link>http://localhost:1313/cpp/functions/</link>
|
||||
<pubDate>Fri, 27 Feb 2026 22:23:00 -0600</pubDate>
|
||||
<guid>http://localhost:1313/cpp/functions/</guid>
|
||||
<description><p>This is all about functions</p></description>
|
||||
</item>
|
||||
<item>
|
||||
<title>Basics</title>
|
||||
<link>http://localhost:1313/cpp/basics/</link>
|
||||
<pubDate>Fri, 27 Feb 2026 22:22:10 -0600</pubDate>
|
||||
<guid>http://localhost:1313/cpp/basics/</guid>
|
||||
<description><p>This is the basics</p></description>
|
||||
</item>
|
||||
</channel>
|
||||
</rss>
|
||||
15
public/notes/cpp/basics/index.html
Normal file
15
public/notes/cpp/basics/index.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script>
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<nav id="TableOfContents"></nav>
|
||||
<h1 id="this-is-a-note">This is a Note</h1>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
24
public/notes/first/index.html
Normal file
24
public/notes/first/index.html
Normal file
@@ -0,0 +1,24 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script>
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<nav id="TableOfContents">
|
||||
<ul>
|
||||
<li><a href="#a">a</a></li>
|
||||
<li><a href="#b">b</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<h2 id="a">a</h2>
|
||||
<p>abc</p>
|
||||
<h2 id="b">b</h2>
|
||||
<p>abcde</p>
|
||||
<p>Hello world</p>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
11
public/notes/index.xml
Normal file
11
public/notes/index.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>Notes on My New Hugo Site</title>
|
||||
<link>http://localhost:1313/notes/</link>
|
||||
<description>Recent content in Notes on My New Hugo Site</description>
|
||||
<generator>Hugo</generator>
|
||||
<language>en-us</language>
|
||||
<atom:link href="http://localhost:1313/notes/index.xml" rel="self" type="application/rss+xml" />
|
||||
</channel>
|
||||
</rss>
|
||||
32
public/sitemap.xml
Normal file
32
public/sitemap.xml
Normal file
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
||||
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
||||
<url>
|
||||
<loc>http://localhost:1313/chapter/02/</loc>
|
||||
<lastmod>2026-02-27T22:23:00-06:00</lastmod>
|
||||
</url><url>
|
||||
<loc>http://localhost:1313/chapter/</loc>
|
||||
<lastmod>2026-02-27T22:23:00-06:00</lastmod>
|
||||
</url><url>
|
||||
<loc>http://localhost:1313/tags/cpp/</loc>
|
||||
<lastmod>2026-02-27T22:23:00-06:00</lastmod>
|
||||
</url><url>
|
||||
<loc>http://localhost:1313/cpp/</loc>
|
||||
<lastmod>2026-02-27T22:23:00-06:00</lastmod>
|
||||
</url><url>
|
||||
<loc>http://localhost:1313/cpp/functions/</loc>
|
||||
<lastmod>2026-02-27T22:23:00-06:00</lastmod>
|
||||
</url><url>
|
||||
<loc>http://localhost:1313/</loc>
|
||||
<lastmod>2026-02-27T22:23:00-06:00</lastmod>
|
||||
</url><url>
|
||||
<loc>http://localhost:1313/tags/</loc>
|
||||
<lastmod>2026-02-27T22:23:00-06:00</lastmod>
|
||||
</url><url>
|
||||
<loc>http://localhost:1313/chapter/01/</loc>
|
||||
<lastmod>2026-02-27T22:22:10-06:00</lastmod>
|
||||
</url><url>
|
||||
<loc>http://localhost:1313/cpp/basics/</loc>
|
||||
<lastmod>2026-02-27T22:22:10-06:00</lastmod>
|
||||
</url>
|
||||
</urlset>
|
||||
11
public/tags/cpp/index.xml
Normal file
11
public/tags/cpp/index.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>Cpp on My New Hugo Site</title>
|
||||
<link>http://localhost:1313/tags/cpp/</link>
|
||||
<description>Recent content in Cpp on My New Hugo Site</description>
|
||||
<generator>Hugo</generator>
|
||||
<language>en-us</language>
|
||||
<atom:link href="http://localhost:1313/tags/cpp/index.xml" rel="self" type="application/rss+xml" />
|
||||
</channel>
|
||||
</rss>
|
||||
18
public/tags/index.xml
Normal file
18
public/tags/index.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>Tags on My New Hugo Site</title>
|
||||
<link>http://localhost:1313/tags/</link>
|
||||
<description>Recent content in Tags on My New Hugo Site</description>
|
||||
<generator>Hugo</generator>
|
||||
<language>en-us</language>
|
||||
<atom:link href="http://localhost:1313/tags/index.xml" rel="self" type="application/rss+xml" />
|
||||
<item>
|
||||
<title>Cpp</title>
|
||||
<link>http://localhost:1313/tags/cpp/</link>
|
||||
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
|
||||
<guid>http://localhost:1313/tags/cpp/</guid>
|
||||
<description></description>
|
||||
</item>
|
||||
</channel>
|
||||
</rss>
|
||||
Reference in New Issue
Block a user