Compare commits
31 Commits
c7c2a43f50
...
main
Author | SHA1 | Date | |
---|---|---|---|
78bd487cfe | |||
f342bf94ad | |||
367670897b | |||
030690546d | |||
834fc3f045 | |||
0e7b6a4634 | |||
295da91a77 | |||
8ab461d601 | |||
616accd48f | |||
24926644b6 | |||
4396c6b534 | |||
957439daf7 | |||
1dbdec4125 | |||
7540750b10 | |||
b024458812 | |||
ec19ee3b15 | |||
0ffb63994c | |||
90f8f2077d | |||
b29787f86f | |||
45c231a7a1 | |||
29a6bd78ff | |||
8ad53f40ff | |||
39d14e056f | |||
db9ebf501c | |||
005a77e8b1 | |||
a8a307d6bd | |||
bdc1af6115 | |||
a79d0de3d7 | |||
771a04a6a7 | |||
5f9bc01b8b | |||
bac32586b8 |
@ -1,33 +0,0 @@
|
|||||||
name: Build Hugo Docker Image
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- ".gitea/workflows/1_build_hugo_image.yml"
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build docker:
|
|
||||||
runs-on: linux_amd
|
|
||||||
steps:
|
|
||||||
- name: checkout code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
- name: Set up QEMU
|
|
||||||
uses: docker/setup-qemu-action@v3
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
- name: Login to Docker registry
|
|
||||||
uses: docker/login-action@v2
|
|
||||||
with:
|
|
||||||
registry: git.d3vyce.fr
|
|
||||||
username: ${{ github.actor }}
|
|
||||||
password: ${{ secrets.GIT_TOKEN }}
|
|
||||||
- name: Build and push
|
|
||||||
uses: docker/build-push-action@v4
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
build-args:
|
|
||||||
HUGO_VERSION=v0.133.1
|
|
||||||
file: ./hugo.Dockerfile
|
|
||||||
platforms: linux/amd64
|
|
||||||
push: true
|
|
||||||
tags: git.d3vyce.fr/d3vyce/hugo:latest
|
|
@ -10,7 +10,7 @@ jobs:
|
|||||||
runs-on: linux_amd
|
runs-on: linux_amd
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
# with:
|
# with:
|
||||||
# lfs: 'true'
|
# lfs: 'true'
|
||||||
- name: Checkout LFS
|
- name: Checkout LFS
|
||||||
@ -25,17 +25,15 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
- name: Login to Docker registry
|
- name: Login to Docker registry
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: git.d3vyce.fr
|
registry: git.d3vyce.fr
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GIT_TOKEN }}
|
password: ${{ secrets.GIT_TOKEN }}
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
build-args:
|
|
||||||
BLOWFISH_VERSION=v2.77.1
|
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
push: true
|
push: true
|
@ -1,5 +1,5 @@
|
|||||||
# Build Stage
|
# Build Stage
|
||||||
FROM git.d3vyce.fr/d3vyce/hugo:latest AS build
|
FROM hugomods/hugo:0.147.8 AS build
|
||||||
|
|
||||||
ARG BLOWFISH_VERSION
|
ARG BLOWFISH_VERSION
|
||||||
|
|
||||||
@ -7,11 +7,11 @@ WORKDIR /opt/blog
|
|||||||
COPY . /opt/blog/
|
COPY . /opt/blog/
|
||||||
|
|
||||||
RUN git submodule update --init --recursive && \
|
RUN git submodule update --init --recursive && \
|
||||||
git -C themes/blowfish/ checkout ${BLOWFISH_VERSION}
|
git -C themes/blowfish/ checkout v2.87.0
|
||||||
RUN hugo
|
RUN hugo
|
||||||
|
|
||||||
# Publish Stage
|
# Publish Stage
|
||||||
FROM nginx:1.27-alpine
|
FROM nginx:1.29-alpine
|
||||||
|
|
||||||
WORKDIR /usr/share/nginx/html
|
WORKDIR /usr/share/nginx/html
|
||||||
COPY --from=build /opt/blog/public /usr/share/nginx/html/
|
COPY --from=build /opt/blog/public /usr/share/nginx/html/
|
||||||
|
@ -9,7 +9,6 @@ defaultContentLanguage = "en"
|
|||||||
# pluralizeListTitles = "true" # hugo function useful for non-english languages, find out more in https://gohugo.io/getting-started/configuration/#pluralizelisttitles
|
# pluralizeListTitles = "true" # hugo function useful for non-english languages, find out more in https://gohugo.io/getting-started/configuration/#pluralizelisttitles
|
||||||
|
|
||||||
enableRobotsTXT = true
|
enableRobotsTXT = true
|
||||||
paginate = 10
|
|
||||||
summaryLength = 0
|
summaryLength = 0
|
||||||
|
|
||||||
buildDrafts = false
|
buildDrafts = false
|
||||||
@ -17,6 +16,9 @@ buildFuture = false
|
|||||||
|
|
||||||
# googleAnalytics = "G-XXXXXXXXX"
|
# googleAnalytics = "G-XXXXXXXXX"
|
||||||
|
|
||||||
|
[pagination]
|
||||||
|
pagerSize = 10
|
||||||
|
|
||||||
[imaging]
|
[imaging]
|
||||||
anchor = 'Center'
|
anchor = 'Center'
|
||||||
|
|
||||||
|
@ -11,9 +11,9 @@ title = "d3vyce Blog"
|
|||||||
logo = "img/author_transparent.webp"
|
logo = "img/author_transparent.webp"
|
||||||
# secondaryLogo = "img/secondary-logo.png"
|
# secondaryLogo = "img/secondary-logo.png"
|
||||||
description = "Hi 👋, Welcome to my Blog!"
|
description = "Hi 👋, Welcome to my Blog!"
|
||||||
copyright = "d3vyce 2024 © All rights reserved."
|
copyright = "d3vyce 2021-2025 © All rights reserved."
|
||||||
|
|
||||||
[author]
|
[params.author]
|
||||||
name = "d3vyce"
|
name = "d3vyce"
|
||||||
image = "img/profil.png"
|
image = "img/profil.png"
|
||||||
headline = "Hi 👋, Welcome to my Blog!"
|
headline = "Hi 👋, Welcome to my Blog!"
|
||||||
|
@ -143,5 +143,5 @@ smartTOCHideUnfocusedChildren = false
|
|||||||
# yandex = ""
|
# yandex = ""
|
||||||
|
|
||||||
[umamiAnalytics]
|
[umamiAnalytics]
|
||||||
websiteid = "3f82b8d1-0744-4af3-a29e-c1b5add4a1e5"
|
websiteid = "136df6e7-f469-45ce-b2c1-f324e7228ea5"
|
||||||
domain = "analytics.d3vyce.fr"
|
domain = "analytics.d3vyce.fr"
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "d3vyce Blog's"
|
title: "d3vyce Blog's"
|
||||||
description: "This page was built using the Blowfish theme for Hugo."
|
description: "This page was built using the Blowfish theme for Hugo."
|
||||||
layout: "simple"
|
|
||||||
---
|
---
|
||||||
|
|
||||||
{{< list title="Latest Projects" cardView=true limit=3 where="Type" value="projects" >}}
|
{{< list title="Latest Projects" cardView=true limit=3 where="Type" value="projects" >}}
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
FROM golang:1.23-alpine AS build
|
|
||||||
|
|
||||||
ARG HUGO_VERSION
|
|
||||||
ARG CGO=1
|
|
||||||
|
|
||||||
ENV CGO_ENABLED=${CGO}
|
|
||||||
ENV GOOS=linux
|
|
||||||
ENV GO111MODULE=on
|
|
||||||
|
|
||||||
RUN apk update && \
|
|
||||||
apk add --no-cache gcc musl-dev g++ git
|
|
||||||
RUN go install -tags extended github.com/gohugoio/hugo@${HUGO_VERSION}
|
|
@ -2,7 +2,7 @@
|
|||||||
{{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }}
|
{{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }}
|
||||||
<article class="flex flex-col items-center justify-center text-center">
|
<article class="flex flex-col items-center justify-center text-center">
|
||||||
<header class="flex flex-col items-center mb-3">
|
<header class="flex flex-col items-center mb-3">
|
||||||
{{ with .Site.Author.image }}
|
{{ with .Site.Params.Author.image }}
|
||||||
{{ $authorImage := resources.Get . }}
|
{{ $authorImage := resources.Get . }}
|
||||||
{{ if $authorImage }}
|
{{ if $authorImage }}
|
||||||
{{ if not $disableImageOptimization }}
|
{{ if not $disableImageOptimization }}
|
||||||
@ -12,13 +12,13 @@
|
|||||||
class="mb-2 rounded-full h-36 w-36"
|
class="mb-2 rounded-full h-36 w-36"
|
||||||
width="144"
|
width="144"
|
||||||
height="144"
|
height="144"
|
||||||
alt="{{ $.Site.Author.name | default "Author" }}"
|
alt="{{ $.Site.Params.Author.name | default "Author" }}"
|
||||||
src="{{ $authorImage.RelPermalink }}"
|
src="{{ $authorImage.RelPermalink }}"
|
||||||
/>
|
/>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<h1 class="text-4xl font-extrabold">
|
<h1 class="text-4xl font-extrabold">
|
||||||
{{ .Site.Author.name | default .Site.Title }}
|
{{ .Site.Params.Author.name | default .Site.Title }}
|
||||||
</h1>
|
</h1>
|
||||||
<div class="mt-1 text-2xl">
|
<div class="mt-1 text-2xl">
|
||||||
{{ partialCached "author-links.html" . }}
|
{{ partialCached "author-links.html" . }}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }}
|
{{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }}
|
||||||
<article class="flex flex-col items-center justify-center text-center">
|
<article class="flex flex-col items-center justify-center text-center">
|
||||||
<header class="flex flex-col items-center mb-3">
|
<header class="flex flex-col items-center mb-3">
|
||||||
{{ with .Site.Author.image }}
|
{{ with .Site.Params.Author.image }}
|
||||||
{{ $authorImage := resources.Get . }}
|
{{ $authorImage := resources.Get . }}
|
||||||
{{ if $authorImage }}
|
{{ if $authorImage }}
|
||||||
{{ if not $disableImageOptimization }}
|
{{ if not $disableImageOptimization }}
|
||||||
@ -11,15 +11,15 @@
|
|||||||
class="mb-2 rounded-full h-36 w-36"
|
class="mb-2 rounded-full h-36 w-36"
|
||||||
width="144"
|
width="144"
|
||||||
height="144"
|
height="144"
|
||||||
alt="{{ $.Site.Author.name | default "Author" }}"
|
alt="{{ $.Site.Params.Author.name | default "Author" }}"
|
||||||
src="{{ $authorImage.RelPermalink }}"
|
src="{{ $authorImage.RelPermalink }}"
|
||||||
/>
|
/>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<h1 class="text-4xl font-extrabold">
|
<h1 class="text-4xl font-extrabold">
|
||||||
{{ .Site.Author.name | default .Site.Title }}
|
{{ .Site.Params.Author.name | default .Site.Title }}
|
||||||
</h1>
|
</h1>
|
||||||
{{ with .Site.Author.headline }}
|
{{ with .Site.Params.Author.headline }}
|
||||||
<h2 class="text-xl text-neutral-500 dark:text-neutral-400">
|
<h2 class="text-xl text-neutral-500 dark:text-neutral-400">
|
||||||
{{ . | markdownify | emojify }}
|
{{ . | markdownify | emojify }}
|
||||||
</h2>
|
</h2>
|
||||||
|
Submodule themes/blowfish updated: 984320d0ef...2f12b8d0d9
Reference in New Issue
Block a user