summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2020-06-07 15:57:26 +0200
committerHarald Eilertsen <haraldei@anduin.net>2020-06-07 15:57:26 +0200
commitef2657c050ab6d1ed41eb9a3b2c7a9a3925b35ad (patch)
tree33d7c9843c526ecd0858298a83914de723afc037 /templates
parent982b7ad783f0135af08700465f0ded1a4371000f (diff)
downloadrabalderz-ef2657c050ab6d1ed41eb9a3b2c7a9a3925b35ad.tar.gz
rabalderz-ef2657c050ab6d1ed41eb9a3b2c7a9a3925b35ad.tar.bz2
rabalderz-ef2657c050ab6d1ed41eb9a3b2c7a9a3925b35ad.zip
Fix issues with paths on duburls.
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html2
-rw-r--r--templates/shortcodes/figure.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/base.html b/templates/base.html
index 0724201..1d7b588 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -8,7 +8,7 @@
<title>{% if page.title %}{{ page.title }}{% else %}{{ config.title }}{% endif %}</title>
<meta name="description" content="{{ config.description }}">
- <link rel="stylesheet" type="text/css" href="/styles.css">
+ <link rel="stylesheet" type="text/css" href="{{ get_url(path="/styles.css") | safe }}">
{# <link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}"> #}
</head>
diff --git a/templates/shortcodes/figure.html b/templates/shortcodes/figure.html
index 5a83112..98332a0 100644
--- a/templates/shortcodes/figure.html
+++ b/templates/shortcodes/figure.html
@@ -1,5 +1,5 @@
<div class="figure">
- <img src="/{{ page.path | safe }}{{ img }}" {% if alt %}alt="[{{ alt }}]"{% endif %}>
+ <img src="{{ get_url(path=page.path ~ img) | safe }}" {% if alt %}alt="[{{ alt }}]"{% endif %}>
<div class="caption">
{{ body | markdown | safe}}
</div>