-
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.
Don't allow weight to be "auto" in front-matter for per-file exports
Fixes #83
- Loading branch information
1 parent
0318cb7
commit 32d0d97
Showing
7 changed files
with
32 additions
and
5 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
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
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
10 changes: 10 additions & 0 deletions
10
.../content-org/single-posts/hugo-auto-weight-ineffective-for-per-file-exports.org
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,10 @@ | ||
#+TITLE: Hugo auto weight ineffective for per-file exports | ||
#+HUGO_BASE_DIR: ../../ | ||
#+HUGO_WEIGHT: auto | ||
#+HUGO_TAGS: weight | ||
|
||
Even though we have =#+HUGO_WEIGHT: auto= in this file, the weight | ||
will be treated as nil as this file is exported using the /per-file/ | ||
or /complete-file/ export flow. | ||
|
||
The auto-weight calculation works *only* for /per-subtree/ flow. |
11 changes: 11 additions & 0 deletions
11
test/site/content/posts/hugo-auto-weight-ineffective-for-per-file-exports.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,11 @@ | ||
+++ | ||
title = "Hugo auto weight ineffective for per-file exports" | ||
tags = ["weight"] | ||
draft = false | ||
+++ | ||
|
||
Even though we have `#+HUGO_WEIGHT: auto` in this file, the weight | ||
will be treated as nil as this file is exported using the _per-file_ | ||
or _complete-file_ export flow. | ||
|
||
The auto-weight calculation works **only** for _per-subtree_ flow. |