summaryrefslogtreecommitdiffstats
path: root/docs/content/content-management/urls.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/content-management/urls.md')
-rw-r--r--docs/content/content-management/urls.md13
1 files changed, 3 insertions, 10 deletions
diff --git a/docs/content/content-management/urls.md b/docs/content/content-management/urls.md
index dd91fbced..d33725b72 100644
--- a/docs/content/content-management/urls.md
+++ b/docs/content/content-management/urls.md
@@ -29,19 +29,12 @@ These examples use the default values for `publishDir` and `contentDir`; i.e., `
For example, if one of your [sections][] is called `post` and you want to adjust the canonical path to be hierarchical based on the year, month, and post title, you could set up the following configurations in YAML and TOML, respectively.
-### YAML Permalinks Configuration Example
+### Permalinks Configuration Example
-{{< code file="config.yml" copy="false" >}}
+{{< code-toggle file="config" copy="false" >}}
permalinks:
post: /:year/:month/:title/
-{{< /code >}}
-
-### TOML Permalinks Configuration Example
-
-{{< code file="config.toml" copy="false" >}}
-[permalinks]
- post = "/:year/:month/:title/"
-{{< /code >}}
+{{< /code-toggle >}}
Only the content under `post/` will have the new URL structure. For example, the file `content/post/sample-entry.md` with `date: 2017-02-27T19:20:00-05:00` in its front matter will render to `public/2017/02/sample-entry/index.html` at build time and therefore be reachable at `https://example.com/2017/02/sample-entry/`.