diff --git a/.gitignore b/.gitignore index 3f39788..c11b720 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ www/.content.*/binary/ +v2/.hugo_build.lock +v2/resources/_gen/ +www/v2 diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..9666404 --- /dev/null +++ b/.gitmodules @@ -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 diff --git a/nginx.conf b/nginx.conf index 4a57c3b..f58f607 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,10 +1,10 @@ server { - index index.php; + index index.php index.html; # server_name phpfpm.local; # error_log /var/log/nginx/error.log; # access_log /var/log/nginx/access.log; root /var/www/html; - try_files $uri $uri/ /index.php; + try_files $uri $uri/ /index.php /index.html; location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass php-fpm:9000; diff --git a/v2/archetypes/default.md b/v2/archetypes/default.md new file mode 100644 index 0000000..00e77bd --- /dev/null +++ b/v2/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/v2/config.toml b/v2/config.toml new file mode 100644 index 0000000..81c1cdb --- /dev/null +++ b/v2/config.toml @@ -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 + diff --git a/v2/content/_index.md b/v2/content/_index.md new file mode 100644 index 0000000..4b072d5 --- /dev/null +++ b/v2/content/_index.md @@ -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 diff --git a/v2/content/post/why-this-new-blog.md b/v2/content/post/why-this-new-blog.md new file mode 100644 index 0000000..917fb83 --- /dev/null +++ b/v2/content/post/why-this-new-blog.md @@ -0,0 +1,7 @@ +--- +title: "Why This New Blog" +date: 2022-11-06T15:07:16+01:00 +draft: true +--- + +Omg first post ! diff --git a/v2/themes/cupper-hugo-theme b/v2/themes/cupper-hugo-theme new file mode 160000 index 0000000..4a56374 --- /dev/null +++ b/v2/themes/cupper-hugo-theme @@ -0,0 +1 @@ +Subproject commit 4a56374eeb217c78d9fc9e3c600c899e848acf21 diff --git a/www/.content.EZtzwPjb/includes/warning_new_blog.php b/www/.content.EZtzwPjb/includes/warning_new_blog.php index ba765a4..b53a0e4 100644 --- a/www/.content.EZtzwPjb/includes/warning_new_blog.php +++ b/www/.content.EZtzwPjb/includes/warning_new_blog.php @@ -1,4 +1,4 @@
Ceci est la version legacy de mon blog si vous voulez voir les nouveaux articles et et savoir pourquoi c'est par - ICI + ICI