mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-07-03 02:27:29 -05:00
Compare commits
10 Commits
custom-fon
...
dd65d55389
Author | SHA1 | Date | |
---|---|---|---|
dd65d55389
|
|||
c7acf8ce38
|
|||
d7647a0b6f
|
|||
ebaa1de00b
|
|||
0744af717d
|
|||
23f86d5982
|
|||
b854ae48e6
|
|||
36a19a48b7
|
|||
1f8a82228e
|
|||
60ed1c0264
|
@ -100,6 +100,7 @@
|
|||||||
--text-gray-1: #5e5e5e; /* lch(40, 0, X) */
|
--text-gray-1: #5e5e5e; /* lch(40, 0, X) */
|
||||||
|
|
||||||
--link-0: #2061a8; /* lch(40, 45, 270) */
|
--link-0: #2061a8; /* lch(40, 45, 270) */
|
||||||
|
--link-1: #044e8e; /* lch(32, 42, 270 */
|
||||||
|
|
||||||
--figure-border: #367acd; /* lch(50, 50, 270) */
|
--figure-border: #367acd; /* lch(50, 50, 270) */
|
||||||
|
|
||||||
@ -122,12 +123,12 @@
|
|||||||
font-family: "Open Sans";
|
font-family: "Open Sans";
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
font-style: normal;
|
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-face {
|
||||||
font-family: JetBrainsMono;
|
font-family: JetBrainsMono;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
src: url("/font/jetbrainsmono/JetBrainsMono_wght-e190ee6595a3b9bd25278613a6f5d3766ee1a708f300ed44fa63dbe84051498f.woff2") format("woff2");
|
src: url("../font/jetbrainsmono/JetBrainsMono_wght-e190ee6595a3b9bd25278613a6f5d3766ee1a708f300ed44fa63dbe84051498f.woff2") format("woff2");
|
||||||
}
|
}
|
||||||
:root {
|
:root {
|
||||||
--font-sans: "Open Sans", "Noto Sans", sans-serif;
|
--font-sans: "Open Sans", "Noto Sans", sans-serif;
|
||||||
@ -136,6 +137,8 @@
|
|||||||
|
|
||||||
html {
|
html {
|
||||||
font-family: var(--font-sans);
|
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 {
|
pre, code, kbd, samp, textarea {
|
||||||
font-family: var(--font-mono);
|
font-family: var(--font-mono);
|
||||||
@ -681,21 +684,26 @@ table.markdown {
|
|||||||
border: 2px solid var(--text-1);
|
border: 2px solid var(--text-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.markdown thead {
|
table.markdown thead {
|
||||||
background-color: var(--background-2);
|
background-color: var(--background-2);
|
||||||
color: var(--text-2);
|
color: var(--text-2);
|
||||||
|
border-bottom: 2px solid var(--text-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.markdown th,
|
table.markdown th,
|
||||||
.markdown td {
|
table.markdown td {
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.markdown tbody tr:nth-child(odd) {
|
table.markdown :is(th, td) + :is(th, td) {
|
||||||
|
border-left: 2px solid var(--text-1);
|
||||||
|
}
|
||||||
|
|
||||||
|
table.markdown tbody tr:nth-child(odd) {
|
||||||
background-color: var(--background-0);
|
background-color: var(--background-0);
|
||||||
color: var(--text-0);
|
color: var(--text-0);
|
||||||
}
|
}
|
||||||
.markdown tbody tr:nth-child(even) {
|
table.markdown tbody tr:nth-child(even) {
|
||||||
background-color: var(--background-1);
|
background-color: var(--background-1);
|
||||||
color: var(--text-1);
|
color: var(--text-1);
|
||||||
}
|
}
|
||||||
|
18
i18n/en.yaml
18
i18n/en.yaml
@ -129,3 +129,21 @@ aria_langpicker_list:
|
|||||||
|
|
||||||
aria_table_of_contents:
|
aria_table_of_contents:
|
||||||
other: "table of contents"
|
other: "table of contents"
|
||||||
|
|
||||||
|
aria_share_twitter:
|
||||||
|
other: "share to twitter button"
|
||||||
|
|
||||||
|
aria_share_facebook:
|
||||||
|
other: "share to facebook button"
|
||||||
|
|
||||||
|
aria_share_linkedin:
|
||||||
|
other: "share to linkedin button"
|
||||||
|
|
||||||
|
aria_share_reddit:
|
||||||
|
other: "share to reddit button"
|
||||||
|
|
||||||
|
aria_share_telegram:
|
||||||
|
other: "share to telegram button"
|
||||||
|
|
||||||
|
aria_share_print:
|
||||||
|
other: "print article button"
|
||||||
|
18
i18n/es.yaml
18
i18n/es.yaml
@ -129,3 +129,21 @@ newer_post:
|
|||||||
|
|
||||||
# aria_table_of_contents:
|
# aria_table_of_contents:
|
||||||
# other: "table of contents"
|
# other: "table of contents"
|
||||||
|
|
||||||
|
# aria_share_twitter:
|
||||||
|
# other: "share to twitter button"
|
||||||
|
|
||||||
|
# aria_share_facebook:
|
||||||
|
# other: "share to facebook button"
|
||||||
|
|
||||||
|
# aria_share_linkedin:
|
||||||
|
# other: "share to linkedin button"
|
||||||
|
|
||||||
|
# aria_share_reddit:
|
||||||
|
# other: "share to reddit button"
|
||||||
|
|
||||||
|
# aria_share_telegram:
|
||||||
|
# other: "share to telegram button"
|
||||||
|
|
||||||
|
# aria_share_print:
|
||||||
|
# other: "print article button"
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
<a class="twitter-share"
|
<a class="twitter-share"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener"
|
rel="noopener"
|
||||||
|
aria-label="{{ i18n "aria_share_twitter" }}"
|
||||||
onclick="share_event('Twitter');"
|
onclick="share_event('Twitter');"
|
||||||
href="https://twitter.com/intent/tweet?url={{ .Permalink }}&text={{ .Title }}&via=bbaovanc">
|
href="https://twitter.com/intent/tweet?url={{ .Permalink }}&text={{ .Title }}&via=bbaovanc">
|
||||||
{{- partial "icon.html" "twitter" -}}
|
{{- partial "icon.html" "twitter" -}}
|
||||||
@ -13,6 +14,7 @@
|
|||||||
<a class="facebook-share"
|
<a class="facebook-share"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener"
|
rel="noopener"
|
||||||
|
aria-label="{{ i18n "aria_share_facebook" }}"
|
||||||
onclick="share_event('Facebook');"
|
onclick="share_event('Facebook');"
|
||||||
href="https://www.facebook.com/sharer.php?u={{ .Permalink }}">
|
href="https://www.facebook.com/sharer.php?u={{ .Permalink }}">
|
||||||
{{- partial "icon.html" "facebook" -}}
|
{{- partial "icon.html" "facebook" -}}
|
||||||
@ -23,6 +25,7 @@
|
|||||||
<a class="linkedin-share"
|
<a class="linkedin-share"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener"
|
rel="noopener"
|
||||||
|
aria-label="{{ i18n "aria_share_linkedin" }}"
|
||||||
onclick="share_event('LinkedIn');"
|
onclick="share_event('LinkedIn');"
|
||||||
href="https://www.linkedin.com/sharing/share-offsite/?url={{ .Permalink }}">
|
href="https://www.linkedin.com/sharing/share-offsite/?url={{ .Permalink }}">
|
||||||
{{- partial "icon.html" "linkedin" -}}
|
{{- partial "icon.html" "linkedin" -}}
|
||||||
@ -33,6 +36,7 @@
|
|||||||
<a class="reddit-share"
|
<a class="reddit-share"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener"
|
rel="noopener"
|
||||||
|
aria-label="{{ i18n "aria_share_reddit" }}"
|
||||||
onclick="share_event('Reddit');"
|
onclick="share_event('Reddit');"
|
||||||
href="https://reddit.com/submit?url={{ .Permalink }}&title={{ .Title }}">
|
href="https://reddit.com/submit?url={{ .Permalink }}&title={{ .Title }}">
|
||||||
{{- partial "icon.html" "reddit" -}}
|
{{- partial "icon.html" "reddit" -}}
|
||||||
@ -46,6 +50,7 @@
|
|||||||
<a class="telegram-share"
|
<a class="telegram-share"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener"
|
rel="noopener"
|
||||||
|
aria-label="{{ i18n "aria_share_telegram" }}"
|
||||||
onclick="share_event('Telegram');"
|
onclick="share_event('Telegram');"
|
||||||
href="https://t.me/share/url?url={{ .Permalink }}&text={{ .Title }}">
|
href="https://t.me/share/url?url={{ .Permalink }}&text={{ .Title }}">
|
||||||
{{- partial "icon.html" "telegram" -}}
|
{{- partial "icon.html" "telegram" -}}
|
||||||
@ -55,6 +60,7 @@
|
|||||||
|
|
||||||
{{ if .Site.Params.shareButtons.print }}
|
{{ if .Site.Params.shareButtons.print }}
|
||||||
<a class="print-share"
|
<a class="print-share"
|
||||||
|
aria-label="{{ i18n "aria_share_print" }}"
|
||||||
href="javascript:void(0)"
|
href="javascript:void(0)"
|
||||||
onclick="window.print(); share_event('Print');">
|
onclick="window.print(); share_event('Print');">
|
||||||
{{- partial "icon.html" "printer" -}}
|
{{- partial "icon.html" "printer" -}}
|
||||||
|
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