diff options
| -rw-r--r-- | config.php | 5 | ||||
| -rw-r--r-- | source/_layouts/master.blade.php | 2 |
2 files changed, 4 insertions, 3 deletions
@@ -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> |
