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; const port = process.env.PORT || 8000;
app.disable('x-powered-by');
app.use(compress()); app.use(compress());
app.use(express.static(__dirname + '/build')); app.use(express.static(__dirname + '/build'));

View File

@ -14,7 +14,7 @@
<li> <li>
<article class="post"> <article class="post">
<h2 class="post-title"> <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> </h2>
<div class="post-meta feather_type"> <div class="post-meta feather_type">
@ -27,7 +27,7 @@
<div class="post-preview"> <div class="post-preview">
{{{ markdown this.summary }}} {{{ 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> </div>
</article> </article>

View File

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