cku328 opened a new pull request #1372:
URL: https://github.com/apache/hadoop-ozone/pull/1372


   ## What changes were proposed in this pull request?
   
   The server for the edge version of the documentation doesn't appear to use 
`index.html` as the default index page, but instead displays a list of 
directories. 
   
   If the file name of the page is `index.html`, it doesn't add `index.html` to 
the `Permalink` parameters, which seems to be hugo's style. I found similar 
cases on the internet. (ref. 
[https://discourse.gohugo.io/t/ugly-urls-with-page-resources/10037](https://discourse.gohugo.io/t/ugly-urls-with-page-resources/10037))
   
   The easiest solution is to check the permalink suffix and if it's not `html` 
then print `index.html` at the end.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-4166
   
   ## How was this patch tested?
   
   Tested locally using `hugo serve`
   
   
![擷取](https://user-images.githubusercontent.com/14295594/91790360-253dea00-ec43-11ea-9837-b68580d228d0.PNG)
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: ozone-issues-h...@hadoop.apache.org

Reply via email to