wjh18 / hugo-liftoff

Minimal blog/portfolio theme with a focus on content creation and SEO best practices. An ideal choice for technical users jump-starting a personal brand.
https://hugo-liftoff.netlify.app
MIT License
93 stars 27 forks source link

Make it easier to create custom single pages that don't use the posts single template #6

Closed wjh18 closed 2 years ago

wjh18 commented 2 years ago

Is your feature request related to a problem? Please describe. Currently creating a custom single page uses the default single template which is for posts only. There needs to be a way to create single pages other than about or contact that look like single pages instead of single posts. About and contact templates can be extended from this as well.

Describe the solution you'd like Create a default template that will be used automatically when creating a page without a defined section or type.

Describe alternatives you've considered N/a

Additional context N/a

wjh18 commented 2 years ago

Switched the posts single template from layouts/_default/ to layouts/posts/ and created a generic single template. By default, when you create a new page outside of posts and projects now it will use this new generic layout. This makes it easy to create terms and conditions, privacy policy, or whatever other single pages you need that aren't posts.

Fixed with 829f7b6f3e9a0af39f17906d94b51196fa592261