doing http redirect in hugo
Procedures
- determine folder structure ;
- add layout according to (1) ;
- add content file according to (1) ;
determine folder structure
e.g. all redirect files are put under :
/content/redirect
then the new layout file should be :
/layouts/redirect/single.html
where the filename single
is the default layout filename according to Hugo, for the type specified by the parent folder, in this case redirect
;
if there will be more than 1 type of redirect templates, also put it here and just avoid that single
keyword.