From 2d0788c3981328f1fbd9de4274d2925bf9586e03 Mon Sep 17 00:00:00 2001 From: Jieiku Date: Mon, 22 May 2023 22:39:16 -0700 Subject: Add multi-lingual Support --- templates/posts.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'templates/posts.html') diff --git a/templates/posts.html b/templates/posts.html index d4fc9e4..a353d15 100644 --- a/templates/posts.html +++ b/templates/posts.html @@ -18,7 +18,11 @@ {%- endblock seo %} {%- block content %} -{%- set section_item = get_section(path="_index.md") %} + {%- if lang == config.default_language %} + {%- set section_item = get_section(path="_index.md") %} + {%- else %} + {%- set section_item = get_section(path="_index." ~ lang ~ ".md") %} + {%- endif %}
{%- for year, posts in section_item.pages | group_by(attribute="year") %}

{{ year }}

-- cgit v1.3.1 From d9fb3248650404ad6d078eba39b8b91381b1ebed Mon Sep 17 00:00:00 2001 From: Jieiku Date: Mon, 22 May 2023 23:07:56 -0700 Subject: Fixes for uglyurls --- config.toml | 5 ++-- content/overview-code-blocks.fr.md | 51 +++++++++++++++++++++++++++++--------- content/overview-code-blocks.md | 51 +++++++++++++++++++++++++++++--------- sass/_font-extend-COPY-ME.sass | 8 +++--- sass/_font-extend.sass | 16 ++++++------ sass/_imports.scss | 20 +++++++-------- sass/function/_font.sass | 4 +-- sass/include/_embedded.scss | 4 +-- sass/include/_hr.scss | 2 +- sass/include/_icons.scss | 2 +- sass/include/_nav.scss | 2 +- sass/include/_sectioning.scss | 4 +-- sass/include/_typography.scss | 2 +- sass/include/_zola.scss | 4 +-- static/search.js | 8 +++++- templates/base.html | 12 ++++----- templates/categories/list.html | 4 +-- templates/categories/single.html | 2 +- templates/page.html | 4 +-- templates/posts.html | 2 +- templates/tags/list.html | 4 +-- templates/tags/single.html | 2 +- 22 files changed, 136 insertions(+), 77 deletions(-) (limited to 'templates/posts.html') diff --git a/config.toml b/config.toml index c2f6e26..8e53830 100644 --- a/config.toml +++ b/config.toml @@ -1,6 +1,6 @@ -# do NOT include a trailing slash on the base URL for web urls +# do NOT include a trailing slash on the base URL base_url = "https://abridge.netlify.app" -#base_url = "/home/jieiku/.dev/abridge/public/" # Usable site directly from disk, also set in [extra] uglyurls = true +#base_url = "/home/jieiku/.dev/abridge/public" # Usable site directly from disk, also set in [extra] uglyurls = true, and integrity = false default_language = "en" compile_sass = true minify_html = false @@ -79,6 +79,7 @@ uglyurls = false # if set to true then links are generated with the full path. e ### https://tera.netlify.app/docs#date ############################################################################### date_locale = "en_US" +language_code = "en-US" flag.en = "🇬🇧" flag.fr = "🇫🇷" #flag.es = "🇪🇸" diff --git a/content/overview-code-blocks.fr.md b/content/overview-code-blocks.fr.md index e527251..c8fbdf2 100644 --- a/content/overview-code-blocks.fr.md +++ b/content/overview-code-blocks.fr.md @@ -25,19 +25,46 @@ Voir [les docs](https://www.getzola.org/documentation/content/syntax-highlightin Si nous voulons, nous pouvons aussi `spécifier le code en ligne` ce qui est utile pour `les petites choses`. ### rust -```rust,linenos,hl_lines=3 -//! jelly-actix-web-starter - Un modèle de démarrage pour les projets actix-web qui ressemble beaucoup à Django. Évitez les trucs ennuyeux et avancez plus vite. - -use jelly::actix_web; -use mainlib; -use std::io; - -#[actix_web::main] -async fn main() -> io::Result<()> { - mainlib::main().await +```rust +fn main() { + let greetings = ["Hello", "Hola", "Bonjour", + "Ciao", "こんにちは", "안녕하세요", + "Cześć", "Olá", "Здравствуйте", + "Chào bạn", "您好", "Hallo", + "Hej", "Ahoj", "سلام", + "Hej", "Hallo", "Hei", + "Helló", "Hallo", "Buna ziua", + "Merhaba"]; + + for (num, greeting) in greetings.iter().enumerate() { + print!("{} : ", greeting); + match num { + 0 => println!("This code is editable and runnable!"),//en English + 1 => println!("¡Este código es editable y ejecutable!"),//es Spanish + 2 => println!("Ce code est modifiable et exécutable !"),//fr French + 3 => println!("Questo codice è modificabile ed eseguibile!"),//it Italian + 4 => println!("このコードは編集して実行出来ます!"),//jp Japanese + 5 => println!("여기에서 코드를 수정하고 실행할 수 있습니다!"),//ko Korean + 6 => println!("Ten kod można edytować oraz uruchomić!"),//pl Polish + 7 => println!("Este código é editável e executável!"),//pt Portuguese + 8 => println!("Этот код можно отредактировать и запустить!"),//ru Russian + 9 => println!("Bạn có thể edit và run code trực tiếp!"),//vi Vietnamese + 10 => println!("这段代码是可以编辑并且能够运行的!"),//zh Chinese + 11 => println!("Dieser Code kann bearbeitet und ausgeführt werden!"),//de German + 12 => println!("Den här koden kan redigeras och köras!"),//sv Swedish + 13 => println!("Tento kód můžete upravit a spustit"),//cs Czech + 14 => println!("این کد قابلیت ویرایش و اجرا دارد!"),//fa Persian + 15 => println!("Denne kode kan redigeres og køres!"),//da Danish + 16 => println!("Deze code is bewerkbaar en uitvoerbaar!"),//du Dutch + 17 => println!("Tämä koodi on muokattavissa ja ajettavissa!"),//fi Finnish + 18 => println!("Ez a kód szerkeszthető és futtatható!"),//hu Hungarian + 19 => println!("Denne koden er redigerbar og kjørbar!"),//no Norwegian + 20 => println!("Acest cod este editabil și rulabil!"),//ro Romanian + 21 => println!("Bu kod düzenlenebilir ve çalıştırılabilir!"),//tr Turkish + _ => {}, + } + } } - -let context = Context::new(); ``` ### TOML diff --git a/content/overview-code-blocks.md b/content/overview-code-blocks.md index 7c09e5b..d38ac9e 100644 --- a/content/overview-code-blocks.md +++ b/content/overview-code-blocks.md @@ -25,19 +25,46 @@ See [the docs](https://www.getzola.org/documentation/content/syntax-highlighting If we want, we can also `specify inline code` which is useful for `the small stuff`. ### rust -```rust,linenos,hl_lines=3 -//! jelly-actix-web-starter - A starter template for actix-web projects that feels very Django-esque. Avoid the boring stuff and move faster. - -use jelly::actix_web; -use mainlib; -use std::io; - -#[actix_web::main] -async fn main() -> io::Result<()> { - mainlib::main().await +```rust +fn main() { + let greetings = ["Hello", "Hola", "Bonjour", + "Ciao", "こんにちは", "안녕하세요", + "Cześć", "Olá", "Здравствуйте", + "Chào bạn", "您好", "Hallo", + "Hej", "Ahoj", "سلام", + "Hej", "Hallo", "Hei", + "Helló", "Hallo", "Buna ziua", + "Merhaba"]; + + for (num, greeting) in greetings.iter().enumerate() { + print!("{} : ", greeting); + match num { + 0 => println!("This code is editable and runnable!"),//en English + 1 => println!("¡Este código es editable y ejecutable!"),//es Spanish + 2 => println!("Ce code est modifiable et exécutable !"),//fr French + 3 => println!("Questo codice è modificabile ed eseguibile!"),//it Italian + 4 => println!("このコードは編集して実行出来ます!"),//jp Japanese + 5 => println!("여기에서 코드를 수정하고 실행할 수 있습니다!"),//ko Korean + 6 => println!("Ten kod można edytować oraz uruchomić!"),//pl Polish + 7 => println!("Este código é editável e executável!"),//pt Portuguese + 8 => println!("Этот код можно отредактировать и запустить!"),//ru Russian + 9 => println!("Bạn có thể edit và run code trực tiếp!"),//vi Vietnamese + 10 => println!("这段代码是可以编辑并且能够运行的!"),//zh Chinese + 11 => println!("Dieser Code kann bearbeitet und ausgeführt werden!"),//de German + 12 => println!("Den här koden kan redigeras och köras!"),//sv Swedish + 13 => println!("Tento kód můžete upravit a spustit"),//cs Czech + 14 => println!("این کد قابلیت ویرایش و اجرا دارد!"),//fa Persian + 15 => println!("Denne kode kan redigeres og køres!"),//da Danish + 16 => println!("Deze code is bewerkbaar en uitvoerbaar!"),//du Dutch + 17 => println!("Tämä koodi on muokattavissa ja ajettavissa!"),//fi Finnish + 18 => println!("Ez a kód szerkeszthető és futtatható!"),//hu Hungarian + 19 => println!("Denne koden er redigerbar og kjørbar!"),//no Norwegian + 20 => println!("Acest cod este editabil și rulabil!"),//ro Romanian + 21 => println!("Bu kod düzenlenebilir ve çalıştırılabilir!"),//tr Turkish + _ => {}, + } + } } - -let context = Context::new(); ``` ### TOML diff --git a/sass/_font-extend-COPY-ME.sass b/sass/_font-extend-COPY-ME.sass index 658ebbd..148f883 100644 --- a/sass/_font-extend-COPY-ME.sass +++ b/sass/_font-extend-COPY-ME.sass @@ -6,10 +6,10 @@ // or : import it with '@use "_font-extend-COPY-ME"' in whatever existing sass file you already load // delete the following two lines if you want to prepend your fonts... -$findFont-Main : "Segoe UI" // ← append custom MAIN font(s) AFTER this (full list @ '_variables.scss') -$findFont-Code : "Segoe UI Mono" // ← append custom CODE font(s) AFTER this -$fontExt-Main : ("MAIN FONT 1", "MAIN FONT 2") // list of custom MAIN font(s) to append -$fontExt-Code : ("CODE FONT 1", "CODE FONT 2") // list of custom CODE font(s) to append +$findFont-Main : "Segoe UI" // ← append custom MAIN font(s) AFTER this (full list @ '_variables.scss') +$findFont-Code : "Segoe UI Mono" // ← append custom CODE font(s) AFTER this +$fontExt-Main : ("MAIN FONT 1", "MAIN FONT 2") // list of custom MAIN font(s) to append +$fontExt-Code : ("CODE FONT 1", "CODE FONT 2") // list of custom CODE font(s) to append // ...and delete the corresponding variables ↓ @use "../themes/abridge/sass/font-extend" with($findFont-Main:$findFont-Main, $findFont-Code:$findFont-Code,$fontExt-Main:$fontExt-Main,$fontExt-Code:$fontExt-Code) diff --git a/sass/_font-extend.sass b/sass/_font-extend.sass index 35f7a50..9c612c4 100644 --- a/sass/_font-extend.sass +++ b/sass/_font-extend.sass @@ -1,14 +1,14 @@ @use "sass:meta" -@use "variables" as var -@use "function/font" as f +@use "variables" as var +@use "function/font" as f -$findFont-Main : null !default -$findFont-Code : null !default -$fontExt-Main : null !default -$fontExt-Code : null !default +$findFont-Main : null !default +$findFont-Code : null !default +$fontExt-Main : null !default +$fontExt-Code : null !default -$typeMain : meta.type-of($fontExt-Main) -$typeCode : meta.type-of($fontExt-Code) +$typeMain : meta.type-of($fontExt-Main) +$typeCode : meta.type-of($fontExt-Code) @if ($typeMain == 'string') or ($typeMain == 'list') @if ($findFont-Main == null) // prepend diff --git a/sass/_imports.scss b/sass/_imports.scss index b615533..95a58e3 100644 --- a/sass/_imports.scss +++ b/sass/_imports.scss @@ -15,6 +15,16 @@ // Config @forward "variables" as var-*; +@forward "colors/orange" as colors-*; +//@forward "colors/blue" as colors-*; +//@forward "colors/blueshade" as colors-*; + +//@use "fonts/Roboto"; +//@use "fonts/Roboto-Mono"; // Monospaced +//@use "fonts/Arimo"; +//@use "fonts/FiraCode"; // Monospaced +//@use "fonts/Abridge"; // Icon Font (don't recommend, CSS only icons are in my opinion better.) + // Includes - Sorted by importance/category (includes at top are needed most frequently) @use "include/document"; // html @use "include/typography"; // a, headings, p, ul, blockquote, ... @@ -40,13 +50,3 @@ //@use "include/grid"; // section infinite grid -- test/rework this similar to hnav and milligram in that it should collapse to a single column as the page becomes narrow //@use "include/misc"; // template, [hidden], dialog, canvas - -//@use "fonts/Roboto"; -//@use "fonts/Roboto-Mono"; // Monospaced -//@use "fonts/Arimo"; -//@use "fonts/FiraCode"; // Monospaced -//@use "fonts/Abridge"; // Icon Font (don't recommend, CSS only icons are in my opinion better.) - -@forward "colors/orange" as colors-*; -//@forward "colors/blue" as colors-*; -//@forward "colors/blueshade" as colors-*; diff --git a/sass/function/_font.sass b/sass/function/_font.sass index 95704c9..45f8fc3 100644 --- a/sass/function/_font.sass +++ b/sass/function/_font.sass @@ -2,8 +2,8 @@ @use "sass:list" @function font-append($base, $ext, $font-sep) - $base-pre : () - $base-pos : () + $base-pre : () + $base-pos : () $iFontSep : index($base, $font-sep) @if not $iFontSep // didn't find the font separator, return @debug "⚠ Failed to find '#{$font-sep}' in the list of '#{$base}'" diff --git a/sass/include/_embedded.scss b/sass/include/_embedded.scss index cff161e..bd1dbb8 100644 --- a/sass/include/_embedded.scss +++ b/sass/include/_embedded.scss @@ -4,13 +4,13 @@ .yvi {//youtube and vimeo iframe position: absolute; top: 0; - left: 0 + left: 0; } .yv {//youtube and vimeo div position: relative; padding-bottom: 56.25%; height: 0; - overflow: hidden + overflow: hidden; } img, video, diff --git a/sass/include/_hr.scss b/sass/include/_hr.scss index d6215dc..501bdf0 100644 --- a/sass/include/_hr.scss +++ b/sass/include/_hr.scss @@ -10,6 +10,6 @@ hr { height: 0; // 1 overflow: visible; // 2 border: none; - border-top: 1px solid var(--f1) + border-top: 1px solid var(--f1); } header hr, footer hr {border-top: 1px solid var(--c4)} diff --git a/sass/include/_icons.scss b/sass/include/_icons.scss index 511905d..907bcda 100644 --- a/sass/include/_icons.scss +++ b/sass/include/_icons.scss @@ -117,7 +117,7 @@ display: inline-block; //overflow: hidden; text-align: center; - vertical-align: middle + vertical-align: middle; } .svgs { width: var(--fs); diff --git a/sass/include/_nav.scss b/sass/include/_nav.scss index efad0ec..537f23d 100644 --- a/sass/include/_nav.scss +++ b/sass/include/_nav.scss @@ -128,7 +128,7 @@ footer nav { margin: var(--s2) 0 var(--s1); } div { - margin: auto // keeps top menu/search centered in mobile view + margin: auto; // keeps top menu/search centered in mobile view } } } diff --git a/sass/include/_sectioning.scss b/sass/include/_sectioning.scss index 36b0a8e..a84842d 100644 --- a/sass/include/_sectioning.scss +++ b/sass/include/_sectioning.scss @@ -77,12 +77,12 @@ header, main { padding-bottom: 0; margin-bottom: 0; hr { - margin:0.1rem 0 + margin:0.1rem 0; } } footer{ line-height: var(--lhh); hr, p { - margin: 0.1rem 0 .3rem + margin: 0.1rem 0 .3rem; } } diff --git a/sass/include/_typography.scss b/sass/include/_typography.scss index 8eaa7f9..7ed6096 100644 --- a/sass/include/_typography.scss +++ b/sass/include/_typography.scss @@ -46,7 +46,7 @@ a:hover { } h1 a, h2 a, main nav a { color: var(--f2); - text-decoration:none; + text-decoration: none; &:hover { color: var(--a3); text-decoration: none; diff --git a/sass/include/_zola.scss b/sass/include/_zola.scss index 2dd0b70..2b29a58 100644 --- a/sass/include/_zola.scss +++ b/sass/include/_zola.scss @@ -10,9 +10,7 @@ .s70 {font-size: .70em} .hpad {padding: 0 .2rem} .rpad {padding-right: .2rem} -.si { - font-size: 1.5em -} +.si {font-size: 1.5em} pre code[data-lang]::before { color: var(--f1); text-transform: uppercase; diff --git a/static/search.js b/static/search.js index 6aa7019..544ca07 100644 --- a/static/search.js +++ b/static/search.js @@ -166,6 +166,12 @@ Source: */ (function(){ var lang = document.documentElement.getAttribute("lang"); + var langOnly = lang.substring(0, 2); + var baseUrl = document.querySelector("meta[name='base']").getAttribute("content"); + if (baseUrl.slice(-1) == "/") { + baseUrl = baseUrl.slice(0, -1); + } + var index; searchinput.addEventListener('input', show_results, true); suggestions.addEventListener('click', accept_suggestion, true); @@ -173,7 +179,7 @@ Source: async function show_results(){ var initIndex = async function () { if (index === undefined) { - index = fetch("/search_index." + lang + ".json") + index = fetch(baseUrl + '/search_index.' + langOnly + '.json') .then( async function(response) { return await elasticlunr.Index.load(await response.json()); diff --git a/templates/base.html b/templates/base.html index 6a6927a..c29fe6e 100644 --- a/templates/base.html +++ b/templates/base.html @@ -3,7 +3,7 @@ {%- import "macros/page.html" as page_macros %} {%- import "macros/macros.html" as macros %} - + {{- macros_head::theme(config=config) }} {{- macros_head::stylesheets(config=config) }} @@ -37,16 +37,16 @@
diff --git a/templates/categories/single.html b/templates/categories/single.html index 1f5e48c..9e667b4 100644 --- a/templates/categories/single.html +++ b/templates/categories/single.html @@ -21,7 +21,7 @@ {%- for year, posts in term.pages | group_by(attribute="year") %}

{{ year }}

{%- for page in posts %} -

{{ page.title }} -

+

{{ page.title }} -

{%- endfor %} {%- endfor %} diff --git a/templates/page.html b/templates/page.html index 6d5188d..ba2b451 100644 --- a/templates/page.html +++ b/templates/page.html @@ -60,12 +60,12 @@

{%- if lang != config.default_language %}{{ trans(key="Index" | safe, lang=lang) }}{% else %}Index{% endif %}

{%- for h in toc %}
- {{ h.title }} + {{ h.title }}
{%- if h.children %} {%- for h2 in h.children %}
- - {{ h2.title }} + - {{ h2.title }}
{%- endfor %} {%- endif %} diff --git a/templates/posts.html b/templates/posts.html index a353d15..92c07dc 100644 --- a/templates/posts.html +++ b/templates/posts.html @@ -27,7 +27,7 @@ {%- for year, posts in section_item.pages | group_by(attribute="year") %}

{{ year }}

{%- for post in posts %} -

{{ post.title }} -

+

{{ post.title }} -

{%- endfor %} {%- endfor %} diff --git a/templates/tags/list.html b/templates/tags/list.html index c703761..a24ef09 100644 --- a/templates/tags/list.html +++ b/templates/tags/list.html @@ -22,9 +22,9 @@

{% for term in terms %} #{{ term.name }}{{ term.pages | length }} {% endfor %}

{%- for term in terms %} -

#{{ term.name }}

+

#{{ term.name }}

{%- for page in term.pages %} -

{{ page.title }} -

+

{{ page.title }} -

{%- endfor %} {%- endfor %} diff --git a/templates/tags/single.html b/templates/tags/single.html index ad8caeb..8984219 100644 --- a/templates/tags/single.html +++ b/templates/tags/single.html @@ -21,7 +21,7 @@ {%- for year, posts in term.pages | group_by(attribute="year") %}

{{ year }}

{%- for page in posts %} -

{{ page.title }} -

+

{{ page.title }} -

{%- endfor %} {%- endfor %} -- cgit v1.3.1 From 3af6d9131f6dfc138856d718ec96626344095ec8 Mon Sep 17 00:00:00 2001 From: Jieiku Date: Mon, 22 May 2023 23:24:44 -0700 Subject: Optimizations and Fixes --- COPY-FILES-TO-ROOT-SITE-SASS/abridge.scss | 128 ---- COPY-TO-ROOT-SASS/abridge.scss | 175 +++++ config.toml | 32 +- content/posts/_index.fr.md | 1 - content/posts/_index.md | 1 - netlify.toml | 2 +- package.json | 18 +- sass/_colors.scss | 50 -- sass/_syntax.scss | 39 -- sass/abridge.scss | 461 ++++++++----- sass/colors-syntax/_abridge.scss | 61 ++ sass/colors/_blue.scss | 50 ++ sass/colors/_blueshade.scss | 50 ++ sass/colors/_orange.scss | 50 ++ screenshot.png | Bin 119673 -> 109213 bytes static/abridge.min.js | 1 - static/codecopy.js | 76 -- static/elasticlunr.min.js | 10 - static/email.js | 16 - static/js/abridge.min.js | 1 + static/js/codecopy.js | 76 ++ static/js/elasticlunr.min.js | 10 + static/js/email.js | 16 + static/js/katex-auto-render.min.js | 1 + static/js/katex.min.js | 1 + static/js/katexbundle.min.js | 1 + static/js/katexoptions.js | 3 + static/js/lunr.da.js | 280 ++++++++ static/js/lunr.da.min.js | 1 + static/js/lunr.de.js | 380 ++++++++++ static/js/lunr.de.min.js | 1 + static/js/lunr.du.js | 444 ++++++++++++ static/js/lunr.du.min.js | 1 + static/js/lunr.es.js | 595 ++++++++++++++++ static/js/lunr.es.min.js | 1 + static/js/lunr.fi.js | 536 +++++++++++++++ static/js/lunr.fi.min.js | 1 + static/js/lunr.fr.js | 698 +++++++++++++++++++ static/js/lunr.fr.min.js | 1 + static/js/lunr.hu.js | 561 +++++++++++++++ static/js/lunr.hu.min.js | 1 + static/js/lunr.it.js | 612 +++++++++++++++++ static/js/lunr.it.min.js | 1 + static/js/lunr.jp.js | 118 ++++ static/js/lunr.jp.min.js | 1 + static/js/lunr.no.js | 253 +++++++ static/js/lunr.no.min.js | 1 + static/js/lunr.pt.js | 566 +++++++++++++++ static/js/lunr.pt.min.js | 1 + static/js/lunr.ro.js | 554 +++++++++++++++ static/js/lunr.ro.min.js | 1 + static/js/lunr.ru.js | 387 +++++++++++ static/js/lunr.ru.min.js | 1 + static/js/lunr.stemmer.support.js | 295 ++++++++ static/js/lunr.stemmer.support.min.js | 1 + static/js/lunr.sv.js | 252 +++++++ static/js/lunr.sv.min.js | 1 + static/js/lunr.tr.js | 1070 +++++++++++++++++++++++++++++ static/js/lunr.tr.min.js | 1 + static/js/lunr.zh.js | 156 +++++ static/js/lunr.zh.min.js | 1 + static/js/mathtex-script-type.min.js | 1 + static/js/prestyle.js | 4 + static/js/search.js | 366 ++++++++++ static/js/search_elasticlunr.min.js | 1 + static/js/search_stork.min.js | 1 + static/js/search_tinysearch.min.js | 1 + static/js/searchjava.js | 354 ++++++++++ static/js/searchjavaugly.js | 354 ++++++++++ static/js/stork.js | 2 + static/js/stork_config.js | 25 + static/js/theme.js | 4 + static/js/theme.min.js | 1 + static/js/theme_button.js | 7 + static/js/tinysearch.js | 244 +++++++ static/katex-auto-render.min.js | 1 - static/katex.min.js | 1 - static/katexbundle.min.js | 1 - static/katexoptions.js | 3 - static/lunr.da.js | 280 -------- static/lunr.de.js | 380 ---------- static/lunr.du.js | 444 ------------ static/lunr.es.js | 595 ---------------- static/lunr.fi.js | 536 --------------- static/lunr.fr.js | 698 ------------------- static/lunr.hu.js | 561 --------------- static/lunr.it.js | 612 ----------------- static/lunr.jp.js | 118 ---- static/lunr.no.js | 253 ------- static/lunr.pt.js | 566 --------------- static/lunr.ro.js | 554 --------------- static/lunr.ru.js | 387 ----------- static/lunr.stemmer.support.js | 295 -------- static/lunr.sv.js | 252 ------- static/lunr.tr.js | 1070 ----------------------------- static/lunr.zh.js | 156 ----- static/mathtex-script-type.min.js | 1 - static/prestyle.js | 4 - static/search.js | 369 ---------- static/search_elasticlunr.min.js | 1 - static/search_stork.min.js | 1 - static/search_tinysearch.min.js | 1 - static/stork.js | 2 - static/stork_config.js | 25 - static/theme.js | 4 - static/theme.min.js | 1 - static/theme_button.js | 7 - static/tinysearch.js | 244 ------- templates/base.html | 10 +- templates/index.html | 28 +- templates/macros/head.html | 71 +- templates/posts.html | 27 +- theme.toml | 2 +- 113 files changed, 10035 insertions(+), 8995 deletions(-) delete mode 100644 COPY-FILES-TO-ROOT-SITE-SASS/abridge.scss create mode 100644 COPY-TO-ROOT-SASS/abridge.scss delete mode 100644 sass/_colors.scss delete mode 100644 sass/_syntax.scss create mode 100644 sass/colors-syntax/_abridge.scss create mode 100644 sass/colors/_blue.scss create mode 100644 sass/colors/_blueshade.scss create mode 100644 sass/colors/_orange.scss delete mode 100644 static/abridge.min.js delete mode 100644 static/codecopy.js delete mode 100644 static/elasticlunr.min.js delete mode 100644 static/email.js create mode 100644 static/js/abridge.min.js create mode 100644 static/js/codecopy.js create mode 100644 static/js/elasticlunr.min.js create mode 100644 static/js/email.js create mode 100644 static/js/katex-auto-render.min.js create mode 100644 static/js/katex.min.js create mode 100644 static/js/katexbundle.min.js create mode 100644 static/js/katexoptions.js create mode 100644 static/js/lunr.da.js create mode 100644 static/js/lunr.da.min.js create mode 100644 static/js/lunr.de.js create mode 100644 static/js/lunr.de.min.js create mode 100644 static/js/lunr.du.js create mode 100644 static/js/lunr.du.min.js create mode 100644 static/js/lunr.es.js create mode 100644 static/js/lunr.es.min.js create mode 100644 static/js/lunr.fi.js create mode 100644 static/js/lunr.fi.min.js create mode 100644 static/js/lunr.fr.js create mode 100644 static/js/lunr.fr.min.js create mode 100644 static/js/lunr.hu.js create mode 100644 static/js/lunr.hu.min.js create mode 100644 static/js/lunr.it.js create mode 100644 static/js/lunr.it.min.js create mode 100644 static/js/lunr.jp.js create mode 100644 static/js/lunr.jp.min.js create mode 100644 static/js/lunr.no.js create mode 100644 static/js/lunr.no.min.js create mode 100644 static/js/lunr.pt.js create mode 100644 static/js/lunr.pt.min.js create mode 100644 static/js/lunr.ro.js create mode 100644 static/js/lunr.ro.min.js create mode 100644 static/js/lunr.ru.js create mode 100644 static/js/lunr.ru.min.js create mode 100644 static/js/lunr.stemmer.support.js create mode 100644 static/js/lunr.stemmer.support.min.js create mode 100644 static/js/lunr.sv.js create mode 100644 static/js/lunr.sv.min.js create mode 100644 static/js/lunr.tr.js create mode 100644 static/js/lunr.tr.min.js create mode 100644 static/js/lunr.zh.js create mode 100644 static/js/lunr.zh.min.js create mode 100644 static/js/mathtex-script-type.min.js create mode 100644 static/js/prestyle.js create mode 100644 static/js/search.js create mode 100644 static/js/search_elasticlunr.min.js create mode 100644 static/js/search_stork.min.js create mode 100644 static/js/search_tinysearch.min.js create mode 100644 static/js/searchjava.js create mode 100644 static/js/searchjavaugly.js create mode 100644 static/js/stork.js create mode 100644 static/js/stork_config.js create mode 100644 static/js/theme.js create mode 100644 static/js/theme.min.js create mode 100644 static/js/theme_button.js create mode 100644 static/js/tinysearch.js delete mode 100644 static/katex-auto-render.min.js delete mode 100644 static/katex.min.js delete mode 100644 static/katexbundle.min.js delete mode 100644 static/katexoptions.js delete mode 100644 static/lunr.da.js delete mode 100644 static/lunr.de.js delete mode 100644 static/lunr.du.js delete mode 100644 static/lunr.es.js delete mode 100644 static/lunr.fi.js delete mode 100644 static/lunr.fr.js delete mode 100644 static/lunr.hu.js delete mode 100644 static/lunr.it.js delete mode 100644 static/lunr.jp.js delete mode 100644 static/lunr.no.js delete mode 100644 static/lunr.pt.js delete mode 100644 static/lunr.ro.js delete mode 100644 static/lunr.ru.js delete mode 100644 static/lunr.stemmer.support.js delete mode 100644 static/lunr.sv.js delete mode 100644 static/lunr.tr.js delete mode 100644 static/lunr.zh.js delete mode 100644 static/mathtex-script-type.min.js delete mode 100644 static/prestyle.js delete mode 100644 static/search.js delete mode 100644 static/search_elasticlunr.min.js delete mode 100644 static/search_stork.min.js delete mode 100644 static/search_tinysearch.min.js delete mode 100644 static/stork.js delete mode 100644 static/stork_config.js delete mode 100644 static/theme.js delete mode 100644 static/theme.min.js delete mode 100644 static/theme_button.js delete mode 100644 static/tinysearch.js (limited to 'templates/posts.html') diff --git a/COPY-FILES-TO-ROOT-SITE-SASS/abridge.scss b/COPY-FILES-TO-ROOT-SITE-SASS/abridge.scss deleted file mode 100644 index a552adc..0000000 --- a/COPY-FILES-TO-ROOT-SITE-SASS/abridge.scss +++ /dev/null @@ -1,128 +0,0 @@ -@use '../themes/abridge/sass/abridge' with ( - /// LINES HERE END WITH COMMA AFTER THE VALUE! - $abridgeMode:"switcher",//valid values: switcher, auto, dark, light - - /// Enable a centered viewport for
,
,