Compare commits

7 Commits

Author SHA1 Message Date
c731b7eaf5 fix: refactor removal of old docker images
All checks were successful
Blog Test / Check-Rebuild (push) Successful in 6s
Blog Test / Build (push) Has been skipped
Blog Test / Deploy-Test (push) Successful in 9s
Blog Test / Test (push) Successful in 2s
Blog Deployment / Check-Rebuild (push) Successful in 6s
Blog Deployment / Build (push) Has been skipped
Blog Deployment / Deploy-Staging (push) Successful in 10s
Blog Deployment / Test-Staging (push) Successful in 2s
Blog Deployment / Merge (push) Successful in 9s
Blog Deployment / Deploy-Production (push) Successful in 8s
Blog Deployment / Test-Production (push) Successful in 2s
Blog Deployment / Clean (push) Has been skipped
Blog Deployment / Notify (push) Successful in 2s
2026-04-10 15:38:28 +02:00
4cc467b0db Merge branch 'main' into preview
All checks were successful
Blog Test / Check-Rebuild (push) Successful in 8s
Blog Test / Build (push) Has been skipped
Blog Test / Deploy-Test (push) Successful in 10s
Blog Test / Test (push) Successful in 2s
Blog Deployment / Check-Rebuild (push) Successful in 17s
Blog Deployment / Build (push) Successful in 34s
Blog Deployment / Deploy-Staging (push) Successful in 10s
Blog Deployment / Test-Staging (push) Successful in 30s
Blog Deployment / Merge (push) Successful in 10s
Blog Deployment / Deploy-Production (push) Successful in 11s
Blog Deployment / Test-Production (push) Successful in 2s
Blog Deployment / Clean (push) Successful in 2s
Blog Deployment / Notify (push) Successful in 2s
2026-04-03 12:45:14 +00:00
1712356889 fix: no-redirect (#12)
Some checks failed
Blog Deployment / Check-Rebuild (push) Successful in 7s
Blog Deployment / Build (push) Has been skipped
Blog Deployment / Deploy-Staging (push) Successful in 12s
Blog Deployment / Test-Staging (push) Successful in 3s
Blog Deployment / Merge (push) Failing after 8s
Blog Deployment / Deploy-Production (push) Has been skipped
Blog Deployment / Test-Production (push) Has been skipped
Blog Deployment / Clean (push) Has been skipped
Blog Deployment / Notify (push) Successful in 3s
Reviewed-on: #12
2026-04-03 14:43:06 +02:00
9a4f91dfbb Merge branch 'preview'
All checks were successful
Blog Test / Check-Rebuild (push) Successful in 8s
Blog Test / Build (push) Has been skipped
Blog Test / Deploy-Test (push) Successful in 11s
Blog Test / Test (push) Successful in 3s
2026-04-03 11:35:51 +00:00
eea734f2fe feat: create a dedicated dev pipeline (#10)
All checks were successful
Blog Deployment / Check-Rebuild (push) Successful in 7s
Blog Deployment / Build (push) Has been skipped
Blog Deployment / Deploy-Staging (push) Successful in 11s
Blog Deployment / Test-Staging (push) Successful in 4s
Blog Deployment / Merge (push) Successful in 8s
Blog Deployment / Deploy-Production (push) Successful in 12s
Blog Deployment / Test-Production (push) Successful in 3s
Blog Deployment / Clean (push) Has been skipped
Blog Deployment / Notify (push) Successful in 3s
Reviewed-on: #10
2026-04-03 13:33:18 +02:00
c23735f94d fix/not-deploying-hugo-v159 (#9)
Some checks failed
Blog Deployment / Check-Rebuild (push) Successful in 7s
Blog Deployment / Build (push) Successful in 10s
Blog Deployment / Deploy-Staging (push) Successful in 11s
Blog Deployment / Test-Staging (push) Failing after 3s
Blog Deployment / Merge (push) Has been skipped
Blog Deployment / Clean (push) Has been skipped
Blog Deployment / Deploy-Production (push) Has been skipped
Blog Deployment / Test-Production (push) Has been skipped
Blog Deployment / Notify (push) Successful in 4s
Reviewed-on: #9
2026-04-03 10:02:12 +02:00
4c2265cde6 fix: revert to git clone instead of checkout
Some checks failed
Blog Deployment / Check-Rebuild (push) Successful in 20s
Blog Deployment / Build (push) Has been skipped
Blog Deployment / Deploy-Staging (push) Successful in 14s
Blog Deployment / Test-Staging (push) Failing after 4s
Blog Deployment / Deploy-Production (push) Has been skipped
Blog Deployment / Test-Production (push) Has been skipped
Blog Deployment / Clean (push) Has been skipped
Blog Deployment / Merge (push) Has been skipped
Blog Deployment / Notify (push) Successful in 5s
2026-03-30 10:49:02 +00:00
4 changed files with 54 additions and 42 deletions

View File

@@ -24,7 +24,7 @@ jobs:
docker_folder_changed: ${{ steps.docker_folder.outputs.changed }} docker_folder_changed: ${{ steps.docker_folder.outputs.changed }}
steps: steps:
- name: Checkout Repository - name: Checkout Repository
run: git clone --branch preview https://${{ secrets.REPO_TOKEN }}@git.vezpi.com/Vezpi/blog.git . run: git clone --branch ${{ gitea.ref_name }} https://${{ secrets.REPO_TOKEN }}@git.vezpi.com/Vezpi/blog.git .
- name: Check Latest Hugo Version - name: Check Latest Hugo Version
id: get_latest id: get_latest
@@ -79,7 +79,7 @@ jobs:
shell: sh shell: sh
steps: steps:
- name: Checkout Repository - name: Checkout Repository
run: git clone --branch preview https://${{ secrets.REPO_TOKEN }}@git.vezpi.com/Vezpi/blog.git . run: git clone --branch ${{ gitea.ref_name }} https://${{ secrets.REPO_TOKEN }}@git.vezpi.com/Vezpi/blog.git .
- name: Build Docker Image - name: Build Docker Image
run: | run: |
@@ -116,7 +116,7 @@ jobs:
needs: Deploy-Staging needs: Deploy-Staging
runs-on: ubuntu runs-on: ubuntu
env: env:
URL: "https://blog-dev.vezpi.com/en/" URL: "https://blog-staging.vezpi.com/en/"
steps: steps:
- name: Check HTTP Response - name: Check HTTP Response
run: | run: |
@@ -143,7 +143,7 @@ jobs:
- name: Merge preview Branch on main - name: Merge preview Branch on main
run: | run: |
git merge --ff-only origin/preview git merge --ff-only origin/${{ gitea.ref_name }}
git push origin main git push origin main
Deploy-Production: Deploy-Production:
@@ -194,7 +194,7 @@ jobs:
steps: steps:
- name: Remove Old Docker Image - name: Remove Old Docker Image
run: | run: |
docker image rm ${{ needs.Check-Rebuild.outputs.current_docker_image }} --force docker image rm $(docker image ls ${DOCKER_IMAGE} 2> /dev/null | awk '$NF != "U" && NR>1 {print $2}')
Notify: Notify:
needs: [Check-Rebuild, Build, Deploy-Staging, Test-Staging, Merge, Deploy-Production, Test-Production, Clean] needs: [Check-Rebuild, Build, Deploy-Staging, Test-Staging, Merge, Deploy-Production, Test-Production, Clean]

View File

@@ -87,7 +87,7 @@ jobs:
--build-arg HUGO_VERSION=${{ needs.Check-Rebuild.outputs.latest_hugo_version }} \ --build-arg HUGO_VERSION=${{ needs.Check-Rebuild.outputs.latest_hugo_version }} \
--tag ${DOCKER_IMAGE}:${{ needs.Check-Rebuild.outputs.latest_hugo_version }} \ --tag ${DOCKER_IMAGE}:${{ needs.Check-Rebuild.outputs.latest_hugo_version }} \
. .
docker tag ${DOCKER_IMAGE}:${{ needs.Check-Rebuild.outputs.latest_hugo_version }} ${DOCKER_IMAGE}:test docker tag ${DOCKER_IMAGE}:${{ needs.Check-Rebuild.outputs.latest_hugo_version }} ${DOCKER_IMAGE}:dev
Deploy-Test: Deploy-Test:
needs: needs:
@@ -102,7 +102,7 @@ jobs:
run: run:
shell: sh shell: sh
env: env:
CONTAINER_NAME: blog_test CONTAINER_NAME: blog_dev
steps: steps:
- name: Launch Blog Test Deployment - name: Launch Blog Test Deployment
run: | run: |
@@ -117,7 +117,7 @@ jobs:
needs: Deploy-Test needs: Deploy-Test
runs-on: ubuntu runs-on: ubuntu
env: env:
URL: "https://blog-test.vezpi.com/en/" URL: "https://blog-dev.vezpi.com/en/"
steps: steps:
- name: Check HTTP Response - name: Check HTTP Response
run: | run: |

View File

@@ -3,9 +3,15 @@
} }
.lang-toggle-icon { .lang-toggle-icon {
margin-left: auto; margin-left: 0;
svg { svg {
width: 64px; width: 64px;
height: 24px; height: 24px;
} }
}
.container {
.left-sidebar {
width: unset;
}
} }

View File

@@ -1,8 +1,13 @@
{{- $IsList := .IsList -}}
{{- $Page := .Page -}}
<div class="article-details"> <div class="article-details">
{{ if .Params.categories }} {{ if $Page.Params.categories }}
<header class="article-category"> <header class="article-category">
{{ range (.GetTerms "tags") }} {{ range ($Page.GetTerms "tags") }}
<a href="{{ .RelPermalink }}" {{ with .Params.style }}style="background-color: {{ .background }}; color: {{ .color }};"{{ end }}> {{ $color := partial "helper/color-from-str" .LinkTitle }}
{{ $BackgroundColor := default $color.BackgroundColor .Params.style.background }}
{{ $TextColor := default $color.TextColor .Params.style.color }}
<a href="{{ $Page.RelPermalink }}" style="background-color: {{ $BackgroundColor | safeCSS }}; color: {{ $TextColor | safeCSS }};">
{{ .LinkTitle }} {{ .LinkTitle }}
</a> </a>
{{ end }} {{ end }}
@@ -11,50 +16,51 @@
<div class="article-title-wrapper"> <div class="article-title-wrapper">
<h2 class="article-title"> <h2 class="article-title">
<a href="{{ .RelPermalink }}"> <a href="{{ $Page.RelPermalink }}">
{{- .Title -}} {{- $Page.Title -}}
</a> </a>
</h2> </h2>
{{ with .Params.description }} {{ with $Page.Params.description }}
<h3 class="article-subtitle"> <h3 class="article-subtitle">
{{ . }} {{ . }}
</h3> </h3>
{{ end }} {{ end }}
</div> </div>
{{ $showReadingTime := .Params.readingTime | default (.Site.Params.article.readingTime) }} {{ $showReadingTime := $Page.Params.readingTime | default ($Page.Site.Params.article.readingTime) }}
{{ $showDate := not .Date.IsZero }} {{ $showDate := not $Page.Date.IsZero }}
{{ $showFooter := or $showDate $showReadingTime }} {{ $showTime := or $showDate $showReadingTime }}
{{ if $showFooter }}
<footer class="article-time"> {{ if $showTime }}
{{ if $showDate }} <footer class="article-meta">
<div> <div class="inline-meta">
{{ if $showDate }}
{{ partial "helper/icon" "date" }} {{ partial "helper/icon" "date" }}
<time class="article-time--published"> <time class="article-time--published" datetime='{{ $Page.Date.Format "2006-01-02T15:04:05Z07:00" }}'>
{{- .Date | time.Format (or .Site.Params.dateFormat.published "Jan 02, 2006") -}} {{- $Page.Date | time.Format $Page.Site.Params.dateFormat.published -}}
</time> </time>
</div> {{ end }}
{{ end }}
{{ if $showReadingTime }} {{ if $showReadingTime }}
<div> {{ partial "helper/icon" "clock" }}
{{ partial "helper/icon" "stopwatch" }}
<time class="article-time--reading"> <time class="article-time--reading">
{{ T "article.readingTime" .ReadingTime }} {{ T "article.readingTime" $Page.ReadingTime }}
</time> </time>
</div> {{ end }}
{{ end }}
{{- $date := .Date.Format "20060102" | int -}} {{- $date := $Page.Date.Format "20060102" | int -}}
{{- $lastmod := .Lastmod.Format "20060102" | int -}} {{- $lastmod := $Page.Lastmod.Format "20060102" | int -}}
{{- if gt $lastmod $date -}} {{- if gt $lastmod $date -}}
<div class="article-lastmod"> <div class="article-lastmod">
{{ partial "helper/icon" "refresh" }} {{ partial "helper/icon" "refresh" }}
<time> <time>
{{ T "article.lastUpdatedOn" }} {{ .Lastmod | time.Format ( or .Site.Params.dateFormat.lastUpdated "Jan 02, 2006 15:04 MST" ) }} {{ T "article.lastUpdatedOn" }} {{ $Page.Lastmod | time.Format ( or $Page.Site.Params.dateFormat.lastUpdated "Jan 02, 2006 15:04 MST" ) }}
</time> </time>
</div> </div>
{{- end -}} {{- end -}}
</div>
</footer> </footer>
{{ end }} {{ end }}
</div> </div>