-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minor layouts rework #170
Minor layouts rework #170
Conversation
This sounds great to me, in particular the suggestions you're making about how to build on the changes here as I love the idea of nesting the layouts like this. I'm still very new to Hugo, so PRs like this are perfect for me to better understand things. Let's get @XhmikosR to weigh in before we figure out an approach. |
I'll have a close look tomorrow, thanks for the PR! And I definitely agree we should use a baseof.html, which is something we need to do in Bootstrap's docs too and leverage Hugo's template lookup hierarchy (I really need to find some time and get some help there 🙂)
|
Let's land this and you can make the other layout changes to another PR, @inwardmovement. Thanks! |
* remove layout from icons content files * remove unnecessary layout in home content file * remove layout in 404 content file and move 404.html * create default single and list layouts
Fixes #162
content/_index.md
) as Hugo's template lookup order make them uselayouts/icons/single.html
(for icons pages) andlayouts/home.html
(for home page) automatically.single.html
andlist.html
layouts to get rid of the warning, but I suggest we use abaseof.html
default template that would fetch amain
block from other templates and include thescripts
partial (which would fetch JQuery, Popper, Bootstrap...)Suggested layouts organization (I could take care of this):
baseof.html
single.html
list.html
home.html
icons/single.html