Compare commits

...

3 Commits

Author SHA1 Message Date
6d786905ec file shortcode 2025-10-12 22:46:28 +00:00
c854afa1ee fix 2025-07-11 23:15:29 +00:00
fe2768af8c visual 2025-07-11 23:05:56 +00:00
4 changed files with 17 additions and 3 deletions

View File

@@ -25,6 +25,7 @@ h1,h2,h3,h4,h5,h6 {
} }
html { html {
font-size: 16px; font-size: 16px;
font-family: system-ui;
height: 100%; height: 100%;
scroll-behavior: smooth; scroll-behavior: smooth;
scrollbar-color: $color-fg-accent-op-m transparent; scrollbar-color: $color-fg-accent-op-m transparent;

View File

@@ -76,7 +76,7 @@
/* section specific - single of classic */ /* section specific - single of classic */
.classic-layout-container header .content.post { .classic-layout-container header .content.post {
.pub-date { .status {
color: $color-fg-op-m; color: $color-fg-op-m;
margin: 1em 0; margin: 1em 0;
} }

View File

@@ -5,8 +5,8 @@
{{ if .Description }}<p>{{ .Description }}</p>{{ end }} {{ if .Description }}<p>{{ .Description }}</p>{{ end }}
{{ partial "taxo_of_single.html" . }} {{ partial "taxo_of_single.html" . }}
{{ if .Lastmod }} {{ if .Lastmod }}
<div class="pub-date"> <div class="status">
mtime={{ .Lastmod.Format .Site.Params.dateFormat }} mtime=<span class="mtime">{{ .Lastmod.Format .Site.Params.dateFormat }}</span>
archived={{ default false .Params.archived }} archived={{ default false .Params.archived }}
words={{ .WordCount }} words={{ .WordCount }}
</div> </div>

View File

@@ -0,0 +1,13 @@
{{- if gt ( len .Params ) 1 -}}
{{- $.Scratch.Set "format" ( .Get 1 ) -}}
{{- else -}}
{{- $splits := ( split ( .Get 0 ) "." ) -}}
{{- $splitsLength := ( len $splits ) -}}
{{- $format := ( index $splits ( sub $splitsLength 1 ) ) -}}
{{- $.Scratch.Set "format" $format -}}
{{- end -}}
{{- $file := ( .Get 0 ) -}}
{{- $format := ( $.Scratch.Get "format" ) -}}
{{- ( print "```" $format "\n" ( readFile $file ) "\n" "```" ) | markdownify -}}