summaryrefslogtreecommitdiffstats
path: root/hugolib/page__paths.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-06-28 10:27:39 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-06-29 10:14:19 +0200
commit7917961d59b0dc216e49f59dc0255f9b46534115 (patch)
treeee9a348c2555fdbbac8022ade50c5d440a81ae4e /hugolib/page__paths.go
parent80ecb958951783eb03e23a81800102d0e33db6e1 (diff)
Misc permalinks adjustments
* Move config loading to the page package * Fix a lower bound panic for the `:sections` slice syntax. * Always return the `:title` * Add some permalinks integration tests * Also see issues below Fixes #9448 Fixes #11184 See #8523
Diffstat (limited to 'hugolib/page__paths.go')
-rw-r--r--hugolib/page__paths.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/page__paths.go b/hugolib/page__paths.go
index f98531c10..a834a1d9d 100644
--- a/hugolib/page__paths.go
+++ b/hugolib/page__paths.go
@@ -109,13 +109,13 @@ func createTargetPathDescriptor(s *Site, p page.Page, pm *pageMeta) (page.Target
)
d := s.Deps
- classifier := files.ContentClassZero
+ var classifier files.ContentClass
if !p.File().IsZero() {
dir = p.File().Dir()
baseName = p.File().TranslationBaseName()
contentBaseName = p.File().ContentBaseName()
- classifier = p.File().Classifier()
+ classifier = p.File().FileInfo().Meta().Classifier
}
if classifier == files.ContentClassLeaf {