Hugothemes: Please add shopping product catalogue theme

Created on 13 May 2018  路  5Comments  路  Source: gohugoio/hugoThemes

Most helpful comment

Your theme should appear soon on Hugo's theme site. Next, I'll promote your theme on Hugo's official Twitter account.

All 5 comments

Hello @kishaningithub

thank you for sharing this theme with the Hugo community.

While testing your theme with the build script for the Hugo theme site I noticed that the homepage always redicrects to /products. This causes problems if the website is hosted inside a subdirectory, e.g. www.themes.gohugo.io/theme/some-theme. In this case users who want to have a look at the theme demo will always be redirected to the non-existing page at www.themes.gohugo.io/products.

You can fix that by using the absURL, relURL template functions as follows:

{{ "/products" | absURL }}

@digitalcraftsman Done! Can you check now ?
Ref - The commit

I forgot that a url with a leading slash will still be interpreted relative to the root directory, not base-url. {{ "products" | absURL }} (notice the missing leading slash) fixes this. Sorry for that.

Otherwise your theme works fine and is ready to be added.

@digitalcraftsman Done! And thanks for your code reviews! :-)
Ref - The commit

Your theme should appear soon on Hugo's theme site. Next, I'll promote your theme on Hugo's official Twitter account.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

peaceiris picture peaceiris  路  4Comments

DirtyF picture DirtyF  路  7Comments

janraasch picture janraasch  路  3Comments

gundamew picture gundamew  路  4Comments

rmaguiar picture rmaguiar  路  7Comments