parent
d1f5684800
commit
7488de1482
4 changed files with 53 additions and 24 deletions
27
.forgejo/workflows/deploy.yaml
Normal file
27
.forgejo/workflows/deploy.yaml
Normal file
|
@ -0,0 +1,27 @@
|
|||
name: Hugo
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: hugo-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: "true"
|
||||
- name: Copy exampleSite Files
|
||||
run: cp -v exampleSite/hugo.yaml .
|
||||
- name: Run build task
|
||||
run: hugo --minify
|
||||
- name: Deploy to Server
|
||||
uses: https://git.myco.systems/mirrors/ssh-deploy@main
|
||||
env:
|
||||
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
ARGS: "-rlgoDzvc -i --delete"
|
||||
SOURCE: "public/"
|
||||
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
|
||||
REMOTE_USER: ${{ secrets.REMOTE_USER }}
|
||||
TARGET: ${{ secrets.REMOTE_TARGET }}
|
25
exampleSite/hugo.yaml
Normal file
25
exampleSite/hugo.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
baseURL: https://hugojson.myco.systems/
|
||||
theme: hugo-maintenance
|
||||
defaultContentLanguage: en
|
||||
|
||||
params:
|
||||
openGraph:
|
||||
title: "My Hugo site"
|
||||
image: "https://example.com/opengraph-image.jpg"
|
||||
description: |
|
||||
Welcome to my Hugo site!
|
||||
url: "https://example.com"
|
||||
|
||||
title: "My Hugo site"
|
||||
body: |
|
||||
Welcome to my Hugo site!
|
||||
|
||||
faq:
|
||||
- question: "Why does your website look like this?"
|
||||
answer: "Our pretty looking site is currently under construction!"
|
||||
|
||||
contact:
|
||||
- service: "e-mail"
|
||||
input: "your@email.com"
|
||||
|
||||
asciiArt: 2
|
23
hugo.toml
23
hugo.toml
|
@ -1,23 +0,0 @@
|
|||
baseURL = 'https://example.org/'
|
||||
languageCode = 'en-us'
|
||||
title = 'My New Hugo Site'
|
||||
|
||||
[[menus.main]]
|
||||
name = 'Home'
|
||||
pageRef = '/'
|
||||
weight = 10
|
||||
|
||||
[[menus.main]]
|
||||
name = 'Posts'
|
||||
pageRef = '/posts'
|
||||
weight = 20
|
||||
|
||||
[[menus.main]]
|
||||
name = 'Tags'
|
||||
pageRef = '/tags'
|
||||
weight = 30
|
||||
|
||||
[module]
|
||||
[module.hugoVersion]
|
||||
extended = false
|
||||
min = "0.116.0"
|
|
@ -3,7 +3,7 @@ license = 'MIT'
|
|||
licenselink = 'https://git.myco.systems/mycosystems/hugo-maintenance/src/branch/main/LICENSE'
|
||||
description = 'Simple maintenance page in the style of JSON'
|
||||
homepage = 'https://git.myco.systems/mycosystems/hugo-maintenance'
|
||||
demosite = 'https://owner.github.io/repo'
|
||||
demosite = 'https://hugojson.myco.systems/'
|
||||
tags = ['maintenance', 'JSON']
|
||||
|
||||
[author]
|
||||
|
|
Loading…
Add table
Reference in a new issue