Closed AngeloStavrow closed 4 years ago
The demo of your theme will be available in a subdirectory of the Hugo Themes website and you need to make sure of the following:
<div style="background: url('{{ "images/background.jpg" | absURL }}')">
./
in the beginning of a URL
, because it will point to the host root and Hugo will not generate the correct URL
for the demo's assets.https
. Please do not use relative protocol URLs in your theme's templates.mainSections
should be used instead of hardcoded sections for rendering lists.readFile
or readDir
should not be used in theme layouts templates, as well as no hardcoded PATHs in the form of: {{ .Site.baseURL }}/something
either in templates or in the config of an Example Site..Page.URL
; instead use .Permalink
, .RelPermalink
, etc.Moving the theme maintenance process work to #64 as this requires some discussion with the Hugo community; this work is otherwise done.
For maximum compatibility with the Hugo Theme Gallery, we should go through the template files and make sure they meet the guidelines specified in