Add theme default config

This commit is contained in:
2024-05-29 22:37:23 +01:00
parent 511d42ab6b
commit 7f9183d85d
10 changed files with 226 additions and 40 deletions

View File

@@ -1,6 +1,31 @@
--- ---
draft: true
tags: []
author: "TrudeEH"
cover:
image: "<image path/url>" # image path/url
alt: "<alt text>" # alt text
caption: "<text>" # display caption under cover
relative: false # when using page bundles set this to true
hidden: true # only hide on current single page
description: ""
title: "{{ replace .Name "-" " " | title }}" title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }} date: {{ .Date }}
draft: true showToc: true
TocOpen: false
hidemeta: false
comments: false
disableHLJS: true # to disable highlights
disableShare: false
disableHLJS: false
hideSummary: false
searchHidden: true
ShowReadingTime: true
ShowBreadCrumbs: true
ShowPostNavLinks: true
ShowWordCount: true
ShowRssButtonInSectionTermList: true
UseHugoToc: true
--- ---

View File

@@ -1,4 +1,139 @@
baseURL: http://example.org/ baseURL: "https://examplesite.com/"
languageCode: en-us title: ExampleSite
title: TrudeWeb paginate: 5
theme: PaperMod theme: PaperMod
enableRobotsTXT: true
buildDrafts: false
buildFuture: false
buildExpired: false
googleAnalytics: UA-123-45
minify:
disableXML: true
minifyOutput: true
params:
env: production # to enable google analytics, opengraph, twitter-cards and schema.
title: ExampleSite
description: "ExampleSite description"
keywords: [Blog, Portfolio, PaperMod]
author: Me
# author: ["Me", "You"] # multiple authors
images: ["<link or path of image for opengraph, twitter-cards>"]
DateFormat: "January 2, 2006"
defaultTheme: auto # dark, light
disableThemeToggle: false
ShowReadingTime: true
ShowShareButtons: true
ShowPostNavLinks: true
ShowBreadCrumbs: true
ShowCodeCopyButtons: false
ShowWordCount: true
ShowRssButtonInSectionTermList: true
UseHugoToc: true
disableSpecial1stPost: false
disableScrollToTop: false
comments: false
hidemeta: false
hideSummary: false
showtoc: false
tocopen: false
assets:
# disableHLJS: true # to disable highlight.js
# disableFingerprinting: true
favicon: "<link / abs url>"
favicon16x16: "<link / abs url>"
favicon32x32: "<link / abs url>"
apple_touch_icon: "<link / abs url>"
safari_pinned_tab: "<link / abs url>"
label:
text: "Home"
icon: /apple-touch-icon.png
iconHeight: 35
# profile-mode
profileMode:
enabled: false # needs to be explicitly set
title: ExampleSite
subtitle: "This is subtitle"
imageUrl: "<img location>"
imageWidth: 120
imageHeight: 120
imageTitle: my image
buttons:
- name: Posts
url: posts
- name: Tags
url: tags
# home-info mode
homeInfoParams:
Title: "Hi there \U0001F44B"
Content: Welcome to my blog
socialIcons:
- name: x
url: "https://x.com/"
- name: stackoverflow
url: "https://stackoverflow.com"
- name: github
url: "https://github.com/"
analytics:
google:
SiteVerificationTag: "XYZabc"
bing:
SiteVerificationTag: "XYZabc"
yandex:
SiteVerificationTag: "XYZabc"
cover:
hidden: true # hide everywhere but not in structured data
hiddenInList: true # hide on list pages and home
hiddenInSingle: true # hide on single page
editPost:
URL: "https://github.com/<path_to_repo>/content"
Text: "Suggest Changes" # edit text
appendFilePath: true # to append file path to Edit link
# for search
# https://fusejs.io/api/options.html
fuseOpts:
isCaseSensitive: false
shouldSort: true
location: 0
distance: 1000
threshold: 0.4
minMatchCharLength: 0
limit: 10 # refer: https://www.fusejs.io/api/methods.html#search
keys: ["title", "permalink", "summary", "content"]
menu:
main:
- identifier: categories
name: categories
url: /categories/
weight: 10
- identifier: tags
name: tags
url: /tags/
weight: 20
- identifier: example
name: example.org
url: https://example.org
weight: 30
# Read: https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs#using-hugos-syntax-highlighter-chroma
pygmentsUseClasses: true
markup:
highlight:
noClasses: false
# anchorLineNos: true
# codeFences: true
# guessSyntax: true
# lineNos: true
# style: monokai

View File

@@ -2,6 +2,8 @@
title: "Test" title: "Test"
date: 2024-05-29T20:39:37+01:00 date: 2024-05-29T20:39:37+01:00
draft: true draft: true
tags: ["test"]
author: "TrudeEH"
--- ---
# Title # Title

View File

@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?> <?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"> <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel> <channel>
<title>Categories on TrudeWeb</title> <title>Categories on ExampleSite</title>
<link>http://localhost:1313/categories/</link> <link>http://localhost:1313/categories/</link>
<description>Recent content in Categories on TrudeWeb</description> <description>Recent content in Categories on ExampleSite</description>
<generator>Hugo -- 0.126.1</generator> <generator>Hugo</generator>
<language>en-us</language> <language>en</language>
<atom:link href="http://localhost:1313/categories/index.xml" rel="self" type="application/rss+xml" /> <atom:link href="http://localhost:1313/categories/index.xml" rel="self" type="application/rss+xml" />
</channel> </channel>
</rss> </rss>

View File

@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?> <?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"> <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel> <channel>
<title>TrudeWeb</title> <title>ExampleSite</title>
<link>http://localhost:1313/</link> <link>http://localhost:1313/</link>
<description>Recent content on TrudeWeb</description> <description>Recent content on ExampleSite</description>
<generator>Hugo -- 0.126.1</generator> <generator>Hugo</generator>
<language>en-us</language> <language>en</language>
<lastBuildDate>Wed, 29 May 2024 20:39:37 +0100</lastBuildDate> <lastBuildDate>Wed, 29 May 2024 20:39:37 +0100</lastBuildDate>
<atom:link href="http://localhost:1313/index.xml" rel="self" type="application/rss+xml" /> <atom:link href="http://localhost:1313/index.xml" rel="self" type="application/rss+xml" />
<item> <item>
@@ -13,12 +13,7 @@
<link>http://localhost:1313/test/test/</link> <link>http://localhost:1313/test/test/</link>
<pubDate>Wed, 29 May 2024 20:39:37 +0100</pubDate> <pubDate>Wed, 29 May 2024 20:39:37 +0100</pubDate>
<guid>http://localhost:1313/test/test/</guid> <guid>http://localhost:1313/test/test/</guid>
<description>Title Subtitle H3 H4 H5 H6 list elements another unordered list Normal text. <description>Title Subtitle H3 H4 H5 H6 list elements another unordered list Normal text.&#xA;generic code&#xA;Important&#xA;Very important&#xA;Important Variant&#xA;echo &amp;#34;Code Block&amp;#34; Link</description>
generic code
Important
Very important
Important Variant
echo &amp;#34;Code Block&amp;#34; Link</description>
</item> </item>
</channel> </channel>
</rss> </rss>

1
public/robots.txt Normal file
View File

@@ -0,0 +1 @@
User-agent: *

View File

@@ -2,17 +2,21 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml"> xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url> <url>
<loc>http://localhost:1313/</loc>
<lastmod>2024-05-29T20:39:37+01:00</lastmod>
</url><url>
<loc>http://localhost:1313/tags/</loc>
<lastmod>2024-05-29T20:39:37+01:00</lastmod>
</url><url>
<loc>http://localhost:1313/tags/test/</loc>
<lastmod>2024-05-29T20:39:37+01:00</lastmod>
</url><url>
<loc>http://localhost:1313/test/test/</loc> <loc>http://localhost:1313/test/test/</loc>
<lastmod>2024-05-29T20:39:37+01:00</lastmod> <lastmod>2024-05-29T20:39:37+01:00</lastmod>
</url><url> </url><url>
<loc>http://localhost:1313/test/</loc> <loc>http://localhost:1313/test/</loc>
<lastmod>2024-05-29T20:39:37+01:00</lastmod> <lastmod>2024-05-29T20:39:37+01:00</lastmod>
</url><url>
<loc>http://localhost:1313/</loc>
<lastmod>2024-05-29T20:39:37+01:00</lastmod>
</url><url> </url><url>
<loc>http://localhost:1313/categories/</loc> <loc>http://localhost:1313/categories/</loc>
</url><url>
<loc>http://localhost:1313/tags/</loc>
</url> </url>
</urlset> </urlset>

View File

@@ -1,11 +1,19 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?> <?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"> <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel> <channel>
<title>Tags on TrudeWeb</title> <title>Tags on ExampleSite</title>
<link>http://localhost:1313/tags/</link> <link>http://localhost:1313/tags/</link>
<description>Recent content in Tags on TrudeWeb</description> <description>Recent content in Tags on ExampleSite</description>
<generator>Hugo -- 0.126.1</generator> <generator>Hugo</generator>
<language>en-us</language> <language>en</language>
<lastBuildDate>Wed, 29 May 2024 20:39:37 +0100</lastBuildDate>
<atom:link href="http://localhost:1313/tags/index.xml" rel="self" type="application/rss+xml" /> <atom:link href="http://localhost:1313/tags/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Test</title>
<link>http://localhost:1313/tags/test/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>http://localhost:1313/tags/test/</guid>
<description></description>
</item>
</channel> </channel>
</rss> </rss>

View 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>Test on ExampleSite</title>
<link>http://localhost:1313/tags/test/</link>
<description>Recent content in Test on ExampleSite</description>
<generator>Hugo</generator>
<language>en</language>
<lastBuildDate>Wed, 29 May 2024 20:39:37 +0100</lastBuildDate>
<atom:link href="http://localhost:1313/tags/test/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Test</title>
<link>http://localhost:1313/test/test/</link>
<pubDate>Wed, 29 May 2024 20:39:37 +0100</pubDate>
<guid>http://localhost:1313/test/test/</guid>
<description>Title Subtitle H3 H4 H5 H6 list elements another unordered list Normal text.&#xA;generic code&#xA;Important&#xA;Very important&#xA;Important Variant&#xA;echo &amp;#34;Code Block&amp;#34; Link</description>
</item>
</channel>
</rss>

View File

@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?> <?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"> <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel> <channel>
<title>Tests on TrudeWeb</title> <title>Tests on ExampleSite</title>
<link>http://localhost:1313/test/</link> <link>http://localhost:1313/test/</link>
<description>Recent content in Tests on TrudeWeb</description> <description>Recent content in Tests on ExampleSite</description>
<generator>Hugo -- 0.126.1</generator> <generator>Hugo</generator>
<language>en-us</language> <language>en</language>
<lastBuildDate>Wed, 29 May 2024 20:39:37 +0100</lastBuildDate> <lastBuildDate>Wed, 29 May 2024 20:39:37 +0100</lastBuildDate>
<atom:link href="http://localhost:1313/test/index.xml" rel="self" type="application/rss+xml" /> <atom:link href="http://localhost:1313/test/index.xml" rel="self" type="application/rss+xml" />
<item> <item>
@@ -13,10 +13,7 @@
<link>http://localhost:1313/test/test/</link> <link>http://localhost:1313/test/test/</link>
<pubDate>Wed, 29 May 2024 20:39:37 +0100</pubDate> <pubDate>Wed, 29 May 2024 20:39:37 +0100</pubDate>
<guid>http://localhost:1313/test/test/</guid> <guid>http://localhost:1313/test/test/</guid>
<description>Title Subtitle H3 H4 H5 H6 list elements another unordered list Normal text. <description>Title Subtitle H3 H4 H5 H6 list elements another unordered list Normal text.&#xA;generic code&#xA;Important&#xA;Very important&#xA;Important Variant&#xA;echo &amp;#34;Code Block&amp;#34; Link</description>
generic code
Important Very important Important Variant
echo &amp;#34;Code Block&amp;#34; Link</description>
</item> </item>
</channel> </channel>
</rss> </rss>