Below is some test content. The right angle bracket (>) has been deliberately replaced by the stroke (/) symbol, to see the exact text. Is this html file wrong?
Can someone please post their example of an html file that works on their system, to test my system.
If the test html file below is correct, what other errors to look for?
+++
title = "test"
date = "2017-12-29T12:15:02-00:00"
categories = [“test”]
tags = [“test”]
+++
<h1/
Welcome
</h1/
<p/
test html content
</p/
Run hugo with the --verbose switch to get more errors on the command line.
You can put five tildes before and after your code (called a “fenced” code block) to format it so you don’t have to resort to putting a / to replace your >.
~~~~~
whatever
~~~~~
It could be a copy-paste artifact, but you have “curly quotes” in your categories and tags lines.
+++
title = "test"
date = "2017-12-29T12:15:02-00:00"
categories = ["test"]
tags = ["test"]
+++
<h1>Welcome</h1>
<p>test html content</p>
or
# Welcome
test html content
hugo -D serve -b http://localhost --verbose
INFO 2018...36 Using config file:
INFO 2018...36 using a UnionFS for static directory comprised of:
INFO 2018...36 Base: /home/.../themes/hyde-master/static
INFO 2018...36 Overlay: /home/.../static/
INFO 2018...36 syncing static files to /
WARN 2018...36 No translation bundle found for default language "en"
WARN 2018...36 Translation func for language en not found, use default.
WARN 2018...36 i18n not initialized, check that you have language file (in i18n) that matches the site language or the default language.
Started building sites ...
INFO 2018...37 found taxonomies: map[string]string{"category":"categories", "tag":"tags"}
WARN 2018...37 [en] Unable to locate layout for "taxonomyTerm": [taxonomy/category.terms.en.html.html taxonomy/category.terms.html.html taxonomy/category.terms.en.html taxonomy/category.terms.html _default/terms.en.html.html _default/terms.html.html _default/terms.en.html _default/terms.html indexes/indexes.en.html.html indexes/indexes.html.html indexes/indexes.en.html indexes/indexes.html theme/taxonomy/category.terms.en.html.html theme/taxonomy/category.terms.html.html theme/taxonomy/category.terms.en.html theme/taxonomy/category.terms.html theme/_default/terms.en.html.html theme/_default/terms.html.html theme/_default/terms.en.html theme/_default/terms.html theme/indexes/indexes.en.html.html theme/indexes/indexes.html.html theme/indexes/indexes.en.html theme/indexes/indexes.html]
WARN 2018...37 [en] Unable to locate layout for "taxonomyTerm": [taxonomy/tag.terms.en.html.html taxonomy/tag.terms.html.html taxonomy/tag.terms.en.html taxonomy/tag.terms.html _default/terms.en.html.html _default/terms.html.html _default/terms.en.html _default/terms.html indexes/indexes.en.html.html indexes/indexes.html.html indexes/indexes.en.html indexes/indexes.html theme/taxonomy/tag.terms.en.html.html theme/taxonomy/tag.terms.html.html theme/taxonomy/tag.terms.en.html theme/taxonomy/tag.terms.html theme/_default/terms.en.html.html theme/_default/terms.html.html theme/_default/terms.en.html theme/_default/terms.html theme/indexes/indexes.en.html.html theme/indexes/indexes.html.html theme/indexes/indexes.en.html theme/indexes/indexes.html]
Built site for language en:
0 draft content
0 future content
0 expired content
1 regular pages created
10 other pages created
0 non-page files copied
0 paginator pages created
1 tags created
1 categories created
total in 18 ms
WARN 2018...37 Skip i18nDir: lstat /home/.../i18n: no such file or directory
Watching for changes in /home/.../{data,content,layouts,static,themes}
WARN 2018...37 Skip i18nDir: lstat /home/.../i18n: no such file or directory
Serving pages from memory
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
Correction: could not understand the relevance of the query results posts.
The single html page is visible, but the rendering is incorrect. Maybe the empty layouts directory is causing the html elements h1 and p to appear as plain text in the web browser (uzbl).
I’ve lost count by now of all the topics and the Github issues that you’ve opened these past few days.
It’s interesting that you’ve arrived to above the realization. YES! An empty layouts directory does have the tendency of causing your HTML elements to render as plain text or not render at all.
Do read the Docs on how to configure your Hugo project properly. That’s why they were written in the first place.