Compare commits

...

4 Commits

Author SHA1 Message Date
Radek Kozieł 4acd067c48 Update build.yml
Build / build (push) Failing after 1m54s
2026-04-05 23:21:41 +02:00
Radek Kozieł 56ae0901f1 chore: create build.yml workflow 2026-04-05 23:12:48 +02:00
jardel eb8c44dc40 fix(example): use correct config in the example. (#564) 2026-04-05 23:08:08 +02:00
teremich 0258c67535 added option to format date on tag list (#575)
Earlier, the date format was hard coded to `2006-01-02`. Now the site wide parameter `dateFormat` can be used to optionally set the format on post lists.
2026-04-05 22:59:33 +02:00
3 changed files with 46 additions and 10 deletions
+31
View File
@@ -0,0 +1,31 @@
name: Build
on: push
env:
HUGO_VERSION: 0.152.2
jobs:
build:
runs-on: ubuntu-22.04
steps:
# CHEKCOUT REPOSITORY
- name: Git checkout
uses: actions/checkout@v6
# SETUP HUGO
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '${{ env.HUGO_VERSION }}'
extended: true
# DEPENDENCIES
- name: Install npm dependencies
run: npm ci
# BUILD
- name: Build Site
env:
TZ: 'Europe/Warsaw'
run: hugo --minify
+9 -9
View File
@@ -15,16 +15,16 @@ pagination.pagerSize = 5
[languages]
[languages.en]
title = "Terminal"
subtitle = "A simple, retro theme for Hugo"
keywords = ""
copyright = ""
menuMore = "Show more"
readMore = "Read more"
readOtherPosts = "Read other posts"
[languages.en.params.logo]
logoText = "Terminal"
logoHomeLink = "/"
[languages.en.params]
subtitle = "A simple, retro theme for Hugo"
keywords = ""
menuMore = "Show more"
readMore = "Read more"
readOtherPosts = "Read other posts"
[[languages.en.params.logo]]
logoText = "Terminal"
logoHomeLink = "/"
[languages.en.menu]
[[languages.en.menu.main]]
+6 -1
View File
@@ -14,7 +14,12 @@
<div class="post-meta">
{{- if .Date -}}
<time class="post-date">
{{- .Date.Format "2006-01-02" -}}
{{- $date := .Date -}}
{{- with .Site.Params.DateFormat -}}
{{- $date.Format . -}}
{{- else -}}
{{- $date.Format "2006-01-02" -}}
{{- end -}}
</time>
{{- end -}}
{{- with .Params.Author -}}