4 Commits

Author SHA1 Message Date
732d32b97b Remove Jost 2023-01-22 20:42:21 -06:00
4d1a0d6be2 Jost 2023-01-22 20:01:33 -06:00
ac580e1995 WIP 2023-01-22 18:57:52 -06:00
cee1cd3a82 WIP 2023-01-22 18:57:52 -06:00
17 changed files with 43 additions and 92 deletions

View File

@ -100,7 +100,6 @@
--text-gray-1: #5e5e5e; /* lch(40, 0, X) */
--link-0: #2061a8; /* lch(40, 45, 270) */
--link-1: #044e8e; /* lch(32, 42, 270 */
--figure-border: #367acd; /* lch(50, 50, 270) */
@ -113,7 +112,6 @@
@media print {
:root {
--background-0: #fff;
--text-0: #000;
}
}
@ -124,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;
@ -138,8 +136,6 @@
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);
@ -175,18 +171,15 @@ pre > code {
.page-list .post,
.series-taxonomy-list .series-taxonomy,
.series-taxonomy .post {
padding: 24px;
padding-top: 8px;
padding-left: 24px;
padding-right: 24px;
padding-bottom: 24px;
border-radius: 12px;
background-color: var(--background-1);
color: var(--text-1);
}
.post > .post-title,
.series-taxonomy > .post-title,
.author > .author-name {
margin-top: 0;
}
.post-series-position {
position: relative;
float: right;
@ -688,26 +681,21 @@ table.markdown {
border: 2px solid var(--text-1);
}
table.markdown thead {
.markdown thead {
background-color: var(--background-2);
color: var(--text-2);
border-bottom: 2px solid var(--text-1);
}
table.markdown th,
table.markdown td {
.markdown th,
.markdown td {
padding: 8px;
}
table.markdown :is(th, td) + :is(th, td) {
border-left: 2px solid var(--text-1);
}
table.markdown tbody tr:nth-child(odd) {
.markdown tbody tr:nth-child(odd) {
background-color: var(--background-0);
color: var(--text-0);
}
table.markdown tbody tr:nth-child(even) {
.markdown tbody tr:nth-child(even) {
background-color: var(--background-1);
color: var(--text-1);
}
@ -1000,9 +988,9 @@ li.disabled > .page-link:hover {
max-width: 100%;
}
table,
aside,
.code-block {
pre {
white-space: pre-wrap;
overflow-wrap: anywhere;
break-inside: avoid;
}

View File

@ -129,21 +129,3 @@ aria_langpicker_list:
aria_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"

View File

@ -129,21 +129,3 @@ newer_post:
# aria_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"

View File

@ -1,4 +1,4 @@
{{ i18n "credit_comment" | safeHTML }}
{{ partial "credit.html" }}
<!DOCTYPE html>
<html lang="{{ .Language.Lang }}">
{{ partial "head.html" . }}

View File

@ -13,7 +13,7 @@
{{ with .Sections }}
<div class="sections">
{{ range . }}
{{ .Render "summary" }}
{{ .Render "summary/section" }}
{{ end }}
</div>
{{ end }}

View File

@ -0,0 +1,21 @@
<h2 class="post-title">
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
</h2>
{{ partial "post-metadata/short.html" . }}
{{ with .Resources.GetMatch "feature" }}
<div class="post-media">
{{ partial "figure.html" (dict "src" .) }}
</div>
{{ end }}
<div class="post-description">
{{ partial "description-or-summary.html" . }}
</div>
<div class="readmore">
<a href="{{ .Permalink }}">{{ i18n "read_more" }} &rarr;</a>
</div>

View File

@ -18,7 +18,7 @@
{{ .Scratch.Set "series_position" $i }}
{{ .Scratch.Set "series_total" $total }}
<article class="post">
{{ .Render "summary" }}
{{ .Render "summary/series_post" }}
</article>
{{ end }}
</div>

View File

@ -12,7 +12,7 @@
{{ with .Paginator.Pages }}
{{ range . }}
<article class="post">
{{ .Render "summary" }}
{{ .Render "summary/author" }}
</article>
{{ end }}
{{ else }}

View File

@ -0,0 +1 @@
{{ i18n "credit_comment" | safeHTML }}

View File

@ -2,7 +2,7 @@
{{ with . }}
{{ range . }}
<article class="post">
{{ .Render "summary" }}
{{ .Render "summary/post" }}
</article>
{{ end }}
{{ else }}

View File

@ -3,7 +3,6 @@
<a class="twitter-share"
target="_blank"
rel="noopener"
aria-label="{{ i18n "aria_share_twitter" }}"
onclick="share_event('Twitter');"
href="https://twitter.com/intent/tweet?url={{ .Permalink }}&text={{ .Title }}&via=bbaovanc">
{{- partial "icon.html" "twitter" -}}
@ -14,7 +13,6 @@
<a class="facebook-share"
target="_blank"
rel="noopener"
aria-label="{{ i18n "aria_share_facebook" }}"
onclick="share_event('Facebook');"
href="https://www.facebook.com/sharer.php?u={{ .Permalink }}">
{{- partial "icon.html" "facebook" -}}
@ -25,7 +23,6 @@
<a class="linkedin-share"
target="_blank"
rel="noopener"
aria-label="{{ i18n "aria_share_linkedin" }}"
onclick="share_event('LinkedIn');"
href="https://www.linkedin.com/sharing/share-offsite/?url={{ .Permalink }}">
{{- partial "icon.html" "linkedin" -}}
@ -36,7 +33,6 @@
<a class="reddit-share"
target="_blank"
rel="noopener"
aria-label="{{ i18n "aria_share_reddit" }}"
onclick="share_event('Reddit');"
href="https://reddit.com/submit?url={{ .Permalink }}&title={{ .Title }}">
{{- partial "icon.html" "reddit" -}}
@ -50,7 +46,6 @@
<a class="telegram-share"
target="_blank"
rel="noopener"
aria-label="{{ i18n "aria_share_telegram" }}"
onclick="share_event('Telegram');"
href="https://t.me/share/url?url={{ .Permalink }}&text={{ .Title }}">
{{- partial "icon.html" "telegram" -}}
@ -60,7 +55,6 @@
{{ if .Site.Params.shareButtons.print }}
<a class="print-share"
aria-label="{{ i18n "aria_share_print" }}"
href="javascript:void(0)"
onclick="window.print(); share_event('Print');">
{{- partial "icon.html" "printer" -}}

View File

@ -12,7 +12,7 @@
{{ with .Pages }}
{{ range . }}
<article class="series-taxonomy">
{{ .Render "summary" }}
{{ .Render "summary/series" }}
</article>
{{ end }}
{{ else }}

View File

@ -1,17 +0,0 @@
{{ $path := "" }}
{{ $markdown := false }}
{{ if .IsNamedParams }}
{{ $path = .Get "path" }}
{{ with .Get "markdown" }}
{{ $markdown = . }}
{{ end }}
{{ else }}
{{ $path = .Get 0 }}
{{ end }}
{{ if $markdown }}
{{ $path | readFile | .Page.RenderString (dict "display" "block") }}
{{ else }}
{{ $path | readFile }}
{{ end }}

View File

@ -5,6 +5,6 @@
{{ $class = delimit (slice $class .) " " }}
{{ end }}
{{ $htmlTable := .Inner | .Page.RenderString (dict "display" "block") }}
{{ $htmlTable := .Inner | markdownify }}
{{ $new := printf `<table class="%s">` $class }}
{{ (replace $htmlTable "<table>" $new) | safeHTML }}