-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Further optimization of delimited-string to list transformation
- Optimize org-hugo--get-yaml-toml-list-string - Re-write org-hugo--transform-org-tags-2 as org-hugo--delim-str-to-list, with better documentation. - Keywords front-matter parsing is now on par with the parsing of tags and categories (multiple keywords, keywords with spaces, hyphens, underscores). - Add test cases for keywords parsing.
- Loading branch information
1 parent
e5e6e87
commit 240dd55
Showing
5 changed files
with
86 additions
and
58 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/posts/keywords-set-using-multiple-properties.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 = "Keywords set using multiple properties" | ||
keywords = ["abc", "def"] | ||
tags = ["front-matter", "keywords"] | ||
draft = false | ||
+++ |
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 = "Multiple keywords in front-matter" | ||
keywords = ["abc", "def", "hyphenated-keyword", "underscored_keyword", "two words", "these are four words"] | ||
tags = ["front-matter", "keywords"] | ||
draft = false | ||
+++ |
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 = "Single keyword in front-matter" | ||
keywords = ["abc"] | ||
tags = ["front-matter", "keywords"] | ||
draft = false | ||
+++ |