Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# EditorConfig is awesome: https://editorconfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
trim_trailing_whitespace = true

# Matches multiple files with brace expansion notation
# Set default charset
[*.{js,py}]
charset = utf-8

[.node-version]
trim_trailing_whitespace = false
insert_final_newline = false

# 4 space indentation
[*.py]
indent_style = space
indent_size = 4

# Tab indentation (no size specified)
[Makefile]
indent_style = tab

# Indentation override for all JS under lib directory
[lib/**.js]
indent_style = space
indent_size = 2

Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,24 @@ on:
- main
pull_request:

env:
IMAGE_NAME: hugoweb

jobs:

lint:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 0

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.120.3'
hugo-version: '0.150.1'
extended: true

- name: Setup Node
uses: actions/setup-node@v4
uses: actions/setup-node@v5
with:
node-version: '20'
cache: 'npm'
Expand Down
60 changes: 0 additions & 60 deletions .github/workflows/hugo-docker.yml.tmp

This file was deleted.

7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@ resources/
*.lock
node_modules/*

.vscode
.vscode
.DS_Store
Thumbs.db
*.log
*.tmp
*.bak
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.11.1
20.15.1
59 changes: 0 additions & 59 deletions Makefile

This file was deleted.

46 changes: 46 additions & 0 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
version: '3'

tasks:
default:
silent: true
desc: Display all available tasks for this project
cmds:
- task --list-all

dev:
desc: Launch Hugo in development mode
cmds:
- clear
- hugo -D server

generate:
desc: Generate public code with Hugo
cmds:
- hugo --minify --printI18nWarnings --environment production

init:
desc: Initialize hugo module theme
cmds:
- hugo mod init github.com/hugo-toha/toha/v4
- hugo mod tidy

update:
desc: Update & install module
cmds:
- hugo mod tidy
- hugo mod npm pack
- npm install
- hugo server -w

check:
desc: Check requirements
cmds:
- go version
- hugo version
- node --version
- npm --version

clean:
desc: Clean the go module cache
cmds:
- go clean -modcache
Binary file removed assets/images/author/fred-transparent.png
Binary file not shown.
Binary file removed assets/images/author/fred.png
Binary file not shown.
Binary file removed assets/images/sections/achievements/woman-winner.jpg
Binary file not shown.
2 changes: 1 addition & 1 deletion assets/jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"baseUrl": ".",
"paths": {
"*": [
"../../../../.cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/hugo-toha/toha/v4@v4.3.1/assets/*"
"../../../../Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/hugo-toha/toha/v4@v4.10.0/assets/*"
]
}
}
Expand Down
9 changes: 4 additions & 5 deletions config/_default/config.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
baseURL: https://freuds.me
baseURL: https://freuds.fr

languageCode: en-us
title: "Fred's Blog"
# theme: "toha"
title: "My Personal Blog"
defaultContentLanguage: en

# Use Hugo modules to add theme
Expand Down Expand Up @@ -102,11 +101,11 @@ params:
enable: true
# Share post on different social media
shareButtons:
facebook: true
facebook: false
twitter: true
linkedin: true
reddit: false
whatsapp: true
whatsapp: false
email: true

# Enable & configure "Notes" features
Expand Down
2 changes: 1 addition & 1 deletion config/development/config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
baseURL: http://localhost:1313

languageCode: en-us
title: "Fred's Blog"
title: "Mon blog Perso"
# defaultContentLanguage: fr

languages:
Expand Down
2 changes: 1 addition & 1 deletion config/production/config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
baseURL: https://freuds.me
baseURL: https://freuds.fr

params:
features:
Expand Down
4 changes: 2 additions & 2 deletions content/notes/aws/ec2/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ menu:
{{< note title="List of assigned IPs in subnet">}}
EC2: List of assigned IPs in subnet

```shell
```bash
aws ec2 describe-network-interfaces
--filters "Name=subnet-id,Values=<subnet-id>"
--query 'NetworkInterfaces[*].PrivateIpAddress'
Expand All @@ -20,7 +20,7 @@ aws ec2 describe-network-interfaces

{{< note title="How to make EC2 user data script run again on startup?">}}
How to make EC2 user data script run again on startup?
```shell
```bash
rm /var/lib/cloud/instances/*/sem/config_scripts_user
rm /var/lib/cloud/instance/sem/config_scripts_user
```
Expand Down
Loading