and Inside layouts (not theme/layouts) I have
file [apache.MyHTA.htaccess] with
RewriteEngine On
RewriteCond %{HTTP_HOST} ^{{ .Param.Domain }}$ [NC]
RewriteRule ^(.*)$ {{ .Site.BaseURL }}/$1 [R=301,L]
Sorry by my dummy question. But What Am I doing wrong?
I have followed info from
I even tried to use your repo and I cannot see layouts/_default/list.MyEnrichedFormat.enr been generated anywhere.
I’m trying to generate .htaccess and robots.txt as are some basic files that I need, but I will do more things in the future like generating custom php files, etc.
It looks a little surprising that the Output Format name must be lower-cased in the template (please file an issue about that on GitHub), but otherwise it actually works pretty good. I suspected you would have to do some trickery to get .htacess work without the base in the filename, but this worked fine:
Many thanks for the help. It work! Although I didn’t understood how it really works.
Sorry by asking and is there anywhere documented how it exactly works? because at Output Formats docs I couldn’t find anything regarding how to name the template files (like the filename name must have be list.[kind].[suffix])
I will submit the issue regarding the lower-cased template filename.
Anyway, thanks for your help. I will study more how hugo works and maybe I will figure it out.
If you don’t understand the current documentation, I cannot help you (I wrote that, and thought it would be sufficient).
It will probably improve eventually, and it will be easier once the examples pop in the wild.
But I got one tip for you:
Think about how templates are handled and selected for the HTML template type in Hugo (fairly documented). Then apply that logic to another Output Format of choice.
But I’ve been soliciting feedback consistently from the forums and users with the hugodocs.info URL, and there is no real difference in the output formats documentation.
[[EDIT]]
I see the URL you are using, but again, the content is the same…