Skip to content

Commit

Permalink
post: enlightmentware (#68)
Browse files Browse the repository at this point in the history
Closes #59.
  • Loading branch information
roman-kashitsyn authored May 20, 2024
1 parent d13869a commit 44610af
Show file tree
Hide file tree
Showing 8 changed files with 281 additions and 0 deletions.
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.

0 comments on commit 44610af

Please sign in to comment.