Example html content request

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/

Let me turn that around: What errors do you see?

Your file looks correct.

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  
1 Like

Here’s a gist with a complex example. This has both html and json, because I could not make markdown do what I needed.

The markdown file is in this gist:

https://gist.githubusercontent.com/RickCogley/22c00407d7a94fc6aae3c64ca7e36b3b/raw/9d9fa123fbee4b59d4d946380f9dbe27ac7e8436/hugotest.md

The resultant page is:

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

Yes, that looks like the output from verbose. We need more info to help, though.

This web site did not return relevant queries to the error “enable to locate layout for taxonomyterm”

Current directories contents
archtypes/default.md
---
title: "{{ replace .TranslationBaseName "-" " " | title }}"
date: {{ .Date }}
draft: true
---

content/test.html
(text as shown above)

themes/hyde-master
(this directory unpacked from hugo themes web site)

config.toml
languageCode = "en-gb"
title = "My New Hugo Site"
theme = "hyde-master"
[params] DateForm = "1.2.1970"
baseURL = "http://127.0.0.1"

Really? I just searched “Unable to locate layout taxonomyterm” and found a bunch of posts on here.

That error means you don’t have layouts available for hugo to use to render taxonomy pages, such as for http://www.mysite.com/tags/.

You were asking about rendering a single page with html in it. Did that work?

Either way, it’s super hard to help you if you don’t share your site’s source.

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.

And stop wasting our time.

Closing this…