Commit ae420040 authored by Isabella Skořepová's avatar Isabella Skořepová

Implement php redirects

Fixes #4
parent c4b2d5e0
Pipeline #43 skipped
......@@ -25,7 +25,6 @@ module.exports = function(obj) {
if(article.otherContent) {
article.otherContent.forEach(function(o) {
var f = path.join(builddir,article.file,'index.'+o.type);
console.log(f);
doWrite(f, o.content);
})
}
......
......@@ -21,7 +21,9 @@
{% if page.metadata.perex_e %}
{{page.metadata.perex_e | truncate}}
{% else %}
{{ page.content | striptags | truncate }}
{% if page.content %}
{{ page.content | string | striptags | truncate }}
{% endif %}
{% endif %}
{% endif %}
</div>
......
<?php header('location: {{config.baseurl}}/{{content}}');
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