From feeaee163c0b28e93cd9080ecc3cc6e951e1b014 Mon Sep 17 00:00:00 2001
From: Yihui Xie
Date: Fri, 16 Jun 2017 12:26:11 -0500
Subject: an alternative way to add a page to menu
---
exampleSite/content/about.md | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/exampleSite/content/about.md b/exampleSite/content/about.md
index 6c5583c..393d5ee 100644
--- a/exampleSite/content/about.md
+++ b/exampleSite/content/about.md
@@ -41,6 +41,8 @@ You can define the menu through `menu.main`, e.g.,
url = "/index.xml"
```
+Alternatively, you can add `menu: main` to the YAML metadata of any of your pages, so that these pages will appear in the menu.
+
The page footer can be defined in `.Params.copyright`, and the text is treated as Markdown, e.g.,
```
@@ -53,7 +55,7 @@ The page footer can be defined in `.Params.copyright`, and the text is treated a
There are two layout files under `layouts/partials/` that you may want to override: `head_custom.html` and `foot_custom.html`. This is how you inject arbitrary HTML code to the head and foot areas. For example, this site has a file `layouts/partials/foot_custom.html` to support LaTeX math via MathJax and center images automatically:
```html
-
+
-
+
```
You can certainly enable highlight.js for syntax highlighting by yourself through `head_custom.html` and `foot_custom.html` if you want.
--
cgit 1.4.1