I created a new theme: https://github.com/sakibccr/pristine
Any modification suggestion is welcome. Thanks.
Hello @sakibccr
thank you for sharing this theme with the Hugo community.
I noticed that you linked assets like CSS / JS files relative to the root directory. This causes problems if a website is hosted in a subdirectory. In this case the browser fetches the assets from example.com/css/styles.css instead of example.com/subfolder/css/styles.css. All theme demos are hosted in a subfolder. Hence the layout of the demo will look broken. You can fix that by using the template function absURL as follows:
{{ "path/to/asset" | absURL }}
absURL makes sure that the urls are relative to the base url, which isn't necessarily the root directory of a domain. However, make sure that your partial urls don't start with a /. Otherwise absURL / relURL make them again relative to the root directory.
Hi @digitalcraftsman thank you very much.
I have removed all relURL for absURL and checked that partial urls don't start with a /.
Could you please take look again.
Hi @sakibccr currently I am helping out with theme submissions.
I have reviewed your theme and the example site of your theme builds successfully. 馃憤
However there is one small issue.
Please undraft the _index.md under /exampleSite/content/all/ to make your /all/ menu link work.
Do this small change and I will mark your theme as ready to be added to the Hugo Site.
Thanks!
Thank you very much @onedrawingperday .
I have undrafted the said file.
Could you please have another look.
Thanks @sakibccr everything looks fine!
@digitalcraftsman this theme is ready to be added to the website.
Your theme should appear soon on Hugo's theme site. Next, I'll promote your theme on Hugo's official Twitter account.
Most helpful comment
Hi @sakibccr currently I am helping out with theme submissions.
I have reviewed your theme and the example site of your theme builds successfully. 馃憤
However there is one small issue.
Please undraft the
_index.mdunder/exampleSite/content/all/to make your/all/menu link work.Do this small change and I will mark your theme as ready to be added to the Hugo Site.
Thanks!