From 0309c940dfbe2f60560656bc3b8a80d974135e21 Mon Sep 17 00:00:00 2001 From: Kakoma Date: Mon, 28 Dec 2015 18:48:52 +0300 Subject: [PATCH] Use permalink Front Matter variable for clean URLs Add pro Tip to use permalink front matter variable to get clean URLs --- site/_docs/pages.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/site/_docs/pages.md b/site/_docs/pages.md index 2299c83c..a2080868 100644 --- a/site/_docs/pages.md +++ b/site/_docs/pages.md @@ -87,3 +87,15 @@ might look like: This approach may not suit everyone, but for people who like clean URLs it’s simple and it works. In the end the decision is yours! + +
+
ProTip™: Use permalink Front Matter Variable
+

+ Clean URLs can also be achieved using the permalink Front Matter variable. In the example above, using the first method, you can get URL http://example.com/other for the file other.md by adding this to the top of the file. +

+    ---
+    permalink: /other/
+    ---
+    
+

+