Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b09f47aae7 | |||
| c779a70834 | |||
| 08ec931cea | |||
| 929ed76012 | |||
| 9782532893 | |||
| 7f7e4ce21b | |||
| 32cc685144 | |||
| a11eebeb10 | |||
| ccc11bb362 | |||
| 166fbb7dbc |
@@ -27,3 +27,8 @@ eg:
|
||||
- **Support for beautiful *KaTeX* formulae** ([amtoine/hugo-theme-terminal-katex](https://github.com/amtoine/hugo-theme-terminal-katex))
|
||||
- SHORT DESCRIPTION
|
||||
- Antoine Stevan ([@amtoine](https://github.com/amtoine)), software engineer into open source
|
||||
|
||||
- **Configurable timestamping for posts** ([KatieTheDev/hugo-theme-terminal](https://github.com/KatieTheDev/hugo-theme-terminal))
|
||||
- Allows for configuring timestamping, not just datestamping
|
||||
- Works with last modification dates as well
|
||||
- KatieTheDev ([@KatieTheDev](https://github.com/KatieTheDev))
|
||||
@@ -203,6 +203,20 @@ paginate = 5
|
||||
# can be overridden in a page's front-matter
|
||||
# TocTitle = "Table of Contents" # default
|
||||
|
||||
# Set date/time format for posts
|
||||
# This will impact the date/time displayed on
|
||||
# index.html, the posts list page, and on posts themselves
|
||||
# This value can also be configured per-post on front matter
|
||||
# If you have any issues with the timezone rendering differently
|
||||
# than you expected, please ensure your timezone is correctly set
|
||||
# on your server.
|
||||
# This value can be customized according to Hugo documentation:
|
||||
# https://gohugo.io/functions/time/format/
|
||||
# Default value (no changes needed):
|
||||
# dateFormat = "2006-01-02"
|
||||
# Example format, with date, time, and timezone abbreviation:
|
||||
# dateFormat = "2006-01-02 3:04:06 PM MST"
|
||||
|
||||
|
||||
[params.twitter]
|
||||
# set Twitter handles for Twitter cards
|
||||
|
||||
@@ -59,6 +59,11 @@
|
||||
- https://www.sagbot.com **E. HADDAG** (Computer Scientist)
|
||||
- https://adamperkowski.dev **Adam Perkowski** (A Random Developer)
|
||||
- https://imortio.github.io **Azrul** (CompSci Student)
|
||||
- https://carmar.is **Carmaris** (Amateur Hacker)
|
||||
- https://ragonneau.github.io **Tom Ragonneau** (Engineer)
|
||||
- https://katiethe.dev **KatieTheDev** (Amateur porgrammer and tinkerer)
|
||||
- https://stefka.eu **Jiří Štefka** (Software Developer)
|
||||
|
||||
<!--
|
||||
TEMPLATE:
|
||||
|
||||
@@ -66,3 +71,4 @@
|
||||
|
||||
-->
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
+++
|
||||
title = "{{ replace .TranslationBaseName "-" " " | title }}"
|
||||
date = "{{ .Date }}"
|
||||
#dateFormat = "2006-01-02" # This value can be configured for per-post date formatting
|
||||
author = ""
|
||||
authorTwitter = "" #do not include @
|
||||
cover = ""
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 50 KiB |
@@ -23,7 +23,7 @@
|
||||
<div class="post-meta">
|
||||
{{- if .Date -}}
|
||||
<time class="post-date">
|
||||
{{- .Date.Format "2006-01-02" -}}
|
||||
{{- partial "post-date" . -}}
|
||||
</time>
|
||||
{{- end -}}
|
||||
{{- with .Params.Author -}}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<div class="post-meta">
|
||||
{{- if .Date -}}
|
||||
<time class="post-date">
|
||||
{{- .Date.Format "2006-01-02" -}}
|
||||
{{- partial "post-date" . -}}
|
||||
</time>
|
||||
{{- end -}}
|
||||
{{- with .Params.Author -}}
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
<div class="post-meta">
|
||||
{{- if .Date -}}
|
||||
<time class="post-date">
|
||||
{{- .Date.Format "2006-01-02" -}}
|
||||
{{- if $.Site.Params.showLastUpdated -}}
|
||||
[{{- or $.Site.Params.updatedDatePrefix "Updated" -}} :: {{- .Lastmod.Format "2006-01-02" -}}]
|
||||
{{- partial "post-date" . -}}
|
||||
{{- if and $.Site.Params.showLastUpdated .Lastmod -}}
|
||||
{{- partial "post-lastmod" . -}}
|
||||
{{- end -}}
|
||||
</time>
|
||||
{{- end -}}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
{{- $date := .Date -}}
|
||||
{{- with .Params.dateFormat -}}
|
||||
{{- $date | time.Format . -}}
|
||||
{{- else -}}
|
||||
{{- with .Site.Params.dateFormat -}}
|
||||
{{- $date | time.Format . -}}
|
||||
{{- else -}}
|
||||
{{- $date | time.Format "2006-01-02" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
@@ -0,0 +1,10 @@
|
||||
{{- $date := .Lastmod -}}
|
||||
{{- with .Params.dateFormat -}}
|
||||
{{- $date | time.Format . -}}
|
||||
{{- else -}}
|
||||
{{- with .Site.Params.dateFormat -}}
|
||||
[{{- or $.Site.Params.updatedDatePrefix "Updated: " }} {{ $date | time.Format . -}}]
|
||||
{{- else -}}
|
||||
[{{- or $.Site.Params.updatedDatePrefix "Updated: " }} {{ $date | time.Format "2006-01-02" -}}]
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
Reference in New Issue
Block a user