Integrate hugo static generator

This commit is contained in:
2025-09-17 22:18:39 +02:00
parent eef2646054
commit 89dafbf421
63 changed files with 888 additions and 183 deletions

153
hugo.toml Normal file
View File

@@ -0,0 +1,153 @@
baseURL = ""
title = "Petrov"
theme = "hugo-coder"
languageCode = "en"
defaultContentLanguage = "en"
enableEmoji = true
[pagination]
pagerSize = 20
[services]
[services.disqus]
# Enable Disqus comments
# shortname = "yourdiscussshortname"
[markup]
[markup.highlight]
noClasses = false
[markup.goldmark]
[markup.goldmark.renderer]
unsafe = true
[params]
author = "Nikola Petrov"
# license = '<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA-4.0</a>'
description = "Nikola Petrov's personal website"
keywords = "blog,developer,personal"
info = ["Developer", "Go player"]
avatarURL = "images/Jaz.jpg"
faviconICO = "images/logo.ico"
#gravatar = "john.doe@example.com"
#dateFormat = "January 2, 2006"
#since = 2019
# Git Commit in Footer, uncomment the line below to enable it
#commit = "https://github.com/luizdepra/hugo-coder/tree/"
# Right To Left, shift content direction for languages such as Arabic
rtl = false
# Specify light/dark colorscheme
# Supported values:
# "auto" (use preference set by browser)
# "dark" (dark background, light foreground)
# "light" (light background, dark foreground) (default)
colorScheme = "auto"
# Hide the toggle button, along with the associated vertical divider
hideColorSchemeToggle = false
# Series see also post count
maxSeeAlsoItems = 5
# Custom CSS
customCSS = ["css/extra.css"]
# Custom SCSS, file path is relative to Hugo's asset folder (default: {your project root}/assets)
customSCSS = []
# Custom JS
customJS = []
# Custom remote JS files
customRemoteJS = []
# If you want to use plausible(https://plausible.io) for analytics, add this section
# [params.plausibleAnalytics]
# domain = "example.com"
# serverURL = "analytics.example.com" # Default value is plausible.io, overwrite this if you are self-hosting or using a custom domain
# outboundLinksTracking = true
# fileDownloadsTracking = true
# If you want to implement a Content-Security-Policy, add this section
# [params.csp]
# childsrc = ["'self'"]
# fontsrc = ["'self'", "https://fonts.gstatic.com", "https://cdn.jsdelivr.net/"]
# formaction = ["'self'"]
# framesrc = ["'self'", "https://www.youtube.com"]
# imgsrc = ["'self'"]
# objectsrc = ["'none'"]
# stylesrc = [
# "'self'",
# "'unsafe-inline'",
# "https://fonts.googleapis.com/",
# "https://cdn.jsdelivr.net/",
# ]
# scriptsrc = [
# "'self'",
# "'unsafe-inline'",
# "https://www.google-analytics.com",
# "https://cdn.jsdelivr.net/",
# ]
# prefetchsrc = ["'self'"]
# # connect-src directive defines valid targets for to XMLHttpRequest (AJAX), WebSockets or EventSource
# connectsrc = ["'self'", "https://www.google-analytics.com"]
[taxonomies]
category = "categories"
series = "series"
tag = "tags"
author = "authors"
[[params.social]]
name = "Git"
icon = "fa-brands fa-git fa-2x"
weight = 1
url = "https://git.petrovv.com/explore"
[[params.social]]
name = "Instagram"
icon = "fa-brands fa-instagram fa-2x"
weight = 2
url = "https://www.instagram.com/nikolainsta7/"
[[params.social]]
name = "Mobile phone"
icon = "fa-solid fa-mobile fa-2x"
weight = 3
url = "tel:00386749506"
[[params.social]]
name = "Mail"
icon = "fa-regular fa-envelope fa-2x"
weight = 4
url = "mailto:nikola@petrovv.com"
[languages.en]
languageName = ":uk:"
[[languages.en.menu.main]]
name = "About Me"
weight = 1
url = "about_me/"
#[[languages.en.menu.main]]
#name = "Posts"
#weight = 2
#url = "posts/"
[[languages.en.menu.main]]
name = "List"
weight = 3
url = "list/"
[[languages.en.menu.main]]
name = "CV"
weight = 3
url = "cv/"
#[[languages.en.menu.main]]
#name = "Projects"
#weight = 5
#url = "projects/"