Cleaned up some unneccisary redirects

This commit is contained in:
Marcus Noble 2021-09-05 07:48:49 +01:00
parent 36a58be0f1
commit d01a3f227c
3 changed files with 4 additions and 3 deletions

1
app.js
View File

@ -23,6 +23,7 @@ const striptags = require('striptags');
const port = process.env.PORT || 8000;
app.disable('x-powered-by');
app.use(compress());
app.use(express.static(__dirname + '/build'));

View File

@ -14,7 +14,7 @@
<li>
<article class="post">
<h2 class="post-title">
<a class="post-link" href="/{{ this.path }}">{{ this.title }}</a>
<a class="post-link" href="/{{ this.path }}/">{{ this.title }}</a>
</h2>
<div class="post-meta feather_type">
@ -27,7 +27,7 @@
<div class="post-preview">
{{{ markdown this.summary }}}
<a class="full-post-link" href="/{{ this.path }}">Continue reading...</a>
<a class="full-post-link" href="/{{ this.path }}/">Continue reading...</a>
</div>
</article>

View File

@ -8,7 +8,7 @@
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
<h2 class="post-title" itemprop="name headline">
<a class="post-link" href="/{{ path }}">{{ title }}</a>
<a class="post-link" href="/{{ path }}/">{{ title }}</a>
</h2>
<div class="post-meta feather_type">