mirror of
https://github.com/yrzam/yrzam-hugo-theme.git
synced 2026-02-04 14:26:24 +00:00
Compare commits
4 Commits
f2b9fcb884
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 6d786905ec | |||
| c854afa1ee | |||
| fe2768af8c | |||
| 702211b68a |
@@ -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 {
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
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