You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As raised by @normal-coder in #229, the Hugo update added an additional "docs" level to the URL structure. While this is how the Doks theme is set up, it's semantically superfluous, considering that the entire site is a docs site.
Proposed Fix
I will remove docs from the content folder structure. Because Doks relies on this for templating, I will need to add front matter to all content indicating which template to use. I will also need to update the docs archetype so that any new pages use the new front matter format. Finally, I'll need to manually change how the left sidebar works, since it relies by default on the presence of the docs folder.
Benefits
The benefits will be a shorter and more semantic URL structure. Most inbound links will have been invalidated by the recent content reorg, but any that are the same will also be preserved.
The text was updated successfully, but these errors were encountered:
Removed the docs folder and moved all content up one level
Added necessary front matter to all content files, as Doks depended on
the docs folder to determine the template used
Updated archetype with correct front matter for furture file creation
Rewrote sidebar template to use new folder structure
Resolvessigstore#231
References sigstore#229
Signed-off-by: Patrick Smyth <patrick@iotaschool.com>
* Removed docs from URL path
Removed the docs folder and moved all content up one level
Added necessary front matter to all content files, as Doks depended on
the docs folder to determine the template used
Updated archetype with correct front matter for furture file creation
Rewrote sidebar template to use new folder structure
Resolves#231
References #229
Signed-off-by: Patrick Smyth <patrick@iotaschool.com>
* Changed FlexSearch params to reflect new structure
Signed-off-by: Patrick Smyth <patrick@iotaschool.com>
---------
Signed-off-by: Patrick Smyth <patrick@iotaschool.com>
Description
As raised by @normal-coder in #229, the Hugo update added an additional "docs" level to the URL structure. While this is how the Doks theme is set up, it's semantically superfluous, considering that the entire site is a docs site.
Proposed Fix
I will remove docs from the content folder structure. Because Doks relies on this for templating, I will need to add front matter to all content indicating which template to use. I will also need to update the docs archetype so that any new pages use the new front matter format. Finally, I'll need to manually change how the left sidebar works, since it relies by default on the presence of the docs folder.
Benefits
The benefits will be a shorter and more semantic URL structure. Most inbound links will have been invalidated by the recent content reorg, but any that are the same will also be preserved.
The text was updated successfully, but these errors were encountered: