Add a path segment in the URL for sections #73
Change blog route so instead of https://torrust.com/released-v3-0-0, the url will appear as https://torrust.com/blog/released-v3-0-0. Changing from the route group of (article) to the named route which will appear /blog required numerous changes on the site as data passes differently as grouped routes share layouts without affecting the URL, while named routes directly define URL structure and load data individually at each level. This was done by accessing the data in the dynamic route, which was named [slug]. Also, the previously separate route of /blog which displayed all blog posts as well as SearchBar.svelte was also brought into the same route.
https://torrust.com/released-v3-0-0
, the url will appear ashttps://torrust.com/blog/released-v3-0-0
. Changing from the route group of(article)
to thenamed route
which will appear/blog
required numerous changes on the site as data passes differently as grouped routes share layouts without affecting the URL, while named routes directly define URL structure and load data individually at each level. This was done by accessing the data in thedynamic route
, which was named[slug]
. Also, the previously separate route of/blog
which displayed all blog posts as well asSearchBar.svelte
was also brought into the same route.Home
toHeader.svelte
to make clear how to return to home page besides clicking the Nautilus logo.Footer.svelte
to the Nautilus website.