Hi.
i’m creating a web tv generator. i’m using the standard tinyce-hugo-theme-master theme with a custom tag added in the single.html
i put videos in
/content/folder1
/content/folder2
/content/folderN
and so on.
using a python script,
i generate a .md file for every videos with two custom keyword (videosrc and videoposter) and i bind those custom keyword on the template assuming relative path starting from the same folder so, for example ,
this is the tree of my /content
│
├───Cetto Laqualunque
├───Ingegner Cane
├───Sensualita A Corte
└───Tassista di notte
Tassista.m4v
Tassista.md
and the template has this video tag
As i said, the script search for every video file and create the relative .md content so for example for Tassista.m4v i obtain
+++
Description = "Tassista"
Title = "Tassista"
videoposter = "Tassista.jpg"
videosrc = “Tassista.m4v”
+++
Now, when i compile the website,
C:\Users\Andrea\Desktop\hugo_0.16_windows-64bit\maidiretv>hugo
Started building site
0 draft content
0 future content
1 pages created
2 non-page files copied
0 paginator pages created
0 tags created
0 categories created
in 109 ms
the video is moved in the wrong folder as you can see opening
http://maidiretv.altervista.org//tassista-di-notte/Tassista/
in fact, this is the “tree” output of the folder
├───Tassista di notte
│ Tassista.m4v
│
└───tassista-di-notte
│ index.html
│ index.xml
│
└───Tassista
index.html
so, the questions are,
why the folder “Tassista di notte” is generated? why the file isn’t moved in the right folder, “tassista-di-notte”, where the html file is? Due Hugo move the static asset for me, i think there is something wrong with some script.
thanks a lot.