aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJieiku2022-08-25 21:15:41 -0700
committerJieiku2022-08-25 21:15:41 -0700
commitc839352bbe15f03dbeb0d1182c6a20d91d03eee6 (patch)
tree81823bc2defb4bdde7b6b32d698f03352037fbf1
parentc7b914505b6505b013610cc71e3b50d68c4a5473 (diff)
downloadabridge-c839352bbe15f03dbeb0d1182c6a20d91d03eee6.tar.gz
abridge-c839352bbe15f03dbeb0d1182c6a20d91d03eee6.tar.bz2
abridge-c839352bbe15f03dbeb0d1182c6a20d91d03eee6.zip
Option Menu items in new tab _blank
-rw-r--r--config.toml18
-rw-r--r--static/stork.stbin298851 -> 299211 bytes
-rw-r--r--static/stork.wasmbin345812 -> 345812 bytes
-rw-r--r--static/tinysearch_engine_bg.wasmbin97522 -> 97453 bytes
-rw-r--r--templates/base.html6
5 files changed, 12 insertions, 12 deletions
diff --git a/config.toml b/config.toml
index 62fb394..48ff03b 100644
--- a/config.toml
+++ b/config.toml
@@ -55,7 +55,7 @@ meta_post = { position="top", size="s95", author=true, readtime=false, readstrin
footer_size = "s90" # size: s95, s90, s85, s80, s75, s70, false(full size)
footer_credit = true
-#footer_credit_override = '<p class="s90">Powered by <a href="https://www.getzola.org/">Zola</a> &#38; <a href="https://github.com/Jieiku/abridge/">Abridge</a></p>'
+#footer_credit_override = '<p class="s90">Powered by <a href="https://www.getzola.org/" target="_blank">Zola</a> &#38; <a href="https://github.com/Jieiku/abridge/" target="_blank">Abridge</a></p>'
#uncomment one of the two lines, or neither, depending on which type of logo you want to use:
#logo = { file="logo.svg", width="32", height="32", alt="Abridge", text="bridge" }
@@ -69,16 +69,16 @@ headhr = false # show or hide horizontal rule below header
foothr = true # show or hide horizontal rule above footer
menu = [
- {url = "/about/", name = "About", slash = true},
- {url = "/posts/", name = "Posts", slash = true},
- {url = "/categories/", name = "Categories", slash = true},
- {url = "/tags/", name = "Tags", slash = true},
+ {url = "/about/", name = "About", slash = true, blank = false},
+ {url = "/posts/", name = "Posts", slash = true, blank = false},
+ {url = "/categories/", name = "Categories", slash = true, blank = false},
+ {url = "/tags/", name = "Tags", slash = true, blank = false},
]
menu_footer = [
- {url = "/about/", name = "About", slash = true},
- {url = "/contact/", name = "Contact", slash = true},
- {url = "/privacy/", name = "Privacy", slash = true},
- {url = "/sitemap.xml", name = "Sitemap", slash = false},
+ {url = "/about/", name = "About", slash = true, blank = false},
+ {url = "/contact/", name = "Contact", slash = true, blank = false},
+ {url = "/privacy/", name = "Privacy", slash = true, blank = false},
+ {url = "/sitemap.xml", name = "Sitemap", slash = false, blank = true},
]
# Security Headers should preferably be set by your webserver (Nginx, Apache) https://observatory.mozilla.org https://csp-evaluator.withgoogle.com/
diff --git a/static/stork.st b/static/stork.st
index 8c72dbc..ae5e405 100644
--- a/static/stork.st
+++ b/static/stork.st
Binary files differ
diff --git a/static/stork.wasm b/static/stork.wasm
index ea41d2f..ce550ce 100644
--- a/static/stork.wasm
+++ b/static/stork.wasm
Binary files differ
diff --git a/static/tinysearch_engine_bg.wasm b/static/tinysearch_engine_bg.wasm
index 6524c13..9df2dea 100644
--- a/static/tinysearch_engine_bg.wasm
+++ b/static/tinysearch_engine_bg.wasm
Binary files differ
diff --git a/templates/base.html b/templates/base.html
index 81dd59a..0177ea1 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -52,7 +52,7 @@
<div>
<ul>
{%- for i in config.extra.menu -%}
- <li> <h2><a href="{{ get_url(path=i.url, trailing_slash=i.slash) }}{%- if i.slash and config.extra.uglyurls %}index.html{%- endif %}">{{ i.name | safe }}</a></h2> </li>
+ <li> <h2><a href="{{ get_url(path=i.url, trailing_slash=i.slash) }}{%- if i.slash and config.extra.uglyurls %}index.html{%- endif %}"{% if i.blank %} target="_blank"{% endif %}>{{ i.name | safe }}</a></h2> </li>
{%- endfor -%}
{%- if config.extra.js_theme -%}
<li class="js">{%- if config.extra.icon_adjust -%}<i type="reset" id="mode" class="{{ config.extra.icon_adjust }}"></i>{%- else -%}<i type="reset" id="mode" class="mode">&#9728;</i>{%- endif -%}</li>
@@ -102,7 +102,7 @@
<nav>
<ul>
{%- for i in config.extra.menu_footer -%}
- <li{%- if config.extra.footer_size %} class="{{ config.extra.footer_size }}"{% endif %}> <a href="{{ get_url(path=i.url, trailing_slash=i.slash) }}{%- if i.slash and config.extra.uglyurls %}index.html{%- endif %}"> {{ i.name | safe }} </a> </li>
+ <li{%- if config.extra.footer_size %} class="{{ config.extra.footer_size }}"{% endif %}> <a href="{{ get_url(path=i.url, trailing_slash=i.slash) }}{%- if i.slash and config.extra.uglyurls %}index.html{%- endif %}"{% if i.blank %} target="_blank"{% endif %}> {{ i.name | safe }} </a> </li>
{%- endfor -%}
</ul>
</nav>
@@ -110,7 +110,7 @@
{%- if config.extra.footer_credit_override %}
{{ config.extra.footer_credit_override | safe }}
{%- else %}
- <p{%- if config.extra.footer_size %} class="{{ config.extra.footer_size }}"{% endif %}>Powered by <a href="https://www.getzola.org/">Zola</a> and <a href="https://github.com/jieiku/abridge/">Abridge</a></p>
+ <p{%- if config.extra.footer_size %} class="{{ config.extra.footer_size }}"{% endif %}>Powered by <a href="https://www.getzola.org/" target="_blank">Zola</a> and <a href="https://github.com/jieiku/abridge/" target="_blank">Abridge</a></p>
{%- endif %}
{%- endif %}
</div>