forked from mirrors/hugo-theme-terminal
Compare commits
12 Commits
Author | SHA1 | Date | |
---|---|---|---|
b09f47aae7 | |||
c779a70834 | |||
08ec931cea | |||
929ed76012 | |||
9782532893 | |||
7f7e4ce21b | |||
32cc685144 | |||
a11eebeb10 | |||
ccc11bb362 | |||
166fbb7dbc | |||
6802c6eebf | |||
a283ea88b5 |
@ -27,3 +27,8 @@ eg:
|
|||||||
- **Support for beautiful *KaTeX* formulae** ([amtoine/hugo-theme-terminal-katex](https://github.com/amtoine/hugo-theme-terminal-katex))
|
- **Support for beautiful *KaTeX* formulae** ([amtoine/hugo-theme-terminal-katex](https://github.com/amtoine/hugo-theme-terminal-katex))
|
||||||
- SHORT DESCRIPTION
|
- SHORT DESCRIPTION
|
||||||
- Antoine Stevan ([@amtoine](https://github.com/amtoine)), software engineer into open source
|
- 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))
|
14
README.md
14
README.md
@ -203,6 +203,20 @@ paginate = 5
|
|||||||
# can be overridden in a page's front-matter
|
# can be overridden in a page's front-matter
|
||||||
# TocTitle = "Table of Contents" # default
|
# 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]
|
[params.twitter]
|
||||||
# set Twitter handles for Twitter cards
|
# set Twitter handles for Twitter cards
|
||||||
|
6
USERS.md
6
USERS.md
@ -59,6 +59,11 @@
|
|||||||
- https://www.sagbot.com **E. HADDAG** (Computer Scientist)
|
- https://www.sagbot.com **E. HADDAG** (Computer Scientist)
|
||||||
- https://adamperkowski.dev **Adam Perkowski** (A Random Developer)
|
- https://adamperkowski.dev **Adam Perkowski** (A Random Developer)
|
||||||
- https://imortio.github.io **Azrul** (CompSci Student)
|
- 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:
|
TEMPLATE:
|
||||||
|
|
||||||
@ -66,3 +71,4 @@
|
|||||||
|
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
+++
|
+++
|
||||||
title = "{{ replace .TranslationBaseName "-" " " | title }}"
|
title = "{{ replace .TranslationBaseName "-" " " | title }}"
|
||||||
date = "{{ .Date }}"
|
date = "{{ .Date }}"
|
||||||
|
#dateFormat = "2006-01-02" # This value can be configured for per-post date formatting
|
||||||
author = ""
|
author = ""
|
||||||
authorTwitter = "" #do not include @
|
authorTwitter = "" #do not include @
|
||||||
cover = ""
|
cover = ""
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
src: url("../fonts/FiraCode-Regular.woff") format("woff");
|
src: url("../fonts/FiraCode-Regular.woff") format("woff");
|
||||||
font-feature-settings: "liga", "tnum", "zero", "ss01", "locl";
|
font-feature-settings: "liga", "tnum", "ss01", "locl";
|
||||||
font-variant-ligatures: contextual;
|
font-variant-ligatures: contextual;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -14,6 +14,6 @@
|
|||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
src: url("../fonts/FiraCode-Bold.woff") format("woff");
|
src: url("../fonts/FiraCode-Bold.woff") format("woff");
|
||||||
font-feature-settings: "liga", "tnum", "zero", "ss01", "locl";
|
font-feature-settings: "liga", "tnum", "ss01", "locl";
|
||||||
font-variant-ligatures: contextual;
|
font-variant-ligatures: contextual;
|
||||||
}
|
}
|
||||||
|
@ -1,12 +1,10 @@
|
|||||||
@import url("https://fonts.googleapis.com/css2?family=Fira+Code&family=Fira+Code:wght@400;700&display=swap");
|
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--background: #1a170f;
|
--background: #1a170f;
|
||||||
--foreground: #eceae5;
|
--foreground: #eceae5;
|
||||||
--accent: #eec35e;
|
--accent: #eec35e;
|
||||||
--font-size: 1rem;
|
--font-size: 1rem;
|
||||||
--line-height: 1.54rem;
|
--line-height: 1.54rem;
|
||||||
--radius: 0px;
|
--radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
@ -14,12 +12,12 @@ html {
|
|||||||
}
|
}
|
||||||
|
|
||||||
*,
|
*,
|
||||||
*:before,
|
*::before,
|
||||||
*:after {
|
*::after {
|
||||||
box-sizing: inherit;
|
box-sizing: inherit;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@ -36,10 +34,10 @@ body {
|
|||||||
letter-spacing: -0.02em;
|
letter-spacing: -0.02em;
|
||||||
background-color: var(--background);
|
background-color: var(--background);
|
||||||
color: var(--foreground);
|
color: var(--foreground);
|
||||||
text-rendering: optimizeLegibility;
|
text-rendering: optimizelegibility;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
-webkit-text-size-adjust: 100%;
|
text-size-adjust: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
::placeholder {
|
::placeholder {
|
||||||
@ -256,7 +254,7 @@ kbd {
|
|||||||
"Fira Code",
|
"Fira Code",
|
||||||
Monaco,
|
Monaco,
|
||||||
Consolas,
|
Consolas,
|
||||||
Ubuntu Mono,
|
"Ubuntu Mono",
|
||||||
monospace !important;
|
monospace !important;
|
||||||
font-feature-settings: normal;
|
font-feature-settings: normal;
|
||||||
background: color-mix(in srgb, var(--foreground) 5%, transparent);
|
background: color-mix(in srgb, var(--foreground) 5%, transparent);
|
||||||
@ -331,7 +329,7 @@ blockquote {
|
|||||||
padding: 25px;
|
padding: 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
blockquote:before {
|
blockquote::before {
|
||||||
content: ">";
|
content: ">";
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
BIN
images/tn.png
BIN
images/tn.png
Binary file not shown.
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 50 KiB |
@ -23,7 +23,7 @@
|
|||||||
<div class="post-meta">
|
<div class="post-meta">
|
||||||
{{- if .Date -}}
|
{{- if .Date -}}
|
||||||
<time class="post-date">
|
<time class="post-date">
|
||||||
{{- .Date.Format "2006-01-02" -}}
|
{{- partial "post-date" . -}}
|
||||||
</time>
|
</time>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- with .Params.Author -}}
|
{{- with .Params.Author -}}
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
<div class="post-meta">
|
<div class="post-meta">
|
||||||
{{- if .Date -}}
|
{{- if .Date -}}
|
||||||
<time class="post-date">
|
<time class="post-date">
|
||||||
{{- .Date.Format "2006-01-02" -}}
|
{{- partial "post-date" . -}}
|
||||||
</time>
|
</time>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- with .Params.Author -}}
|
{{- with .Params.Author -}}
|
||||||
|
@ -6,9 +6,9 @@
|
|||||||
<div class="post-meta">
|
<div class="post-meta">
|
||||||
{{- if .Date -}}
|
{{- if .Date -}}
|
||||||
<time class="post-date">
|
<time class="post-date">
|
||||||
{{- .Date.Format "2006-01-02" -}}
|
{{- partial "post-date" . -}}
|
||||||
{{- if $.Site.Params.showLastUpdated -}}
|
{{- if and $.Site.Params.showLastUpdated .Lastmod -}}
|
||||||
[{{- or $.Site.Params.updatedDatePrefix "Updated" -}} :: {{- .Lastmod.Format "2006-01-02" -}}]
|
{{- partial "post-lastmod" . -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</time>
|
</time>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
10
layouts/partials/post-date.html
Normal file
10
layouts/partials/post-date.html
Normal file
@ -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 -}}
|
10
layouts/partials/post-lastmod.html
Normal file
10
layouts/partials/post-lastmod.html
Normal file
@ -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