Basic website structure and settings

This commit is contained in:
2024-05-30 01:13:34 +01:00
parent 7f9183d85d
commit 407e317d8e
37 changed files with 332 additions and 1372 deletions

View File

@@ -1,14 +1,23 @@
baseURL: "https://examplesite.com/"
title: ExampleSite
title: TrudeWeb
paginate: 5
theme: PaperMod
copyright: "Open-source - MIT License"
# Search
outputs:
home:
- HTML
- RSS
- JSON # necessary for search
enableRobotsTXT: true
buildDrafts: false
buildFuture: false
buildExpired: false
googleAnalytics: UA-123-45
# googleAnalytics: UA-123-45
minify:
disableXML: true
@@ -16,12 +25,11 @@ minify:
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>"]
title: TrudeWeb
description: "TrudeEH's Blog and Personal Website"
keywords: [Blog, Portfolio, Trude, TrudeEH]
author: "TrudeEH"
images: ["/logo.svg"]
DateFormat: "January 2, 2006"
defaultTheme: auto # dark, light
disableThemeToggle: false
@@ -30,7 +38,7 @@ params:
ShowShareButtons: true
ShowPostNavLinks: true
ShowBreadCrumbs: true
ShowCodeCopyButtons: false
ShowCodeCopyButtons: true
ShowWordCount: true
ShowRssButtonInSectionTermList: true
UseHugoToc: true
@@ -45,31 +53,33 @@ params:
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>"
favicon: "/favicon.ico"
favicon16x16: "/favicon-16x16.png"
favicon32x32: "/favicon-32x32.png"
apple_touch_icon: "/apple-touch-icon.png"
safari_pinned_tab: "/logo.svg"
label:
text: "Home"
text: "TrudeWeb"
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>"
enabled: true # needs to be explicitly set
title: TrudeEH
subtitle: "Software Developer • Computer Technician • Linux Enthusiast"
imageUrl: "/logo.jpg"
imageWidth: 120
imageHeight: 120
imageTitle: my image
imageTitle: Trude Logo
buttons:
- name: Posts
url: posts
- name: Tags
url: tags
- name: My Portfolio
url: https://trudeeh.github.io/WebPortfolio/
# home-info mode
homeInfoParams:
@@ -77,30 +87,24 @@ params:
Content: Welcome to my blog
socialIcons:
- name: x
url: "https://x.com/"
- name: stackoverflow
url: "https://stackoverflow.com"
- name: email
url: "mailto:ehtrude@gmail.com"
- name: github
url: "https://github.com/"
url: "https://github.com/TrudeEH"
analytics:
google:
SiteVerificationTag: "XYZabc"
bing:
SiteVerificationTag: "XYZabc"
yandex:
SiteVerificationTag: "XYZabc"
# 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
linkFullImages: true
# for search
# https://fusejs.io/api/options.html
@@ -113,20 +117,21 @@ params:
minMatchCharLength: 0
limit: 10 # refer: https://www.fusejs.io/api/methods.html#search
keys: ["title", "permalink", "summary", "content"]
menu:
main:
- identifier: categories
name: categories
name: Categories
url: /categories/
weight: 10
- identifier: tags
name: tags
name: Tags
url: /tags/
weight: 20
- identifier: example
name: example.org
url: https://example.org
weight: 30
- identifier: search
name: Search
url: /search
weight: 100
# Read: https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs#using-hugos-syntax-highlighter-chroma
pygmentsUseClasses: true
markup: