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

Improve .Site.GetPage so it can get a specific regular content page #2844

Closed
bep opened this Issue Dec 28, 2016 · 3 comments

Comments

Projects
None yet
2 participants

@bep bep added the Enhancement label Dec 28, 2016

@bep bep changed the title from Improve GetPage so it can get a specific regular content page to Improve .Site.GetPage so it can get a specific regular content page Dec 28, 2016

@bep

This comment has been minimized.

Show comment
Hide comment
@bep

bep Dec 28, 2016

Member

We should probably build some kind of index (a map?) if this is going to be used a lot.

Member

bep commented Dec 28, 2016

We should probably build some kind of index (a map?) if this is going to be used a lot.

@bep bep added this to the v0.19 milestone Jan 5, 2017

@bep bep modified the milestones: v0.20, v0.19 Feb 21, 2017

@bep bep modified the milestones: v0.21, v0.20 Mar 31, 2017

@vjeantet

This comment has been minimized.

Show comment
Hide comment
@vjeantet

vjeantet May 5, 2017

Contributor

Maybe we can use last outputFormats feature to generate the required "index" ?

I try to generate a json file with all the information about pages, it generates the correct file in public/idx/pages.json but impossible to use/reference this file in templates with GetJSON (egg and chicken problem ?)

Is there a way to generate an outputFormat to data dir ?

Is there a way to order outputFormats'runs ? (to be sure that my generated data files are created before used by other templates..)

[outputFormats.IDXPAGES]
MediaType = "application/json"
BaseName = "pages"
IsPlainText = true
Path = "idx"
Contributor

vjeantet commented May 5, 2017

Maybe we can use last outputFormats feature to generate the required "index" ?

I try to generate a json file with all the information about pages, it generates the correct file in public/idx/pages.json but impossible to use/reference this file in templates with GetJSON (egg and chicken problem ?)

Is there a way to generate an outputFormat to data dir ?

Is there a way to order outputFormats'runs ? (to be sure that my generated data files are created before used by other templates..)

[outputFormats.IDXPAGES]
MediaType = "application/json"
BaseName = "pages"
IsPlainText = true
Path = "idx"
@bep

This comment has been minimized.

Show comment
Hide comment
@bep

bep May 5, 2017

Member

(egg and chicken problem ?)

Yes. Output format is a rendering format, so your thoughts would only make sense if you build the site several times and route the output to data to first n times ...

But in any case, what you are talking about (not sure what) is not covered by this issue, and probably belong in discussion form.

Member

bep commented May 5, 2017

(egg and chicken problem ?)

Yes. Output format is a rendering format, so your thoughts would only make sense if you build the site several times and route the output to data to first n times ...

But in any case, what you are talking about (not sure what) is not covered by this issue, and probably belong in discussion form.

@bep bep modified the milestones: v0.22, v0.21 May 9, 2017

@bep bep self-assigned this May 25, 2017

@bep bep added the InProgress label May 25, 2017

bep added a commit to bep/hugo that referenced this issue May 26, 2017

@bep bep closed this in #3524 May 26, 2017

bep added a commit that referenced this issue May 26, 2017

bep added a commit that referenced this issue May 26, 2017

@ghost ghost referenced this issue Jun 12, 2017

Open

spf13/hugo v0.22 released #11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment