Closes https://github.com/kaushalmodi/ox-hugo/issues/31
This feature was enabled by adding property inheritance support in
1a0d26ca22
master
parent
8068f34ab7
commit
c567f0cd6e
4 changed files with 48 additions and 0 deletions
@ -0,0 +1,10 @@ |
||||
+++ |
||||
title = "Article 1" |
||||
date = 2017-07-19T08:34:29-04:00 |
||||
tags = [] |
||||
draft = false |
||||
+++ |
||||
|
||||
First article. |
||||
|
||||
This will land in `content/articles/` as the parent of this subtree sets `EXPORT_HUGO_SECTION` to `articles`. Note that the theme needs to define at least the `single.html` for `articles/`. |
||||
@ -0,0 +1,10 @@ |
||||
+++ |
||||
title = "Article 2" |
||||
date = 2017-07-19T08:34:22-04:00 |
||||
tags = [] |
||||
draft = false |
||||
+++ |
||||
|
||||
Second article. |
||||
|
||||
This will also land in `content/articles/` the same way. |
||||
@ -0,0 +1,8 @@ |
||||
{{ define "main" }} |
||||
|
||||
<div class="article"> |
||||
<h1 class="article-title">{{ .Title }}</h1> |
||||
{{ .Content }} |
||||
</div> |
||||
|
||||
{{ end }} |
||||
Loading…
Reference in new issue