Quick Update
∞@pratik Few things. The page content/now.html
should be content/now.md
(it is a markdown file, not HTML) and include type: now
in the front matter. The actual layout page would be in layouts/now/single.html
. Once that's setup, whatever you put in the .md
file can be displayed by using {{ .Content }}
in the layout. As an example, the html
file could be:
{{ define "main" }}
<div class="page">
<h1 class="page-title">{{ .Title }}</h1>
{{ .Content }}
</div>
{{ end }}
Then add correct classes and extra content as desired.