From a49f2326a4f2217366fee2eb04a271361a0f9fc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deniz=20Ak=C5=9Fim=C5=9Fek?= Date: Sun, 30 Apr 2023 14:29:54 +0300 Subject: [PATCH] website reshuffling --- book/COLOPHON.adoc | 13 ------------- www/_includes/chapter.njk | 2 +- www/_includes/global-footer.njk | 12 ++++-------- www/_includes/layout.njk | 17 ++++++++++++++++- www/_plugins/postprocess-asciidoc.ts | 2 +- 5 files changed, 22 insertions(+), 24 deletions(-) delete mode 100644 book/COLOPHON.adoc diff --git a/book/COLOPHON.adoc b/book/COLOPHON.adoc deleted file mode 100644 index 93b1586..0000000 --- a/book/COLOPHON.adoc +++ /dev/null @@ -1,13 +0,0 @@ -:layout: frontmatter.njk -:url: /colophon/ - -= Colophon = - - Text:: Authored in https://asciidoc.org[AsciiDoc (markup language)]. - - Website:: Generated with https://lume.land[Lume (static site generator)], - styled with https://missing.style[Missing.css (stylesheet)]. - - Fonts:: Headings in https://fontlibrary.org/en/font/chicagoflf[ChicagoFLF], - body text in https://www.type-together.com/literata-font[Literata], - code in https://berkeleygraphics.com/typefaces/berkeley-mono/[Berkeley Mono]. diff --git a/www/_includes/chapter.njk b/www/_includes/chapter.njk index e1901cc..5e61007 100644 --- a/www/_includes/chapter.njk +++ b/www/_includes/chapter.njk @@ -57,7 +57,7 @@ layout: layout.njk {{ 'Part ' + loop.index + ':' if isPart }} {{ sect.getTitle() | safe }} - {{ toc(sect, level + 1) if level < 2 and sect.getSections().length > 0 }} + {{ toc(sect, level + 1, url=url) if level < 2 and sect.getSections().length > 0 }} {% endfor %} diff --git a/www/_includes/global-footer.njk b/www/_includes/global-footer.njk index 2a1b90a..a76624e 100644 --- a/www/_includes/global-footer.njk +++ b/www/_includes/global-footer.njk @@ -1,10 +1,6 @@ -