Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

post: enlightmentware #68

Merged
merged 2 commits into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions blogware/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,12 @@ func renderGenericCmd(rc *RenderingCtx, buf *strings.Builder, cmd Cmd) error {
return err
}
buf.WriteString("</span>")
case SymKbd:
buf.WriteString("<kbd>")
if err := renderGenericSeq(&newRc, buf, cmd.args[0]); err != nil {
return err
}
buf.WriteString("</kbd>")
case SymHref:
var dst string
if err := cmd.ArgText(0, &dst); err != nil {
Expand Down
1 change: 1 addition & 0 deletions blogware/symtab.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ var (
SymBlockquote = BuiltinCmd("blockquote", ArgTypeSeq, ArgTypeSeq)
SymMulticolumn = BuiltinCmd("multicolumn", ArgTypeNum, ArgTypeAlignSpec, ArgTypeSeq)
SymTerm = BuiltinCmd("term", ArgTypeSeq, ArgTypeSeq)
SymKbd = BuiltinCmd("kbd", ArgTypeSeq)

// Builtin replacement commands
SymLdots = BuiltinReplacement("ldots", "…")
Expand Down
14 changes: 14 additions & 0 deletions css/tufte.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,16 @@
font-display: swap;
}

@font-face {
font-family: "Libertinus Keyboard";
font-style: normal;
font-weight: normal;
src: local("Libertinus Keyboard"),
url("/fonts/LibertinusKeyboard-Regular.otf") format("opentype"),
url("/fonts/LibertinusKeyboard-Regular.woff2") format("woff2");
font-display: swap;
}

@font-face {
font-family: "Neo Euler";
font-style: normal;
Expand Down Expand Up @@ -358,6 +368,10 @@ pre.apl>code {
font-size: 1.03rem;
}

kbd {
font-family: "Libertinus Keyboard";
}

/* Tufte CSS styles */
html {
font-size: 15px;
Expand Down
Binary file added fonts/LibertinusKeyboard-Regular.otf
Binary file not shown.
Binary file added fonts/LibertinusKeyboard-Regular.woff2
Binary file not shown.
1 change: 1 addition & 0 deletions posts/18-if-composers-were-hackers.tex
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
\modified{2023-04-01}

\keyword{programming}
\keyword{personal}
\keyword{glasperlenspiel}

\begin{document}
Expand Down
1 change: 1 addition & 0 deletions posts/23-numeric-tower-fiasco.tex
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
\modified{2023-11-22}
\keyword{oop}
\keyword{programming}
\keyword{personal}

\begin{document}

Expand Down
258 changes: 258 additions & 0 deletions posts/28-enlightenmentware.tex

Large diffs are not rendered by default.

Loading