From: Nate Finch Date: Sat, 2 Aug 2014 11:16:24 +0000 (-0400) Subject: update docs for permalinks with all fields X-Git-Tag: v0.12~68 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f556cb44149fd0c62bec02555d72b3735f189ec8;p=brevno-suite%2Fhugo update docs for permalinks with all fields List all the fields and what they mean, based on hugolib/permalinks.go --- diff --git a/docs/content/extras/permalinks.md b/docs/content/extras/permalinks.md index 54b4c610..4018b37e 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)
+