From 7f9183d85d377e2de563cea64c50db3bf9f6118c Mon Sep 17 00:00:00 2001 From: TrudeEH Date: Wed, 29 May 2024 22:37:23 +0100 Subject: [PATCH] Add theme default config --- archetypes/default.md | 27 ++++++- config.yaml | 143 +++++++++++++++++++++++++++++++++++- content/test/test.md | 2 + public/categories/index.xml | 10 +-- public/index.xml | 17 ++--- public/robots.txt | 1 + public/sitemap.xml | 14 ++-- public/tags/index.xml | 18 +++-- public/tags/test/index.xml | 19 +++++ public/test/index.xml | 15 ++-- 10 files changed, 226 insertions(+), 40 deletions(-) create mode 100644 public/robots.txt create mode 100644 public/tags/test/index.xml diff --git a/archetypes/default.md b/archetypes/default.md index 00e77bd..e3a228f 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,6 +1,31 @@ --- +draft: true +tags: [] +author: "TrudeEH" +cover: + image: "" # image path/url + alt: "" # alt text + caption: "" # 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 }}" 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 --- diff --git a/config.yaml b/config.yaml index 7f238e2..c9b6b78 100644 --- a/config.yaml +++ b/config.yaml @@ -1,4 +1,139 @@ -baseURL: http://example.org/ -languageCode: en-us -title: TrudeWeb -theme: PaperMod \ No newline at end of file +baseURL: "https://examplesite.com/" +title: ExampleSite +paginate: 5 +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: [""] + 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: "" + favicon16x16: "" + favicon32x32: "" + apple_touch_icon: "" + safari_pinned_tab: "" + + 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: "" + 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//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 diff --git a/content/test/test.md b/content/test/test.md index 2a5dad6..5b8a07d 100644 --- a/content/test/test.md +++ b/content/test/test.md @@ -2,6 +2,8 @@ title: "Test" date: 2024-05-29T20:39:37+01:00 draft: true +tags: ["test"] +author: "TrudeEH" --- # Title diff --git a/public/categories/index.xml b/public/categories/index.xml index 12e492b..3803781 100644 --- a/public/categories/index.xml +++ b/public/categories/index.xml @@ -1,11 +1,11 @@ - + - Categories on TrudeWeb + Categories on ExampleSite http://localhost:1313/categories/ - Recent content in Categories on TrudeWeb - Hugo -- 0.126.1 - en-us + Recent content in Categories on ExampleSite + Hugo + en diff --git a/public/index.xml b/public/index.xml index d31e572..bf54417 100644 --- a/public/index.xml +++ b/public/index.xml @@ -1,11 +1,11 @@ - + - TrudeWeb + ExampleSite http://localhost:1313/ - Recent content on TrudeWeb - Hugo -- 0.126.1 - en-us + Recent content on ExampleSite + Hugo + en Wed, 29 May 2024 20:39:37 +0100 @@ -13,12 +13,7 @@ http://localhost:1313/test/test/ Wed, 29 May 2024 20:39:37 +0100 http://localhost:1313/test/test/ - Title Subtitle H3 H4 H5 H6 list elements another unordered list Normal text. -generic code -Important -Very important -Important Variant -echo "Code Block" Link + Title Subtitle H3 H4 H5 H6 list elements another unordered list Normal text. generic code Important Very important Important Variant echo "Code Block" Link diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..4f9540b --- /dev/null +++ b/public/robots.txt @@ -0,0 +1 @@ +User-agent: * \ No newline at end of file diff --git a/public/sitemap.xml b/public/sitemap.xml index add1263..ba5e53b 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -2,17 +2,21 @@ + http://localhost:1313/ + 2024-05-29T20:39:37+01:00 + + http://localhost:1313/tags/ + 2024-05-29T20:39:37+01:00 + + http://localhost:1313/tags/test/ + 2024-05-29T20:39:37+01:00 + http://localhost:1313/test/test/ 2024-05-29T20:39:37+01:00 http://localhost:1313/test/ 2024-05-29T20:39:37+01:00 - - http://localhost:1313/ - 2024-05-29T20:39:37+01:00 http://localhost:1313/categories/ - - http://localhost:1313/tags/ diff --git a/public/tags/index.xml b/public/tags/index.xml index 4330ac6..b270eb5 100644 --- a/public/tags/index.xml +++ b/public/tags/index.xml @@ -1,11 +1,19 @@ - + - Tags on TrudeWeb + Tags on ExampleSite http://localhost:1313/tags/ - Recent content in Tags on TrudeWeb - Hugo -- 0.126.1 - en-us + Recent content in Tags on ExampleSite + Hugo + en + Wed, 29 May 2024 20:39:37 +0100 + + Test + http://localhost:1313/tags/test/ + Mon, 01 Jan 0001 00:00:00 +0000 + http://localhost:1313/tags/test/ + + diff --git a/public/tags/test/index.xml b/public/tags/test/index.xml new file mode 100644 index 0000000..daba08a --- /dev/null +++ b/public/tags/test/index.xml @@ -0,0 +1,19 @@ + + + + Test on ExampleSite + http://localhost:1313/tags/test/ + Recent content in Test on ExampleSite + Hugo + en + Wed, 29 May 2024 20:39:37 +0100 + + + Test + http://localhost:1313/test/test/ + Wed, 29 May 2024 20:39:37 +0100 + http://localhost:1313/test/test/ + Title Subtitle H3 H4 H5 H6 list elements another unordered list Normal text. generic code Important Very important Important Variant echo "Code Block" Link + + + diff --git a/public/test/index.xml b/public/test/index.xml index 7dc1be9..22f5e73 100644 --- a/public/test/index.xml +++ b/public/test/index.xml @@ -1,11 +1,11 @@ - + - Tests on TrudeWeb + Tests on ExampleSite http://localhost:1313/test/ - Recent content in Tests on TrudeWeb - Hugo -- 0.126.1 - en-us + Recent content in Tests on ExampleSite + Hugo + en Wed, 29 May 2024 20:39:37 +0100 @@ -13,10 +13,7 @@ http://localhost:1313/test/test/ Wed, 29 May 2024 20:39:37 +0100 http://localhost:1313/test/test/ - Title Subtitle H3 H4 H5 H6 list elements another unordered list Normal text. -generic code -Important Very important Important Variant -echo "Code Block" Link + Title Subtitle H3 H4 H5 H6 list elements another unordered list Normal text. generic code Important Very important Important Variant echo "Code Block" Link