Hi!
Right now, when I click the blog navbar item or the topics item, I get 5 markdown pages listed, the ones inside the blog and topics folders.
I just want a table of contents to appear if there is content inside the markdown file taken from the list file; otherwise just index the markdown files inside the content folder.
By default now there is inside the list.html file:
<main>
<h2 class="title">{{ .Title }}</h2>
{{.Content}}
{{ range (.Paginator 5).Pages }} {{ partial "list-item" . }}
{{ end }}
</main>
I would like to write an if statement to hide:
{{ range (.Paginator 5).Pages }} {{ partial "list-item" . }}
{{ end }}
So that, if there is content inside the markdown file, not just the title, the {{ range (.Paginator 5).Pages }}
would disappear showing the content inside the markdown file, allowing me to customize the page.
Example:
What happens right now:
content inside a markdown file is compiled, but the pages inside the content folder are listed too, I want just one of the two to be shown at a time.
I hope I have explained it well enough.