-
-
{{ .Title }}
- {{ range .Data.Pages }}
- {{ .Render "summary"}}
- {{ end }}
-
-
- {{ % /highlight %}}
- ```
+```
+{{%/* highlight html */%}}
+
+
+
{{ .Title }}
+ {{ range .Data.Pages }}
+ {{ .Render "summary"}}
+ {{ end }}
+
+
+{{%/* /highlight */%}}
+```
### Example Output
diff --git a/docs/content/extras/livereload.md b/docs/content/extras/livereload.md
index aded2d093..a32614f58 100644
--- a/docs/content/extras/livereload.md
+++ b/docs/content/extras/livereload.md
@@ -4,9 +4,9 @@ menu:
main:
parent: extras
next: /extras/menus
-prev: /extras/comments
+prev: /extras/crossreferences
title: Live Reload
-weight: 15
+weight: 50
---
Hugo may not be the first static site generator to utilize live reload
diff --git a/docs/content/extras/menus.md b/docs/content/extras/menus.md
index 57d87c0c1..5362903a7 100644
--- a/docs/content/extras/menus.md
+++ b/docs/content/extras/menus.md
@@ -6,7 +6,7 @@ menu:
next: /extras/permalinks
prev: /extras/livereload
title: Menus
-weight: 20
+weight: 60
---
Hugo has a simple yet powerful menu system that permits content to be
diff --git a/docs/content/extras/permalinks.md b/docs/content/extras/permalinks.md
index ed95612e0..2bac230d5 100644
--- a/docs/content/extras/permalinks.md
+++ b/docs/content/extras/permalinks.md
@@ -9,7 +9,7 @@ next: /extras/shortcodes
notoc: true
prev: /extras/menus
title: Permalinks
-weight: 30
+weight: 70
---
By default, content is laid out into the target `publishdir` (public)
diff --git a/docs/content/extras/shortcodes.md b/docs/content/extras/shortcodes.md
index 5e2d2da87..44eadcc77 100644
--- a/docs/content/extras/shortcodes.md
+++ b/docs/content/extras/shortcodes.md
@@ -8,7 +8,7 @@ menu:
next: /extras/highlighting
prev: /extras/permalinks
title: Shortcodes
-weight: 40
+weight: 80
---
Hugo uses Markdown for its simple content format. However, there’s a lot
@@ -129,6 +129,33 @@ closing shortcode.
+### ref, relref
+
+These shortcodes will look up the pages by their relative path (e.g.,
+`blog/post.md`) or their logical name (`post.md`) and return the permalink
+(`ref`) or relative permalink (`relref`) for the found page.
+
+`ref` and `relref` also make it possible to make fragmentary links that work
+for the header links generated by Hugo.
+
+Read more on [cross-references]({{% ref "extras/crossreferences.md" %}}).
+
+#### Usage
+
+`ref` and `relref` take exactly one required parameter of _reference_.
+
+#### Example
+
+ [Neat]({{* ref "blog/neat.md" */>}})
+ [Who]({{* relref "about.md#who" */>}})
+
+#### Example Output
+
+Assuming that standard Hugo pretty URLs are turned on.
+
+