How to use the new Custom Output Formats

Hi,

Thanks for your answer. But I still not able to make it work.

I have created a new test project at https://github.com/tutume/hugotests
There, I have the following config.toml

baseurl = "https://domain.com/"
languageCode = "en-us"
title = "Testing Hugo"
theme = “hugo_theme_robust”

[mediaTypes]
[mediaTypes.“text/htaccess”]
suffix = “htaccess”

[outputFormats]
[outputFormats.MyHTA]
mediaType = "text/htaccess"
baseName = ""
isPlainText = true

[outputs]
home = [“HTML”, “MyHTA”]
page = [“HTML”, “MyHTA”]

[Params]
Domain = "domain.com"
Author = “Ricardo Tutume”

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.