Trying to create single page with no theme layout for SSL Validation

Hello,
I’m setting up a Hugo site on gitlab using their automated build process. I’d like to install a letsencrypt SSL certificate but to validate, the cert program needs to hit an html page that is just the token, nothing else. The hugo theme generates lots of markup which interferes in the reading of the token. Is there a way to bypass the theme rendering and just provide the token text?

Thanks in advance!

Put the token file in the static directory.

$ echo 'BARE TOKEN HERE' > static/token.html
$ curl http://www.example.com:1313/token.html
BARE TOKEN HERE
$ 

Well that was easy. Thank you very much for the pointer!

1 Like

Did this actually work for you? if so, is the repo public?