From f556cb44149fd0c62bec02555d72b3735f189ec8 Mon Sep 17 00:00:00 2001 From: Nate Finch Date: Sat, 2 Aug 2014 07:16:24 -0400 Subject: [PATCH] update docs for permalinks with all fields List all the fields and what they mean, based on hugolib/permalinks.go --- docs/content/extras/permalinks.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/content/extras/permalinks.md b/docs/content/extras/permalinks.md index 54b4c6104..4018b37ed 100644 --- a/docs/content/extras/permalinks.md +++ b/docs/content/extras/permalinks.md @@ -36,3 +36,18 @@ A file named `content/post/sample-entry` which contains a line appearing at `public/2013/11/sample-entry/index.html` and be reachable via the URL . +The following is a list of values that can be used in a permalink definition, +all references to time are dependent on the content's date. + +**:year** the 4 digit year
+**:month** the 2 digit month
+**:monthname** the name of the month
+**:day** the 2 digit day
+**:weekday** the 1 digit day of the week (Sunday = 0)
+**:weekdayname** the name of the day of the week
+**:yearday** the 1-3 digit day of the year
+**:section** the content's section
+**:title** the content's title
+**:slug** the content's slug (or title if no slug)
+**:filename** the content's filename (without extension)
+