Small fixes

parent 13d8e819
Pipeline #749 passed with stage
in 6 seconds
......@@ -48,6 +48,7 @@ env.addFilter('relURL', function(filename, dir){
if(filename.substr(0,1) == '/' || filename.match('://')) return filename;
if(dir.substr(0,1) !== '/') dir = '/' + dir;
if(filename.match(/\/$/)) return dir+filename;
if(dir.match(/\/$/)) return dir+filename;
return dir+'/'+filename;
})
......
......@@ -42,7 +42,7 @@
<div class="metadata">
<h2 id="title">{{ metadata.title }}</h2>
{% if not metadata.nodate %}
<a class="author" style="color: #a2a2a2; display: block" class="black-text" target="_blank" href="https://git.ok1kvk.cz/ok1kvk.cz/content/tree/master/articles/{{file | replace("clanek/","")}}.md">
<a class="author" style="color: #a2a2a2; display: block" class="black-text" target="_blank" href="https://git.ok1kvk.cz/ok1kvk.cz/content/tree/master/articles/{{file | replace("clanek/","") | replace(r/\/$/, "")}}.md">
{% if metadata.date %}
<span style="color: #626262">{{ metadata.date.creation | date("D. M. YYYY") }}</span>
napsal
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment