-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support concatenation of section paths; New EXPORT_HUGO_SECTION*
Fixes #215. Example: #+hugo_base_dir: . #+hugo_section: posts * emacs section :@emacs: :PROPERTIES: :EXPORT_HUGO_SECTION*: emacs :END: ** Post in emacs :PROPERTIES: :EXPORT_FILE_NAME: a-post-related-to-emacs :END: Post created in ~posts/emacs~. ** emacs/org section :org: :PROPERTIES: :EXPORT_HUGO_SECTION*: org :END: *** Post in emacs/org :PROPERTIES: :EXPORT_FILE_NAME: a-post-related-to-emacs-and-org :END: Post created in ~posts/emacs/org~. *** emacs/org/elisp section :elisp: :PROPERTIES: :EXPORT_HUGO_SECTION*: elisp :END: **** Post in emacs/org/elisp :PROPERTIES: :EXPORT_FILE_NAME: a-post-related-to-emacs-and-org-and-elisp :END: Post created in ~posts/emacs/org/elisp~.
- Loading branch information
1 parent
4de4b06
commit a8d3eb0
Showing
6 changed files
with
145 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
test/site/content/articles/emacs/hugo-section-frag-post-in-articles-emacs.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
+++ | ||
title = "Post with all HUGO_SECTION, HUGO_SECTION*, EXPORT_FILE_NAME in same subtree" | ||
description = "Test post created in `articles/emacs`." | ||
tags = ["section", "fragment", "concatenation", "deep-nesting"] | ||
draft = false | ||
+++ |
6 changes: 6 additions & 0 deletions
6
test/site/content/posts/sub1/hugo-section-frag-post-in-posts-sub1.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
+++ | ||
title = "Post in sub1" | ||
description = "Test post created in `posts/sub1`." | ||
tags = ["section", "fragment", "concatenation", "deep-nesting"] | ||
draft = false | ||
+++ |
6 changes: 6 additions & 0 deletions
6
test/site/content/posts/sub1/sub2/hugo-section-frag-post-in-posts-sub1-sub2.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
+++ | ||
title = "Post in sub1/sub2" | ||
description = "Test post created in `posts/sub1/sub2`." | ||
tags = ["section", "fragment", "concatenation", "deep-nesting"] | ||
draft = false | ||
+++ |
6 changes: 6 additions & 0 deletions
6
.../content/posts/sub1/sub2/sub3/hugo-section-frag-post-in-posts-sub1-sub2-sub3.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
+++ | ||
title = "Post in sub1/sub2/sub3" | ||
description = "Test post created in `posts/sub1/sub2/sub3`." | ||
tags = ["section", "fragment", "concatenation", "deep-nesting"] | ||
draft = false | ||
+++ |