mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-07-04 11:07:32 -05:00
Compare commits
6 Commits
custom-fon
...
0744af717d
Author | SHA1 | Date | |
---|---|---|---|
0744af717d
|
|||
23f86d5982
|
|||
b854ae48e6
|
|||
36a19a48b7
|
|||
1f8a82228e
|
|||
60ed1c0264
|
@ -122,12 +122,12 @@
|
||||
font-family: "Open Sans";
|
||||
font-display: swap;
|
||||
font-style: normal;
|
||||
src: url("/font/opensans/OpenSans-VariableFont_wdth,wght-9f637b868d10819aa0085e6cf7f70953411c8905c4055c069adbe8acc708feef.woff2") format("woff2");
|
||||
src: url("../font/opensans/OpenSans-VariableFont_wdth,wght-9f637b868d10819aa0085e6cf7f70953411c8905c4055c069adbe8acc708feef.woff2") format("woff2");
|
||||
}
|
||||
@font-face {
|
||||
font-family: JetBrainsMono;
|
||||
font-display: swap;
|
||||
src: url("/font/jetbrainsmono/JetBrainsMono_wght-e190ee6595a3b9bd25278613a6f5d3766ee1a708f300ed44fa63dbe84051498f.woff2") format("woff2");
|
||||
src: url("../font/jetbrainsmono/JetBrainsMono_wght-e190ee6595a3b9bd25278613a6f5d3766ee1a708f300ed44fa63dbe84051498f.woff2") format("woff2");
|
||||
}
|
||||
:root {
|
||||
--font-sans: "Open Sans", "Noto Sans", sans-serif;
|
||||
@ -136,6 +136,8 @@
|
||||
|
||||
html {
|
||||
font-family: var(--font-sans);
|
||||
/* otherwise code block lines have random text sizes on mobile safari */
|
||||
-webkit-text-size-adjust: none;
|
||||
}
|
||||
pre, code, kbd, samp, textarea {
|
||||
font-family: var(--font-mono);
|
||||
@ -681,21 +683,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 }}
|
Reference in New Issue
Block a user