diff options
author | Bjørn Erik Pedersen <[email protected]> | 2023-06-28 10:27:39 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2023-06-29 10:14:19 +0200 |
commit | 7917961d59b0dc216e49f59dc0255f9b46534115 (patch) | |
tree | ee9a348c2555fdbbac8022ade50c5d440a81ae4e /source | |
parent | 80ecb958951783eb03e23a81800102d0e33db6e1 (diff) | |
download | hugo-7917961d59b0dc216e49f59dc0255f9b46534115.tar.gz hugo-7917961d59b0dc216e49f59dc0255f9b46534115.zip |
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 'source')
-rw-r--r-- | source/fileInfo.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/source/fileInfo.go b/source/fileInfo.go index 03bb1b16c..c58a0c3b9 100644 --- a/source/fileInfo.go +++ b/source/fileInfo.go @@ -92,9 +92,6 @@ type FileWithoutOverlap interface { // if file is a leaf bundle. ContentBaseName() string - // Classifier is the ContentClass of the file - Classifier() files.ContentClass - // UniqueID is the MD5 hash of the file's path and is for most practical applications, // Hugo content files being one of them, considered to be unique. UniqueID() string @@ -173,11 +170,6 @@ func (fi *FileInfo) ContentBaseName() string { return fi.contentBaseName } -// Classifier is the ContentClass of the file -func (fi *FileInfo) Classifier() files.ContentClass { - return fi.classifier; -} - // Section returns a file's section. func (fi *FileInfo) Section() string { fi.init() |