summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Parrish <daveparrish@tutanota.com>2019-08-25 09:02:01 -0400
committerJasper Van der Jeugt <m@jaspervdj.be>2019-08-25 15:02:01 +0200
commit779fa66c7b1719e071dc3f4d38a4cc2feb9492c6 (patch)
treec8a5155c5671f544c1c7eb4bf1a5e85e0ad17ad0 /lib
parente8ea8cd57bc627e58b3fc14f23f11d310044dc33 (diff)
downloadhakyll-779fa66c7b1719e071dc3f4d38a4cc2feb9492c6.tar.gz
Add getCategory tests
Diffstat (limited to 'lib')
-rw-r--r--lib/Hakyll/Web/Tags.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Hakyll/Web/Tags.hs b/lib/Hakyll/Web/Tags.hs
index 13e8cd3..43f6c4f 100644
--- a/lib/Hakyll/Web/Tags.hs
+++ b/lib/Hakyll/Web/Tags.hs
@@ -113,7 +113,7 @@ getTags identifier = do
--------------------------------------------------------------------------------
--- | Obtain categories from a page.
+-- | Obtain category from a page.
getCategory :: MonadMetadata m => Identifier -> m [String]
getCategory = return . return . takeBaseName . takeDirectory . toFilePath