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 {
|
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;
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
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