Skip to content

Commit

Permalink
Replace "--" with "-" in export Markdown files
Browse files Browse the repository at this point in the history
Hugo does not allow 2 consecutive hyphens in slugs derived from
Markdown file names and auto-converts 2-hyphens to single hyphens. Ref
gohugoio/hugo#7288.
  • Loading branch information
kaushalmodi committed Jan 16, 2022
1 parent 3d8054b commit 451d617
Show file tree
Hide file tree
Showing 24 changed files with 26 additions and 26 deletions.
20 changes: 10 additions & 10 deletions test/site/content-org/all-posts.org
Original file line number Diff line number Diff line change
Expand Up @@ -5116,36 +5116,36 @@ with spaces was added in {{{commit(7691f0453b)}}}.
********** TODO Level 7
*** Deeply nested Org TODO headings -- Default heading level
:PROPERTIES:
:EXPORT_FILE_NAME: deeply-nested-org-todo-headings--default-h
:EXPORT_FILE_NAME: deeply-nested-org-todo-headings-default-h
:END:
#+include: "./all-posts.org::#deeply-nested-todo-headings" :only-contents t
*** Deeply nested Org TODO headings -- h1
:PROPERTIES:
:EXPORT_FILE_NAME: deeply-nested-org-todo-headings--h1
:EXPORT_FILE_NAME: deeply-nested-org-todo-headings-h1
:EXPORT_OPTIONS: h:1
:END:
#+include: "./all-posts.org::#deeply-nested-todo-headings" :only-contents t
*** Deeply nested Org TODO headings -- h2
:PROPERTIES:
:EXPORT_FILE_NAME: deeply-nested-org-todo-headings--h2
:EXPORT_FILE_NAME: deeply-nested-org-todo-headings-h2
:EXPORT_OPTIONS: h:2
:END:
#+include: "./all-posts.org::#deeply-nested-todo-headings" :only-contents t
*** Deeply nested Org TODO headings -- h5
:PROPERTIES:
:EXPORT_FILE_NAME: deeply-nested-org-todo-headings--h5
:EXPORT_FILE_NAME: deeply-nested-org-todo-headings-h5
:EXPORT_OPTIONS: h:5
:END:
#+include: "./all-posts.org::#deeply-nested-todo-headings" :only-contents t
*** Deeply nested Org TODO headings -- h6
:PROPERTIES:
:EXPORT_FILE_NAME: deeply-nested-org-todo-headings--h6
:EXPORT_FILE_NAME: deeply-nested-org-todo-headings-h6
:EXPORT_OPTIONS: h:6
:END:
#+include: "./all-posts.org::#deeply-nested-todo-headings" :only-contents t
*** Deeply nested Org TODO headings -- h6, Offset 0
:PROPERTIES:
:EXPORT_FILE_NAME: deeply-nested-org-todo-headings--h6--offset0
:EXPORT_FILE_NAME: deeply-nested-org-todo-headings-h6-offset0
:EXPORT_OPTIONS: h:6
:EXPORT_HUGO_LEVEL_OFFSET: 0
:END:
Expand Down Expand Up @@ -5583,7 +5583,7 @@ ghi
:END:
*** Filling automatically not preserved for Chinese characters (preserve filling on)
:PROPERTIES:
:EXPORT_FILE_NAME: filling-not-preserved-for-chinese-characters--preserve-filling-on
:EXPORT_FILE_NAME: filling-not-preserved-for-chinese-characters-preserve-filling-on
:EXPORT_HUGO_PRESERVE_FILLING: t
:END:
#+begin_description
Expand All @@ -5599,7 +5599,7 @@ ghi
[[https://emacs-china.org/t/ox-hugo-auto-fill-mode-markdown/9547/5][Reference]]
*** Filling automatically not preserved for Chinese characters (preserve filling off)
:PROPERTIES:
:EXPORT_FILE_NAME: filling-not-preserved-for-chinese-characters--preserve-filling-off
:EXPORT_FILE_NAME: filling-not-preserved-for-chinese-characters-preserve-filling-off
:EXPORT_HUGO_PRESERVE_FILLING:
:END:
#+begin_description
Expand Down Expand Up @@ -6060,7 +6060,7 @@ Still some people might prefer to use the Org generated TOC.
**** No TOC in Summary :summary:endtoc:
***** No TOC in Summary (with more comment marker) :more:
:PROPERTIES:
:EXPORT_FILE_NAME: no-toc-in-summary--with-more
:EXPORT_FILE_NAME: no-toc-in-summary-with-more
:EXPORT_OPTIONS: toc:t
:END:
By default, Hugo will dump everything at the beginning of a post into
Expand All @@ -6084,7 +6084,7 @@ This partial needs to be used wherever the summary text is needed
(example: the Opengraph =og:description= meta tag).
***** No TOC in Summary (without more comment marker)
:PROPERTIES:
:EXPORT_FILE_NAME: no-toc-in-summary--without-more
:EXPORT_FILE_NAME: no-toc-in-summary-without-more
:EXPORT_OPTIONS: toc:t
:END:
By default, Hugo will dump everything at the beginning of a post into
Expand Down
10 changes: 5 additions & 5 deletions test/site/content-org/hugo-menu-as-keyword.org
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@

* Post with menu 1 (HUGO_MENU as keyword)
:PROPERTIES:
:EXPORT_FILE_NAME: hugo-menu-as-keyword--post-with-menu-1
:EXPORT_FILE_NAME: hugo-menu-as-keyword-post-with-menu-1
:END:
* Post with menu 2 (HUGO_MENU as keyword)
:PROPERTIES:
:EXPORT_FILE_NAME: hugo-menu-as-keyword--post-with-menu-2
:EXPORT_FILE_NAME: hugo-menu-as-keyword-post-with-menu-2
:END:
* Post with menu 3 (HUGO_MENU as keyword)
:PROPERTIES:
:EXPORT_FILE_NAME: hugo-menu-as-keyword--post-with-menu-3
:EXPORT_FILE_NAME: hugo-menu-as-keyword-post-with-menu-3
:END:
* Post with menu 4 (HUGO_MENU as keyword)
:PROPERTIES:
:EXPORT_FILE_NAME: hugo-menu-as-keyword--post-with-menu-4
:EXPORT_FILE_NAME: hugo-menu-as-keyword-post-with-menu-4
:END:
* Post with menu 5 (HUGO_MENU as keyword)
:PROPERTIES:
:EXPORT_FILE_NAME: hugo-menu-as-keyword--post-with-menu-5
:EXPORT_FILE_NAME: hugo-menu-as-keyword-post-with-menu-5
:END:
10 changes: 5 additions & 5 deletions test/site/content-org/hugo-weight-as-keyword-auto-calc.org
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@

* Post 1 with auto calculation of weight (HUGO_WEIGHT as keyword)
:PROPERTIES:
:EXPORT_FILE_NAME: post-1-with-auto-calc-of-weight--hugo-weight-as-keyword
:EXPORT_FILE_NAME: post-1-with-auto-calc-of-weight-hugo-weight-as-keyword
:END:
* Post 2 with auto calculation of weight (HUGO_WEIGHT as keyword)
:PROPERTIES:
:EXPORT_FILE_NAME: post-2-with-auto-calc-of-weight--hugo-weight-as-keyword
:EXPORT_FILE_NAME: post-2-with-auto-calc-of-weight-hugo-weight-as-keyword
:END:
* Post 3 with auto calculation of weight (HUGO_WEIGHT as keyword)
:PROPERTIES:
:EXPORT_FILE_NAME: post-3-with-auto-calc-of-weight--hugo-weight-as-keyword
:EXPORT_FILE_NAME: post-3-with-auto-calc-of-weight-hugo-weight-as-keyword
:END:
* Post 4 with auto calculation of weight (HUGO_WEIGHT as keyword)
:PROPERTIES:
:EXPORT_FILE_NAME: post-4-with-auto-calc-of-weight--hugo-weight-as-keyword
:EXPORT_FILE_NAME: post-4-with-auto-calc-of-weight-hugo-weight-as-keyword
:END:
* Post 5 with auto calculation of weight (HUGO_WEIGHT as keyword)
:PROPERTIES:
:EXPORT_FILE_NAME: post-5-with-auto-calc-of-weight--hugo-weight-as-keyword
:EXPORT_FILE_NAME: post-5-with-auto-calc-of-weight-hugo-weight-as-keyword
:END:
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ title = "Post with menu 1 (HUGO_MENU as keyword)"
draft = false
[menu."auto weight"]
weight = 1001
identifier = "post-with-menu-1--hugo-menu-as-keyword"
identifier = "post-with-menu-1-hugo-menu-as-keyword"
+++
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ title = "Post with menu 2 (HUGO_MENU as keyword)"
draft = false
[menu."auto weight"]
weight = 1002
identifier = "post-with-menu-2--hugo-menu-as-keyword"
identifier = "post-with-menu-2-hugo-menu-as-keyword"
+++
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ title = "Post with menu 3 (HUGO_MENU as keyword)"
draft = false
[menu."auto weight"]
weight = 1003
identifier = "post-with-menu-3--hugo-menu-as-keyword"
identifier = "post-with-menu-3-hugo-menu-as-keyword"
+++
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ title = "Post with menu 4 (HUGO_MENU as keyword)"
draft = false
[menu."auto weight"]
weight = 1004
identifier = "post-with-menu-4--hugo-menu-as-keyword"
identifier = "post-with-menu-4-hugo-menu-as-keyword"
+++
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ title = "Post with menu 5 (HUGO_MENU as keyword)"
draft = false
[menu."auto weight"]
weight = 1005
identifier = "post-with-menu-5--hugo-menu-as-keyword"
identifier = "post-with-menu-5-hugo-menu-as-keyword"
+++
2 changes: 1 addition & 1 deletion test/site/content/writing-hugo-blog-in-org-file-export.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ alpha = 1
beta = "two words"
gamma = 10
[menu.main]
identifier = "writing-hugo-blog-in-org--file-export"
identifier = "writing-hugo-blog-in-org-file-export"
weight = 2001
+++

Expand Down

0 comments on commit 451d617

Please sign in to comment.