summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
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>