mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-05-10 22:12:57 -05:00
Compare commits
3 Commits
60ed1c0264
...
b854ae48e6
Author | SHA1 | Date | |
---|---|---|---|
b854ae48e6 | |||
36a19a48b7 | |||
1f8a82228e |
@ -681,21 +681,27 @@ table.markdown {
|
||||
border: 2px solid var(--text-1);
|
||||
}
|
||||
|
||||
.markdown thead {
|
||||
table.markdown thead {
|
||||
background-color: var(--background-2);
|
||||
color: var(--text-2);
|
||||
border-bottom: 2px solid var(--text-1);
|
||||
}
|
||||
|
||||
.markdown th,
|
||||
.markdown td {
|
||||
table.markdown th,
|
||||
table.markdown td {
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.markdown tbody tr:nth-child(odd) {
|
||||
table.markdown th + th,
|
||||
table.markdown td + td {
|
||||
border-left: 2px solid var(--text-1);
|
||||
}
|
||||
|
||||
table.markdown tbody tr:nth-child(odd) {
|
||||
background-color: var(--background-0);
|
||||
color: var(--text-0);
|
||||
}
|
||||
.markdown tbody tr:nth-child(even) {
|
||||
table.markdown tbody tr:nth-child(even) {
|
||||
background-color: var(--background-1);
|
||||
color: var(--text-1);
|
||||
}
|
||||
|
17
layouts/shortcodes/include.html
Normal file
17
layouts/shortcodes/include.html
Normal file
@ -0,0 +1,17 @@
|
||||
{{ $path := "" }}
|
||||
{{ $markdown := false }}
|
||||
{{ if .IsNamedParams }}
|
||||
{{ $path = .Get "path" }}
|
||||
{{ with .Get "markdown" }}
|
||||
{{ $markdown = . }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ $path = .Get 0 }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
{{ if $markdown }}
|
||||
{{ $path | readFile | markdownify }}
|
||||
{{ else }}
|
||||
{{ $path | readFile }}
|
||||
{{ end }}
|
Loading…
x
Reference in New Issue
Block a user