mirror of
https://github.com/yrzam/yrzam-hugo-theme.git
synced 2026-02-04 14:26:24 +00:00
Compare commits
3 Commits
702211b68a
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 6d786905ec | |||
| c854afa1ee | |||
| fe2768af8c |
@@ -25,6 +25,7 @@ h1,h2,h3,h4,h5,h6 {
|
||||
}
|
||||
html {
|
||||
font-size: 16px;
|
||||
font-family: system-ui;
|
||||
height: 100%;
|
||||
scroll-behavior: smooth;
|
||||
scrollbar-color: $color-fg-accent-op-m transparent;
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
|
||||
/* section specific - single of classic */
|
||||
.classic-layout-container header .content.post {
|
||||
.pub-date {
|
||||
.status {
|
||||
color: $color-fg-op-m;
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
{{ if .Description }}<p>{{ .Description }}</p>{{ end }}
|
||||
{{ partial "taxo_of_single.html" . }}
|
||||
{{ if .Lastmod }}
|
||||
<div class="pub-date">
|
||||
mtime={{ .Lastmod.Format .Site.Params.dateFormat }}
|
||||
<div class="status">
|
||||
mtime=<span class="mtime">{{ .Lastmod.Format .Site.Params.dateFormat }}</span>
|
||||
archived={{ default false .Params.archived }}
|
||||
words={{ .WordCount }}
|
||||
</div>
|
||||
|
||||
13
layouts/shortcodes/file.html
Normal file
13
layouts/shortcodes/file.html
Normal 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 -}}
|
||||
Reference in New Issue
Block a user