Skip to content
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

Enable putting data, assets, and layouts together #10238

Open
willfaught opened this issue Sep 1, 2022 · 0 comments
Open

Enable putting data, assets, and layouts together #10238

willfaught opened this issue Sep 1, 2022 · 0 comments
Labels
Milestone

Comments

@willfaught
Copy link

willfaught commented Sep 1, 2022

Hugo should let users group content/, layouts/, and static/ files under content/.

It's much simpler for beginners, when starting fresh, and when porting an existing static site incrementally.

E.g.

mysite/
  content/
    _baseof.html
    _list.html
    _single.html
    about.md
    me.jpg
    style.css
    blog/ # inherits _baseof.html from content/
      _list.html
      _single.html
      foo.md
      articles/ # inherits _baseof.html from content/, and _list.html from blog/
        _single.html
        bar.md

Then layouts/ can be for when you want to factor out patterns into common templates:

mysite/
  layouts/
    _baseof.html
    _list.html
    _single.html
    blog/
      _single.html
      _list.html
@bep bep removed the NeedsTriage label Sep 1, 2022
@bep bep added this to the v0.103.0 milestone Sep 1, 2022
@bep bep modified the milestones: v0.103.0, v0.104.0 Sep 15, 2022
@bep bep modified the milestones: v0.104.0, v0.105.0 Sep 23, 2022
@bep bep modified the milestones: v0.105.0, v0.106.0 Oct 26, 2022
@bep bep modified the milestones: v0.106.0, v0.107.0 Nov 18, 2022
@bep bep modified the milestones: v0.107.0, v0.108.0 Dec 3, 2022
@bep bep modified the milestones: v0.108.0, v0.109.0 Dec 14, 2022
@bep bep modified the milestones: v0.109.0, v0.111.0, v0.110.0 Jan 26, 2023
@bep bep modified the milestones: v0.111.0, v0.112.0 Feb 15, 2023
@bep bep modified the milestones: v0.112.0, v0.113.0 Apr 15, 2023
@bep bep modified the milestones: v0.113.0, v0.115.0 Jun 13, 2023
@bep bep modified the milestones: v0.115.0, v0.116.0 Jun 30, 2023
@bep bep modified the milestones: v0.116.0, v0.117.0 Aug 1, 2023
@bep bep modified the milestones: v0.117.0, v0.118.0 Aug 30, 2023
@bep bep modified the milestones: v0.118.0, v0.119.0 Sep 15, 2023
@bep bep modified the milestones: v0.119.0, v0.120.0 Oct 5, 2023
@bep bep modified the milestones: v0.120.0, v0.121.0 Oct 31, 2023
@bep bep modified the milestones: v0.121.0, v0.122.0 Dec 6, 2023
@bep bep modified the milestones: v0.122.0, v0.123.0, v0.124.0 Jan 27, 2024
@bep bep modified the milestones: v0.124.0, v0.125.0 Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants