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
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
This commit was merged in pull request #9.
This commit is contained in:
@@ -23,10 +23,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
|
||||||
uses: actions/checkout@v4
|
run: git clone --branch ${{ gitea.ref_name }} https://${{ secrets.REPO_TOKEN }}@git.vezpi.com/Vezpi/blog.git .
|
||||||
with:
|
|
||||||
ref: ${{ gitea.ref_name }}
|
|
||||||
token: ${{ secrets.REPO_TOKEN }}
|
|
||||||
|
|
||||||
- name: Check Latest Hugo Version
|
- name: Check Latest Hugo Version
|
||||||
id: get_latest
|
id: get_latest
|
||||||
@@ -81,10 +78,7 @@ jobs:
|
|||||||
shell: sh
|
shell: sh
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v4
|
run: git clone --branch ${{ gitea.ref_name }} https://${{ secrets.REPO_TOKEN }}@git.vezpi.com/Vezpi/blog.git .
|
||||||
with:
|
|
||||||
ref: ${{ gitea.ref_name }}
|
|
||||||
token: ${{ secrets.REPO_TOKEN }}
|
|
||||||
|
|
||||||
- name: Build Docker Image
|
- name: Build Docker Image
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -21,6 +21,9 @@ rm -rf "$CLONE_DIR"
|
|||||||
echo "- Cloning $REPO_URL (branch: $BRANCH)..."
|
echo "- Cloning $REPO_URL (branch: $BRANCH)..."
|
||||||
git clone --recurse-submodules --branch "$BRANCH" "$REPO_URL" "$CLONE_DIR"
|
git clone --recurse-submodules --branch "$BRANCH" "$REPO_URL" "$CLONE_DIR"
|
||||||
|
|
||||||
|
# Patch .Site.Data references not yet fixed in Stack theme
|
||||||
|
sed -i 's/\.Site\.Data/hugo.Data/g' "$CLONE_DIR/themes/stack/layouts/_partials/article/components/photoswipe.html"
|
||||||
|
|
||||||
# Generate static files with hugo
|
# Generate static files with hugo
|
||||||
echo "- Building site with Hugo v$HUGO_VERSION in $HUGO_DEST..."
|
echo "- Building site with Hugo v$HUGO_VERSION in $HUGO_DEST..."
|
||||||
hugo --source "$CLONE_DIR" --destination "$HUGO_DEST" --baseURL="https://${URL}" ${DRAFTS} --logLevel info --cleanDestinationDir --gc --panicOnWarning --printI18nWarnings
|
hugo --source "$CLONE_DIR" --destination "$HUGO_DEST" --baseURL="https://${URL}" ${DRAFTS} --logLevel info --cleanDestinationDir --gc --panicOnWarning --printI18nWarnings
|
||||||
|
|||||||
@@ -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="{{ .RelPermalink }}" style="background-color: {{ $BackgroundColor | safeCSS }}; color: {{ $TextColor | safeCSS }};">
|
||||||
{{ .LinkTitle }}
|
{{ .LinkTitle }}
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@@ -12,49 +17,50 @@
|
|||||||
<div class="article-title-wrapper">
|
<div class="article-title-wrapper">
|
||||||
<h2 class="article-title">
|
<h2 class="article-title">
|
||||||
<a href="{{ .RelPermalink }}">
|
<a href="{{ .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>
|
||||||
|
|||||||
Submodule themes/stack updated: 9e6b7b22a9...8e3687431f
Reference in New Issue
Block a user