Compare commits

..

4 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
702211b68a styles 2025-07-09 06:59:02 +00:00
4 changed files with 21 additions and 5 deletions

View File

@@ -25,10 +25,12 @@ 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;
line-height: 1.3; line-height: 1.3;
color-scheme: only dark;
} }
body { body {
height: 100%; height: 100%;
@@ -127,7 +129,7 @@ article {
object-fit: contain; object-fit: contain;
display: block; display: block;
width: 100%; width: 100%;
max-height: 30rem; max-height: 25rem;
border: 1px solid $color-bg-accent-light; border: 1px solid $color-bg-accent-light;
} }
figcaption { figcaption {

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;
} }
@@ -110,7 +110,7 @@
} }
} }
.main-container { .main-container {
margin: $margin-base-y * 2 $margin-base-x $margin-base-y $margin-base-x; margin: $margin-base-y * 2 $margin-base-x;
} }
} }
} }

View File

@@ -5,9 +5,10 @@
{{ 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 }}
</div> </div>
{{ end }} {{ end }}
</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 -}}