feat: add new hugo blog v2
This commit is contained in:
parent
598d28551d
commit
75012416a1
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1 +1,4 @@
|
||||||
www/.content.*/binary/
|
www/.content.*/binary/
|
||||||
|
v2/.hugo_build.lock
|
||||||
|
v2/resources/_gen/
|
||||||
|
www/v2
|
||||||
|
|
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "v2/themes/cupper-hugo-theme"]
|
||||||
|
path = v2/themes/cupper-hugo-theme
|
||||||
|
url = https://github.com/zwbetz-gh/cupper-hugo-theme.git
|
|
@ -1,10 +1,10 @@
|
||||||
server {
|
server {
|
||||||
index index.php;
|
index index.php index.html;
|
||||||
# server_name phpfpm.local;
|
# server_name phpfpm.local;
|
||||||
# error_log /var/log/nginx/error.log;
|
# error_log /var/log/nginx/error.log;
|
||||||
# access_log /var/log/nginx/access.log;
|
# access_log /var/log/nginx/access.log;
|
||||||
root /var/www/html;
|
root /var/www/html;
|
||||||
try_files $uri $uri/ /index.php;
|
try_files $uri $uri/ /index.php /index.html;
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
fastcgi_pass php-fpm:9000;
|
fastcgi_pass php-fpm:9000;
|
||||||
|
|
6
v2/archetypes/default.md
Normal file
6
v2/archetypes/default.md
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
title: "{{ replace .Name "-" " " | title }}"
|
||||||
|
date: {{ .Date }}
|
||||||
|
draft: true
|
||||||
|
---
|
||||||
|
|
98
v2/config.toml
Normal file
98
v2/config.toml
Normal file
|
@ -0,0 +1,98 @@
|
||||||
|
baseURL = 'https://blog.hugopoi.net/v2/'
|
||||||
|
publishdir = '../www/v2'
|
||||||
|
languageCode = 'en-us'
|
||||||
|
defaultLanguageContent = 'en'
|
||||||
|
title = 'HugoPoi Blog'
|
||||||
|
theme = 'cupper-hugo-theme'
|
||||||
|
|
||||||
|
# googleAnalytics: UA-123456789-1
|
||||||
|
# disqusShortname: yourdiscussshortname
|
||||||
|
enableGitInfo = true
|
||||||
|
|
||||||
|
[taxonomies]
|
||||||
|
tag = "tags"
|
||||||
|
|
||||||
|
[permalinks]
|
||||||
|
post = "/:filename/"
|
||||||
|
|
||||||
|
[imaging]
|
||||||
|
quality = 99
|
||||||
|
|
||||||
|
[params]
|
||||||
|
description = "My new blog, no more wordpress, Hugo running this one."
|
||||||
|
homeMetaContent = "My new blog talking about tech stuff, cooking, hacking and MOOOOORE"
|
||||||
|
footer = "Made with [Hugo](https://gohugo.io/). Themed by [Cupper](https://github.com/zwbetz-gh/cupper-hugo-theme). Deployed to my NAS with the help of [Franciliens.net](https://www.franciliens.net/)."
|
||||||
|
dateFormat = "Jan 2, 2006"
|
||||||
|
# codePenUser = "someUser"
|
||||||
|
katex = true
|
||||||
|
hideHeaderLinks = false
|
||||||
|
search = true
|
||||||
|
showThemeSwitcher = true
|
||||||
|
defaultDarkTheme = false
|
||||||
|
moveFooterToHeader = true
|
||||||
|
logoAlt = "An alternative text description of the logo"
|
||||||
|
# customCss = [ "css/custom_01.css", "css/custom_02.css" ]
|
||||||
|
# customJs = [ "js/custom_01.js", "js/custom_02.js" ]
|
||||||
|
navTitleText = "HugoPoi's blog v2"
|
||||||
|
|
||||||
|
|
||||||
|
[[menu.nav]]
|
||||||
|
name = "Home"
|
||||||
|
url = "/"
|
||||||
|
weight = 1
|
||||||
|
|
||||||
|
[[menu.nav]]
|
||||||
|
name = "Blog"
|
||||||
|
url = "/post/"
|
||||||
|
weight = 2
|
||||||
|
|
||||||
|
# [[menu.nav]]
|
||||||
|
# name = "Tags"
|
||||||
|
# url = "/tags/"
|
||||||
|
# weight = 3
|
||||||
|
#
|
||||||
|
# [[menu.nav]]
|
||||||
|
# name = "About"
|
||||||
|
# url = "/about/"
|
||||||
|
# weight = 4
|
||||||
|
#
|
||||||
|
# [[menu.nav]]
|
||||||
|
# name = "RSS"
|
||||||
|
# url = "/index.xml"
|
||||||
|
# weight = 5
|
||||||
|
|
||||||
|
[markup]
|
||||||
|
defaultMarkdownHandler = "goldmark"
|
||||||
|
|
||||||
|
[markup.goldmark.extensions]
|
||||||
|
definitionList = true
|
||||||
|
footnote = true
|
||||||
|
linkify = true
|
||||||
|
strikethrough = true
|
||||||
|
table = true
|
||||||
|
taskList = true
|
||||||
|
typographer = true
|
||||||
|
|
||||||
|
[markup.goldmark.parser]
|
||||||
|
attribute = true
|
||||||
|
autoHeadingID = true
|
||||||
|
|
||||||
|
[markup.goldmark.renderer]
|
||||||
|
hardWraps = false
|
||||||
|
unsafe = true
|
||||||
|
xHTML = false
|
||||||
|
|
||||||
|
[markup.highlight]
|
||||||
|
codeFences = false
|
||||||
|
hl_Lines = ""
|
||||||
|
lineNoStart = 1
|
||||||
|
lineNos = false
|
||||||
|
lineNumbersInTable = true
|
||||||
|
noClasses = true
|
||||||
|
style = "monokai"
|
||||||
|
tabWidth = 4
|
||||||
|
|
||||||
|
[markup.tableOfContents]
|
||||||
|
endLevel = 6
|
||||||
|
startLevel = 2
|
||||||
|
|
22
v2/content/_index.md
Normal file
22
v2/content/_index.md
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
---
|
||||||
|
title: "Welcome here"
|
||||||
|
date: 2022-11-06T14:27:04+01:00
|
||||||
|
draft: false
|
||||||
|
---
|
||||||
|
|
||||||
|
Beware this is a work in progress
|
||||||
|
|
||||||
|
## The story behind this revamp
|
||||||
|
|
||||||
|
1. My old blog was built with wordpress arround 2009
|
||||||
|
2. I loose the sources and some of the content early 2022
|
||||||
|
because my hoster drop the server AND the backups with the just an
|
||||||
|
email as a warning, and it was an old email adresse I rarely check.
|
||||||
|
3. I recover the content as html, thanks to archive.org and Archivarix
|
||||||
|
company
|
||||||
|
4. Was mainly in French and I start writing more in English,
|
||||||
|
Wordpress isn't well design to write in two languages, you need
|
||||||
|
plugins to do it.
|
||||||
|
5. I really like writing in Markdown, it's SMOOOOTH, no wysiwyg crap UI, I
|
||||||
|
even install a markdown plugin in wordpress arround 2019.
|
||||||
|
6. Markdown + Git = JOY for me
|
7
v2/content/post/why-this-new-blog.md
Normal file
7
v2/content/post/why-this-new-blog.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
title: "Why This New Blog"
|
||||||
|
date: 2022-11-06T15:07:16+01:00
|
||||||
|
draft: true
|
||||||
|
---
|
||||||
|
|
||||||
|
Omg first post !
|
1
v2/themes/cupper-hugo-theme
Submodule
1
v2/themes/cupper-hugo-theme
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 4a56374eeb217c78d9fc9e3c600c899e848acf21
|
|
@ -1,4 +1,4 @@
|
||||||
<div style="background-color: orange;border-radius: 6px;font-weight: bold;margin-bottom: 10px;" class="container">
|
<div style="background-color: orange;border-radius: 6px;font-weight: bold;margin-bottom: 10px;" class="container">
|
||||||
Ceci est la version legacy de mon blog si vous voulez voir les nouveaux articles et et savoir pourquoi c'est par
|
Ceci est la version legacy de mon blog si vous voulez voir les nouveaux articles et et savoir pourquoi c'est par
|
||||||
<a href="/new">ICI</a>
|
<a href="/v2/">ICI</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user