mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-12-11 05:14:06 -05:00
Copy edits variables
This commit is contained in:
parent
92726cf0a7
commit
fac13f4fde
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: Hugo Documentation
|
title: Hugo Documentation
|
||||||
linktitle: Hugo
|
linktitle: Hugo
|
||||||
description: Hugo is the world's fastest static website engine. It's written in Golang and developed by spf13 and friends.
|
description: Hugo is the world's fastest static website engine. It's written in Go (aka Golang) and developed by bep, spf13 and friends.
|
||||||
date: 2017-02-01
|
date: 2017-02-01
|
||||||
publishdate: 2017-02-01
|
publishdate: 2017-02-01
|
||||||
lastmod: 2017-02-01
|
lastmod: 2017-02-01
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: File Variables
|
title: File Variables
|
||||||
linktitle:
|
linktitle:
|
||||||
description: Hugo provides the ability to traverse your website's files on your server, including the local Hugo server.
|
description: "You can access filesystem-related data for a content file in the `.File` variable."
|
||||||
date: 2017-02-01
|
date: 2017-02-01
|
||||||
publishdate: 2017-02-01
|
publishdate: 2017-02-01
|
||||||
lastmod: 2017-02-01
|
lastmod: 2017-02-01
|
||||||
@ -18,8 +18,6 @@ aliases: [/variables/file-variables/]
|
|||||||
toc: false
|
toc: false
|
||||||
---
|
---
|
||||||
|
|
||||||
Hugo provides the ability to traverse your website's files on your server, including the local `Hugo server`. You can access file-system-related data for a piece of content via the `.File` variable.
|
|
||||||
|
|
||||||
{{% note "Rendering Local Files" %}}
|
{{% note "Rendering Local Files" %}}
|
||||||
For information on creating shortcodes and templates that tap into Hugo's file-related feature set, see [Local File Templates](/templates/files/).
|
For information on creating shortcodes and templates that tap into Hugo's file-related feature set, see [Local File Templates](/templates/files/).
|
||||||
{{% /note %}}
|
{{% /note %}}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: Git Info Variables
|
title: Git Info Variables
|
||||||
linktitle: Git Variables
|
linktitle: Git Variables
|
||||||
description:
|
description: Get the last Git revision information for every content file.
|
||||||
date: 2017-03-12
|
date: 2017-03-12
|
||||||
publishdate: 2017-03-12
|
publishdate: 2017-03-12
|
||||||
lastmod: 2017-03-12
|
lastmod: 2017-03-12
|
||||||
@ -19,8 +19,6 @@ toc: false
|
|||||||
wip: false
|
wip: false
|
||||||
---
|
---
|
||||||
|
|
||||||
Hugo provides a way to integrate Git data into your website.
|
|
||||||
|
|
||||||
{{% note "`.GitInfo` Performance Considerations" %}}
|
{{% note "`.GitInfo` Performance Considerations" %}}
|
||||||
Hugo's Git integrations should be fairly performant but *can* increase your build time. This will depend on the size of your Git history.
|
Hugo's Git integrations should be fairly performant but *can* increase your build time. This will depend on the size of your Git history.
|
||||||
{{% /note %}}
|
{{% /note %}}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: Hugo-specific Variables
|
title: Hugo-specific Variables
|
||||||
linktitle: Hugo Variables
|
linktitle: Hugo Variables
|
||||||
description: Hugo variables can be used in your templates to show metadata such as Hugo version and commit hashes.
|
description: The `.Hugo` variable provides easy access to Hugo-related data.
|
||||||
date: 2017-03-12
|
date: 2017-03-12
|
||||||
publishdate: 2017-03-12
|
publishdate: 2017-03-12
|
||||||
lastmod: 2017-03-12
|
lastmod: 2017-03-12
|
||||||
@ -19,7 +19,7 @@ toc: false
|
|||||||
wip: false
|
wip: false
|
||||||
---
|
---
|
||||||
|
|
||||||
The `.Hugo` variable provides easy access to Hugo-related data and contains the following fields:
|
It contains the following fields:
|
||||||
|
|
||||||
`.Hugo.Generator`
|
`.Hugo.Generator`
|
||||||
: `<meta>` tag for the version of Hugo that generated the site. `.Hugo.Generator` outputs a *complete* HTML tag; e.g. `<meta name="generator" content="Hugo 0.18" />`
|
: `<meta>` tag for the version of Hugo that generated the site. `.Hugo.Generator` outputs a *complete* HTML tag; e.g. `<meta name="generator" content="Hugo 0.18" />`
|
||||||
|
|||||||
@ -18,7 +18,7 @@ aliases: [/variables/menu/]
|
|||||||
toc: false
|
toc: false
|
||||||
---
|
---
|
||||||
|
|
||||||
A menu entry in a [menu template][] has the following properties:
|
The [menu template][] has the following properties:
|
||||||
|
|
||||||
`.URL`
|
`.URL`
|
||||||
: string
|
: string
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user