diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml new file mode 100644 index 0000000..b345929 --- /dev/null +++ b/.forgejo/workflows/build.yaml @@ -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 diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..1c9025e --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/kobel"] + path = themes/kobel + url = https://code.nutfactory.org/themes/kobel.git diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..00e77bd --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/assets/images/avatar.jpg b/assets/images/avatar.jpg new file mode 100644 index 0000000..e30b369 Binary files /dev/null and b/assets/images/avatar.jpg differ diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..ad3bfe6 --- /dev/null +++ b/config.yaml @@ -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 diff --git a/content/0_hero.md b/content/0_hero.md new file mode 100644 index 0000000..afe3a19 --- /dev/null +++ b/content/0_hero.md @@ -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. diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..e69de29 diff --git a/content/imprint/_index.md b/content/imprint/_index.md new file mode 100644 index 0000000..6225fca --- /dev/null +++ b/content/imprint/_index.md @@ -0,0 +1,6 @@ +--- +title: Impress +draft: false +--- + +TODO diff --git a/content/portfolio/_index.md b/content/portfolio/_index.md new file mode 100644 index 0000000..06042db --- /dev/null +++ b/content/portfolio/_index.md @@ -0,0 +1,6 @@ +--- +title: Portfolio +draft: false +--- + +TODO diff --git a/.domains b/static/.domains similarity index 100% rename from .domains rename to static/.domains diff --git a/static/admin/config.yml b/static/admin/config.yml new file mode 100644 index 0000000..0de552c --- /dev/null +++ b/static/admin/config.yml @@ -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' } diff --git a/static/admin/index.html b/static/admin/index.html new file mode 100644 index 0000000..4c02725 --- /dev/null +++ b/static/admin/index.html @@ -0,0 +1,13 @@ + + +
+ + + +