ADD hugo
This commit is contained in:
parent
dd3fe96c06
commit
5472c85c23
13 changed files with 182 additions and 0 deletions
61
.forgejo/workflows/build.yaml
Normal file
61
.forgejo/workflows/build.yaml
Normal file
|
@ -0,0 +1,61 @@
|
|||
name: build-to-pages
|
||||
on: [push]
|
||||
branches: [main]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: node:latest
|
||||
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: Optimize images
|
||||
shell: bash
|
||||
run: |
|
||||
./themes/kobel/assets/build/images.sh
|
||||
- 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
|
||||
container:
|
||||
image: node:latest
|
||||
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
|
||||
shell: bash
|
||||
run: apt update && apt install unzip -y && unzip 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
|
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
[submodule "themes/kobel"]
|
||||
path = themes/kobel
|
||||
url = https://code.nutfactory.org/themes/kobel.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
|
||||
---
|
||||
|
BIN
assets/images/avatar.jpg
Normal file
BIN
assets/images/avatar.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 372 KiB |
41
config.yaml
Normal file
41
config.yaml
Normal file
|
@ -0,0 +1,41 @@
|
|||
theme: kobel
|
||||
baseURL: https://melissasarria.site/
|
||||
languageCode: en-us
|
||||
title: Melissa Sarria
|
||||
|
||||
enableEmoji: true
|
||||
enableRobotsTXT: true
|
||||
|
||||
markup:
|
||||
tableOfContents:
|
||||
endLevel: 3
|
||||
ordered: false
|
||||
startLevel: 1
|
||||
|
||||
module:
|
||||
mounts:
|
||||
- source: assets
|
||||
target: assets
|
||||
- source: static
|
||||
target: assets
|
||||
|
||||
params:
|
||||
description: Melissa Sarria's personal website
|
||||
avatar: /images/avatar.jpg
|
||||
color:
|
||||
secondary: "#35A099"
|
||||
primary: "#A0353C"
|
||||
header:
|
||||
links:
|
||||
- text: Portfolio
|
||||
url: /portfolio
|
||||
footer:
|
||||
social:
|
||||
- type: linkedin
|
||||
rel: nofollow
|
||||
text: LinkedIn
|
||||
url: https://www.linkedin.com/in/melissa-sarria/
|
||||
links:
|
||||
- text: Imprint
|
||||
url: /imprint
|
||||
copyright: Melissa Sarria
|
24
content/0_hero.md
Normal file
24
content/0_hero.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
---
|
||||
|
||||
type: hero
|
||||
id: hero
|
||||
avatar:
|
||||
url: /images/avatar.jpg
|
||||
alt: Avatar
|
||||
type: avatar
|
||||
width: 884
|
||||
height: 856
|
||||
greeting: Hi 👋
|
||||
introduction: I'm Melissa
|
||||
social:
|
||||
|
||||
- type: linkedin
|
||||
rel: nofollow
|
||||
url: https://www.linkedin.com/in/melissa-sarria/
|
||||
- type: at
|
||||
url: mailto:melissa.andrea94@hotmail.es
|
||||
weight: 1
|
||||
|
||||
---
|
||||
|
||||
I studied psychology and cognitive science and I am 28 years old. I am passionate about human behavior and aesthetic design. I am a curious person and always enjoy being challenged by new perspectives and situations. I consider myself a critical thinker and an open-minded person who is always willing to grow and learn. I am interested in understanding people's experiences and finding creative solutions to their needs. Social responsibility is important to me, so I always try to do good for people and society.
|
0
content/_index.md
Normal file
0
content/_index.md
Normal file
6
content/imprint/_index.md
Normal file
6
content/imprint/_index.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title: Impress
|
||||
draft: false
|
||||
---
|
||||
|
||||
TODO
|
6
content/portfolio/_index.md
Normal file
6
content/portfolio/_index.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title: Portfolio
|
||||
draft: false
|
||||
---
|
||||
|
||||
TODO
|
21
static/admin/config.yml
Normal file
21
static/admin/config.yml
Normal file
|
@ -0,0 +1,21 @@
|
|||
backend:
|
||||
name: gitea
|
||||
repo: melicita/website # Path to your Gitea repository
|
||||
app_id: ecd1dad7-b95c-4ba3-b625-a96ec1ddd9c5 # The Client ID provided by Gitea
|
||||
api_root: https://code.nutfactory.org/api/v1 # API URL of your Gitea instance
|
||||
base_url: https://code.nutfactory.org # Root URL of your Gitea instance
|
||||
branch: main
|
||||
media_folder: assets/images
|
||||
public_folder: /images
|
||||
collections:
|
||||
- name: 'portfolio'
|
||||
label: 'Portfolio'
|
||||
folder: 'content/portfolio'
|
||||
create: true
|
||||
slug: '{{year}}-{{month}}-{{day}}-{{slug}}'
|
||||
editor:
|
||||
preview: false
|
||||
fields:
|
||||
- { label: 'Title', name: 'title', widget: 'string' }
|
||||
- { label: 'Publish Date', name: 'date', widget: 'datetime' }
|
||||
- { label: 'Body', name: 'body', widget: 'markdown' }
|
13
static/admin/index.html
Normal file
13
static/admin/index.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="robots" content="noindex" />
|
||||
<title>Content Manager</title>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Include the script that builds the page and powers Decap CMS -->
|
||||
<script src="https://unpkg.com/decap-cms@^3.0.0/dist/decap-cms.js"></script>
|
||||
</body>
|
||||
</html>
|
1
themes/kobel
Submodule
1
themes/kobel
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 07f46720f8b83c3517a1448a0e109c6ba43c4a63
|
Loading…
Reference in a new issue