mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-26 22:04:32 +02:00
Add ToC to long pages
* A compact, fixed box in the right screen * Only for big screens, > 1200 px wide
This commit is contained in:
@@ -6,6 +6,7 @@ menu:
|
||||
next: /extras/livereload
|
||||
prev: /extras/comments
|
||||
title: Cross-References
|
||||
toc: true
|
||||
weight: 40
|
||||
---
|
||||
|
||||
|
@@ -9,6 +9,7 @@ next: /extras/highlighting
|
||||
prev: /extras/datafiles
|
||||
title: Dynamic Content
|
||||
weight: 91
|
||||
toc: true
|
||||
---
|
||||
|
||||
Dynamic content with a static site generator? Yes, it is possible!
|
||||
|
@@ -9,6 +9,7 @@ next: /extras/toc
|
||||
prev: /extras/shortcodes
|
||||
title: Syntax Highlighting
|
||||
weight: 90
|
||||
toc: true
|
||||
---
|
||||
|
||||
Hugo provides the ability for you to highlight source code in two different
|
||||
|
@@ -1,5 +1,7 @@
|
||||
---
|
||||
date: 2014-05-14T02:36:37Z
|
||||
toc: true
|
||||
tocstyle: compact
|
||||
menu:
|
||||
main:
|
||||
parent: extras
|
||||
|
@@ -9,6 +9,8 @@ next: /extras/pagination
|
||||
prev: /extras/permalinks
|
||||
title: Shortcodes
|
||||
weight: 80
|
||||
toc: true
|
||||
tocstyle: compact
|
||||
---
|
||||
|
||||
Hugo uses Markdown for its simple content format. However, there are a lot
|
||||
|
@@ -3,6 +3,7 @@ aliases:
|
||||
- /layout/functions/
|
||||
date: 2013-07-01
|
||||
linktitle: Functions
|
||||
toc: true
|
||||
menu:
|
||||
main:
|
||||
parent: layout
|
||||
|
@@ -2,6 +2,7 @@
|
||||
author: "Arjen Schwarz"
|
||||
date: 2015-01-12
|
||||
linktitle: Automated deployments
|
||||
toc: true
|
||||
menu:
|
||||
main:
|
||||
parent: tutorials
|
||||
|
@@ -2,6 +2,8 @@
|
||||
author: "Michael Henderson"
|
||||
date: 2014-09-28
|
||||
linktitle: Creating a New Theme
|
||||
toc: true
|
||||
tocstyle: compact
|
||||
menu:
|
||||
main:
|
||||
parent: tutorials
|
||||
|
@@ -4,6 +4,7 @@ aliases:
|
||||
author: Spencer Lyon
|
||||
date: 2014-03-21
|
||||
linktitle: Hosting on GitHub
|
||||
toc: true
|
||||
menu:
|
||||
main:
|
||||
parent: tutorials
|
||||
|
@@ -2,6 +2,7 @@
|
||||
author: "Michael Henderson"
|
||||
date: 2015-02-22
|
||||
linktitle: Installing on Mac
|
||||
toc: true
|
||||
menu:
|
||||
main:
|
||||
parent: tutorials
|
||||
@@ -56,7 +57,7 @@ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/
|
||||
|
||||
When I did this, I had some problems with directory permissions. Searches on Google pointed me to pages that walked me through updating permissions on the `/usr/local` directory. Seemed scary, but it's worked well since.
|
||||
|
||||
## Step 2: Run the `brew` command to install `hugo`
|
||||
### Step 2: Run the `brew` command to install `hugo`
|
||||
|
||||
Replace `brew install hugo` with `brew install hugo --HEAD` if you
|
||||
want the absolute latest version—there might be bugs!
|
||||
@@ -129,7 +130,7 @@ $ tar tvf ~/Downloads/hugo_0.13_darwin_amd64.zip
|
||||
|
||||
The `.md` files are documentation. The other file is the executable.
|
||||
|
||||
## Step 4: Install into your bin directory
|
||||
### Step 4: Install into your bin directory
|
||||
|
||||
```
|
||||
$ # create the directory if needed
|
||||
|
@@ -2,6 +2,7 @@
|
||||
author: "Michael Henderson"
|
||||
date: 2015-03-30
|
||||
linktitle: Installing on Windows
|
||||
toc: true
|
||||
menu:
|
||||
main:
|
||||
parent: tutorials
|
||||
|
@@ -1,6 +1,8 @@
|
||||
---
|
||||
date: 2014-03-10
|
||||
linktitle: Migrating from Jekyll
|
||||
toc: true
|
||||
tocstyle: compact
|
||||
menu:
|
||||
main:
|
||||
parent: tutorials
|
||||
|
Reference in New Issue
Block a user