summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid T. Sadler <davidtsadler@googlemail.com>2020-02-21 21:54:44 +0000
committerDavid T. Sadler <davidtsadler@googlemail.com>2020-02-21 21:54:44 +0000
commit861df4bd438c082752aeb0868ed35d196e05d6f1 (patch)
tree757c9fa9c55e128b739d47316a00e33ce7c8b047
parent11ddf0a921ea701a5f9cbc96afb510d0b2da2886 (diff)
Remove blog from urls
-rw-r--r--config.php5
-rw-r--r--source/_layouts/master.blade.php2
2 files changed, 4 insertions, 3 deletions
diff --git a/config.php b/config.php
index 6dcd5d2..6ec7672 100644
--- a/config.php
+++ b/config.php
@@ -8,6 +8,7 @@ return [
'siteName' => 'David T. Sadler',
'siteDescription' => 'My little bit of the Internet',
'siteAuthor' => 'David T. Sadler',
+ 'perPage' => 2,
// Collections
'collections' => [
@@ -15,10 +16,10 @@ return [
// Default author, if not provided in a post
'author' => 'David T. Sadler',
'sort' => '-date',
- 'path' => 'blog/{filename}',
+ 'path' => '/{filename}',
],
'categories' => [
- 'path' => '/blog/categories/{filename}',
+ 'path' => '/categories/{filename}',
'posts' => function ($page, $allPosts) {
return $allPosts->filter(function ($post) use ($page) {
return $post->categories ? in_array($page->getFilename(), $post->categories, true) : false;
diff --git a/source/_layouts/master.blade.php b/source/_layouts/master.blade.php
index 33b32cc..7c1cedf 100644
--- a/source/_layouts/master.blade.php
+++ b/source/_layouts/master.blade.php
@@ -8,7 +8,7 @@
<aside>
<ol>
@foreach ($page->allCategories($posts) as $category)
- <li><a href="/blog/categories/{{ $category }}">{{ $category }}</a></li>
+ <li><a href="/categories/{{ $category }}">{{ $category }}</a></li>
@endforeach
</ol>
</aside>