Open niklas-fischer opened 3 years ago
If you want your whatever.md
as a blog post, then your file structure will be content>blog>whatever.md
... then you can see the page on localhost:1313/blog/whatever/
. OR If you want it as portfolio post then it will be in content>protfolio>whatever.md
... if you want example.
.... OR if you want a new page like localhost:1313/whatever/
then create a new folder inside layout
name it whatever
, in that folder create a file named list.html
where you have to define that page as main {{ define "main" }} <>...your HTML code...</> {{ end }}
...Bla Bla Bla... PLZ read the documentation for more info.
Thanks for your answer! If I understand you correctly, there's so far no template for a page like privacy
, imprint
or comparable, if I don`t make a blog post out of it or create a specific HTML file as you described?
This theme doesn't have any privacy, imprint or comparable page. If you want those pages you need to create them as a new page from scratch. Because "privacy and policy" is not a blog post, it's a unique page... Directory Structure Doc.
Hi, here are 2 workable solutions
The long way:
The short simple way:
if either of these work, kindly close this issue.
If I create a file in the
content
directory (let's call itwhatever.md
) and usehugo server
to render the page for editing, I cannot access the page usinglocalhost:1313/whatever/
- it remains white/empty. This also doesn't work if I create a folder namedwhatever
undercontent
and rename the file toindex.md
or_index.md
. Am I doing something wrong or is this an error?Hugo Version: hugo v0.82.0-9D960784+extended windows/amd64 BuildDate=2021-03-21T17:28:04Z VendorInfo=gohugoio OS: Windows 10.0.19042 Build 19042 (Pro)