commit 4e1f656f6b6dd9774fc7782fbd89214f0a530fd2 Author: Matthieu Bessat Date: Fri Feb 9 17:04:27 2024 +0100 initial commit hugo sandbox number 02 diff --git a/.forgejo/workflows/hugo.yaml b/.forgejo/workflows/hugo.yaml new file mode 100644 index 0000000..f351a12 --- /dev/null +++ b/.forgejo/workflows/hugo.yaml @@ -0,0 +1,31 @@ +on: [push] +jobs: + test: + runs-on: docker + # by default it runs on a node.js debian image + steps: + - name: Apt update and install + run: apt update && apt install -y rsync curl + - uses: actions/checkout@v4 + with: + submodules: true + fetch-depth: 0 + - run: ls -la + - name: Setup Hugo + env: + HUGO_RELEASE_TYPE: extended + HUGO_VERSION: 0.120.3 + run: | + mkdir ~/hugo + cd ~/hugo + curl -L "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_RELEASE_TYPE}_${HUGO_VERSION}_Linux-64bit.tar.gz" --output hugo.tar.gz + tar -xvzf hugo.tar.gz + mv hugo /usr/local/bin + - name: Build + run: hugo --minify + - name: Create Key File + run: install -m 600 -D /dev/null ~/.ssh/id_edsa + - name: Populate Key + run: echo "${{ secrets.SRV06_DEPLOY_WEBSITE_SSH_KEY }}" > ~/.ssh/id_edsa + - name: Upload + run: rsync --archive --stats -e 'ssh -i ~/.ssh/id_edsa -o StrictHostKeyChecking=no' public/ forgejo_actions_websites@srv06.lefuturiste.fr:/warmd/mbess/websites/hugo-sandbox-02/public diff --git a/README.md b/README.md new file mode 100644 index 0000000..2eeec21 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +# Hugo sandbox 02 + +[see the demo on https://hugo-02.sandbox.lefuturiste.fr](https://hugo-02.sandbox.lefuturiste.fr) + diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..c6f3fce --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,5 @@ ++++ +title = '{{ replace .File.ContentBaseName "-" " " | title }}' +date = {{ .Date }} +draft = true ++++ diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..c10c5be --- /dev/null +++ b/config.toml @@ -0,0 +1,6 @@ +baseURL = 'https://hugo-02.sandbox.lefuturiste.fr' +languageCode = 'en-us' +title = 'Hugo lefuturiste sandbox 02' +theme = "diary" + + diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..b352c06 --- /dev/null +++ b/content/_index.md @@ -0,0 +1 @@ +Hello world this is the index diff --git a/content/posts/hello-world.md b/content/posts/hello-world.md new file mode 100644 index 0000000..bb32286 --- /dev/null +++ b/content/posts/hello-world.md @@ -0,0 +1,6 @@ ++++ +title = "Article de demo de fou" +date = 2024-02-02T16:03:20.612Z ++++ + +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. diff --git a/content/posts/second.md b/content/posts/second.md new file mode 100644 index 0000000..99b92d7 --- /dev/null +++ b/content/posts/second.md @@ -0,0 +1,8 @@ ++++ +title = "Un article incroyable…" +date = 2024-02-09T16:03:32.199Z ++++ + +![Image de fou](https://src.lefuturiste.fr/images/plasma-red.1080.jpg) + +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.