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

Define prefered index filename order for embeded server #5055

Open
blankoworld opened this issue Aug 10, 2018 · 1 comment
Open

Define prefered index filename order for embeded server #5055

blankoworld opened this issue Aug 10, 2018 · 1 comment
Milestone

Comments

@blankoworld
Copy link

As Hugo permits to customize output formats I created a new one. First I configure Hugo in config.toml with these elements:

[mediaTypes]                                                                     
[mediaTypes."application/xhtml+xml"]                                             
suffixes = ["xhtml", "xhtm", "xht"]                                              
                                                                                 
[outputFormats]                                                                  
  [outputFormats.XHTML]                                                          
    mediaType = "application/xhtml+xml"                                          
    baseName = "index"                                                           
    isPlainText = true                                                           
                                                                                 
[outputs]                                                                        
home = ["XHTML", "HTML", "RSS"]                                                  
page = ["XHTML", "HTML"] 

Then Hugo creates pages perfectly! It's a really nice functionnality. And you're probably right: I'm a XHTML masochist ^_^.

But while I'm launching the embedded server with http://localhost:1313/

hugo serve --disableFastRender -D

I got a white page. I need to enter this URL: http://localhost:1313/index.xhtml.

I think it's a missing part of output format functionnality: use the home= list in the right order to find a page to display as index.

I mean my home outputs is: ["XHTML", "HTML", "RSS"] (in config.toml file).

I expect that first the hugo serve command first open index.xhtml, if no one index.html and finally index.xml.

What's your opinion?

@bep bep added this to the v0.47 milestone Aug 11, 2018
@bep bep modified the milestones: v0.47, v0.48 Aug 14, 2018
@bep bep modified the milestones: v0.48, v0.49 Aug 22, 2018
@bep bep modified the milestones: v0.49, v0.50 Sep 13, 2018
@bep bep modified the milestones: v0.50, v0.51 Oct 6, 2018
@bep bep modified the milestones: v0.51, v0.53 Nov 8, 2018
@bep bep modified the milestones: v0.53, v0.54 Dec 6, 2018
@bep bep modified the milestones: v0.54, v0.55 Dec 26, 2018
@bep bep modified the milestones: v0.55, v0.56 Feb 1, 2019
@stale
Copy link

stale bot commented Jun 1, 2019

This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help.
If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open.
If this is a feature request, and you feel that it is still relevant and valuable, please tell us why.
This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.

@stale stale bot added the Stale label Jun 1, 2019
@bep bep modified the milestones: v0.56, v0.57 Jun 14, 2019
@stale stale bot removed the Stale label Jun 14, 2019
@bep bep modified the milestones: v0.57, v0.58 Jul 31, 2019
@bep bep modified the milestones: v0.58, v0.59 Aug 13, 2019
@bep bep modified the milestones: v0.59, v0.60 Sep 6, 2019
@bep bep removed this from the v0.60 milestone Oct 21, 2019
@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.114.0, v0.115.0 Jun 8, 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 4, 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
@bep bep modified the milestones: v0.125.0, v0.126.0 Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants