Compare commits
3 commits
Author | SHA1 | Date | |
---|---|---|---|
d440267fac | |||
afcd47c517 | |||
124e58c339 |
9 changed files with 106 additions and 1 deletions
52
.forgejo/workflows/build.yaml
Normal file
52
.forgejo/workflows/build.yaml
Normal file
|
@ -0,0 +1,52 @@
|
|||
name: build-to-pages
|
||||
on: [push]
|
||||
branches: [main]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
env:
|
||||
HUGO_VERSION: 0.115.4
|
||||
steps:
|
||||
- name: Install Hugo CLI
|
||||
run: |
|
||||
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
|
||||
&& dpkg -i ${{ runner.temp }}/hugo.deb
|
||||
- name: Install Dart Sass
|
||||
run: npm i -g sass
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
- name: Build with hugo
|
||||
env:
|
||||
# For maximum backward compatibility with Hugo modules
|
||||
HUGO_ENVIRONMENT: production
|
||||
HUGO_ENV: production
|
||||
run: hugo --minify
|
||||
- name: Zip output
|
||||
run: apt update && apt install zip -y && zip -r public.zip public/
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: hugo-output
|
||||
path: ./public.zip
|
||||
if-no-files-found: error
|
||||
retention-days: 1
|
||||
push:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: public
|
||||
- name: Clean current files in directory
|
||||
run: rm -rf *
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: hugo-output
|
||||
- name: Unzip hugo output
|
||||
run: apt update && apt install unzip -y && unzip hugo-output/public.zip -d . && shopt -s dotglob && mv ./public/* ./
|
||||
- name: Publish
|
||||
run: |
|
||||
git config user.name "forgejo-actions"
|
||||
git config user.email ""
|
||||
git add .
|
||||
git commit -m "generated"
|
||||
git push
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -12,4 +12,3 @@ hugo.linux
|
|||
|
||||
# Temporary lock file while building
|
||||
/.hugo_build.lock
|
||||
|
||||
|
|
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
[submodule "themes/gokarna"]
|
||||
path = themes/gokarna
|
||||
url = https://github.com/526avijitgupta/gokarna.git
|
6
archetypes/default.md
Normal file
6
archetypes/default.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title: "{{ replace .Name "-" " " | title }}"
|
||||
date: {{ .Date }}
|
||||
draft: true
|
||||
---
|
||||
|
26
config.toml
Normal file
26
config.toml
Normal file
|
@ -0,0 +1,26 @@
|
|||
theme = 'gokarna'
|
||||
baseURL = 'https://rallex.de/'
|
||||
languageCode = 'en-us'
|
||||
title = 'Rallex'
|
||||
|
||||
# Automatically generate robots.txt
|
||||
enableRobotsTXT = true
|
||||
|
||||
[menu]
|
||||
[[menu.main]]
|
||||
# Unique identifier for a menu item
|
||||
identifier = "posts"
|
||||
|
||||
url = "/posts/"
|
||||
|
||||
# You can add extra information before the name (HTML format is supported), such as icons
|
||||
pre = ""
|
||||
|
||||
# You can add extra information after the name (HTML format is supported), such as icons
|
||||
post = ""
|
||||
|
||||
# Display name
|
||||
name = "Blog"
|
||||
|
||||
# Weights are used to determine the ordering
|
||||
weight = 1
|
10
content/posts/first_post.md
Normal file
10
content/posts/first_post.md
Normal file
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
title: "First_post"
|
||||
date: 2023-10-28T22:19:12+02:00
|
||||
draft: false
|
||||
type: "post"
|
||||
---
|
||||
|
||||
This is a Test.
|
||||
|
||||
Hello World!
|
3
static/.domains
Normal file
3
static/.domains
Normal file
|
@ -0,0 +1,3 @@
|
|||
rallex.de
|
||||
www.rallex.de
|
||||
rallex.nutfactory.page
|
5
static/.gitignore
vendored
Normal file
5
static/.gitignore
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Generated files by hugo
|
||||
/public/
|
||||
|
||||
# Generated files by forgejo actions
|
||||
/hugo-output/
|
1
themes/gokarna
Submodule
1
themes/gokarna
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 5b20557312aad5e45c55dc3fbd58bf4d1bf5872b
|
Loading…
Reference in a new issue