aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.toml5
-rw-r--r--content/overview-code-blocks.fr.md49
-rw-r--r--content/overview-code-blocks.md49
-rw-r--r--sass/_font-extend-COPY-ME.sass8
-rw-r--r--sass/_font-extend.sass16
-rw-r--r--sass/_imports.scss20
-rw-r--r--sass/function/_font.sass4
-rw-r--r--sass/include/_embedded.scss4
-rw-r--r--sass/include/_hr.scss2
-rw-r--r--sass/include/_icons.scss2
-rw-r--r--sass/include/_nav.scss2
-rw-r--r--sass/include/_sectioning.scss4
-rw-r--r--sass/include/_typography.scss2
-rw-r--r--sass/include/_zola.scss4
-rw-r--r--static/search.js8
-rw-r--r--templates/base.html12
-rw-r--r--templates/categories/list.html4
-rw-r--r--templates/categories/single.html2
-rw-r--r--templates/page.html4
-rw-r--r--templates/posts.html2
-rw-r--r--templates/tags/list.html4
-rw-r--r--templates/tags/single.html2
22 files changed, 134 insertions, 75 deletions
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.
+```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"];
-use jelly::actix_web;
-use mainlib;
-use std::io;
-
-#[actix_web::main]
-async fn main() -> io::Result<()> {
- mainlib::main().await
+ 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.
+```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"];
-use jelly::actix_web;
-use mainlib;
-use std::io;
-
-#[actix_web::main]
-async fn main() -> io::Result<()> {
- mainlib::main().await
+ 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 %}
<!DOCTYPE html>
-<html lang="{{ lang }}">
+<html lang="{%- if lang != config.default_language %}{{ lang }}{% else %}{{ config.extra.language_code | default(value=lang) }}{% endif %}">
<head>
{{- macros_head::theme(config=config) }}
{{- macros_head::stylesheets(config=config) }}
@@ -37,16 +37,16 @@
<nav>
<div>
{%- if config.extra.logo -%}
- <h1><a href="{{ get_url(path="/", lang=lang) }}{%- if config.extra.uglyurls %}index.html{%- endif %}">
+ <h1><a href="{{ get_url(path="/", lang=lang) }}{%- if config.extra.uglyurls %}/index.html{%- endif %}">
{%- if config.extra.logo.file -%}
<img src="{{ config.base_url | safe }}/{{ config.extra.logo.file | safe }}"{%- if config.extra.logo.alt %} alt="{{ config.extra.logo.alt | safe }}"{%- endif %}{%- if config.extra.logo.width %} width="{{ config.extra.logo.width | safe }}"{%- endif %}{%- if config.extra.logo.height %} height="{{ config.extra.logo.height | safe }}"{%- endif %} />
{%- endif -%}
{%- if config.extra.logo.text -%}{{ config.extra.logo.text | safe }}{%- endif -%}
</a></h1>
{%- elif config.extra.textlogo -%}
- <h1><a href="{{ get_url(path="/", lang=lang) }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ config.extra.textlogo | safe }}</a></h1>
+ <h1><a href="{{ get_url(path="/", lang=lang) }}{%- if config.extra.uglyurls %}/index.html{%- endif %}">{{ config.extra.textlogo | safe }}</a></h1>
{%- elif config.title -%}
- <h1><a href="{{ get_url(path="/", lang=lang) }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ config.title | safe }}</a></h1>
+ <h1><a href="{{ get_url(path="/", lang=lang) }}{%- if config.extra.uglyurls %}/index.html{%- endif %}">{{ config.title | safe }}</a></h1>
{%- endif -%}
</div>
<div>
@@ -75,9 +75,9 @@
{%- for lcode,flag in config.extra.flag -%}
{%- if lang != lcode -%}
{%- if lcode == config.default_language -%}
- <a type="Button" href="{{ current_url | replace(from=current_path | truncate(length=4, end=""), to="/") }}">{{ flag }}</a><br />
+ <a type="Button" href="{{ current_url | replace(from=current_path | truncate(length=4, end=""), to="/") }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ flag }}</a><br />
{%- else -%}
- <a type="Button" href="{{ current_url | replace(from=config.base_url, to=config.base_url ~ "/" ~ lcode) }}">{{ flag }}</a><br />
+ <a type="Button" href="{{ current_url | replace(from=config.base_url, to=config.base_url ~ "/" ~ lcode) }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ flag }}</a><br />
{%- endif -%}
{%- endif -%}
{%- endfor -%}
diff --git a/templates/categories/list.html b/templates/categories/list.html
index eca6da3..2e325c9 100644
--- a/templates/categories/list.html
+++ b/templates/categories/list.html
@@ -22,9 +22,9 @@
<p>{% for term in terms %} [<a href="#{{ term.name }}">{{ term.name }}</a>]<sup>{{ term.pages | length }}</sup> {% endfor %}</p>
</div>
{%- for term in terms %}
- <h2 id="{{ term.name }}"><a href="{{ term.permalink | safe }}">{{ term.name }}</a></h2>
+ <h2 id="{{ term.name }}"><a href="{{ term.permalink | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ term.name }}</a></h2>
{%- for page in term.pages %}
- <p><a href="{{ page.permalink | safe }}">{{ page.title }}</a> - <time datetime="{{ page.date }}">{{ page.date | date(format="%F") }}</time></p>
+ <p><a href="{{ page.permalink | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ page.title }}</a> - <time datetime="{{ page.date }}">{{ page.date | date(format="%F") }}</time></p>
{%- endfor %}
{%- endfor %}
</div>
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") %}
<h3>{{ year }}</h3>
{%- for page in posts %}
- <p><a href="{{ page.permalink | safe }}">{{ page.title }}</a> - <time datetime="{{ page.date }}">{{ page.date | date(format="%F") }}</time></p>
+ <p><a href="{{ page.permalink | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ page.title }}</a> - <time datetime="{{ page.date }}">{{ page.date | date(format="%F") }}</time></p>
{%- endfor %}
{%- endfor %}
</div>
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 @@
<h3>{%- if lang != config.default_language %}{{ trans(key="Index" | safe, lang=lang) }}{% else %}Index{% endif %}</h3>
{%- for h in toc %}
<div class="toc-item">
- <a class="subtext" href="{{h.permalink | safe}}">{{ h.title }}</a>
+ <a class="subtext" href="#{{h.id | safe}}">{{ h.title }}</a>
</div>
{%- if h.children %}
{%- for h2 in h.children %}
<div class="toc-item-child">
- <a class="subtext" href="{{h2.permalink | safe}}"><small>- {{ h2.title }}</small></a>
+ <a class="subtext" href="#{{h2.id | safe}}"><small>- {{ h2.title }}</small></a>
</div>
{%- 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") %}
<h2>{{ year }}</h2>
{%- for post in posts %}
- <p><a href="{{ post.permalink | safe }}">{{ post.title }}</a> - <time datetime="{{ post.date }}">{{ post.date | date(format="%F") }}</time></p>
+ <p><a href="{{ post.permalink | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ post.title }}</a> - <time datetime="{{ post.date }}">{{ post.date | date(format="%F") }}</time></p>
{%- endfor %}
{%- endfor %}
</div>
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 @@
<p>{% for term in terms %} #<a href="#{{ term.name }}">{{ term.name }}</a><sup>{{ term.pages | length }}</sup> {% endfor %}</p>
</div>
{%- for term in terms %}
- <h2 id="{{ term.name }}">#<a href="{{ term.permalink | safe }}">{{ term.name }}</a></h2>
+ <h2 id="{{ term.name }}">#<a href="{{ term.permalink | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ term.name }}</a></h2>
{%- for page in term.pages %}
- <p><a href="{{ page.permalink | safe }}">{{ page.title }}</a> - <time datetime="{{ page.date }}">{{ page.date | date(format="%F") }}</time></p>
+ <p><a href="{{ page.permalink | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ page.title }}</a> - <time datetime="{{ page.date }}">{{ page.date | date(format="%F") }}</time></p>
{%- endfor %}
{%- endfor %}
</div>
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") %}
<h3>{{ year }}</h3>
{%- for page in posts %}
- <p><a href="{{ page.permalink | safe }}">{{ page.title }}</a> - <time datetime="{{ page.date }}">{{ page.date | date(format="%F") }}</time></p>
+ <p><a href="{{ page.permalink | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ page.title }}</a> - <time datetime="{{ page.date }}">{{ page.date | date(format="%F") }}</time></p>
{%- endfor %}
{%- endfor %}
</div>