mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-19 13:44:48 -04:00
Add first round of single files for functions
This commit is contained in:
parent
b854438906
commit
0d0e069960
@ -61,9 +61,9 @@ watch = true
|
||||
## Include jQuery 2.2.4 in your site head. (see /static/assets/js)
|
||||
includejq = true
|
||||
## Date the Site is Published, use YYYY-MM-DD
|
||||
SitePublishDate = ""
|
||||
sitepublishdate = ""
|
||||
## Twitter handle without the "@"
|
||||
TwitterHandle = ""
|
||||
twitterhandle = ""
|
||||
## Facebook URL
|
||||
facebook = ""
|
||||
## Default Image for Social Sharing. This image should live at static/images/
|
||||
|
@ -16,19 +16,18 @@ aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
|
||||
Hugo boasts the following features:
|
||||
|
||||
### General
|
||||
## General
|
||||
|
||||
* Extremely fast build times (≈1 ms per page)
|
||||
* Completely cross platform: Runs on <i class="fa fa-apple"></i> Mac OS X, <i class="fa fa-linux"></i> Linux, <i class="fa fa-windows"></i> Windows, and more!
|
||||
* Easy [installation](/overview/installing/)
|
||||
* Render changes [on the fly](/overview/usage/) with [LiveReload](/extras/livereload/) as you develop
|
||||
* [Powerful Theming][]
|
||||
* Host your site anywhere
|
||||
* Extremely fast build times (≈1 ms per page)
|
||||
* Completely cross platform: Runs on <i class="fa fa-apple"></i> Mac OS X, <i class="fa fa-linux"></i> Linux, <i class="fa fa-windows"></i> Windows, and more!
|
||||
* Easy [installation](/overview/installing/)
|
||||
* Render changes [on the fly](/overview/usage/) with [LiveReload](/extras/livereload/) as you develop
|
||||
* [Powerful Theming][]
|
||||
* Host your site anywhere
|
||||
|
||||
### Organization
|
||||
## Organization
|
||||
|
||||
* Straightforward [organization](/project-organization), including website sections
|
||||
* Customizable [URLs](/extras/urls/)
|
||||
@ -40,7 +39,7 @@ Hugo boasts the following features:
|
||||
* [Permalink](/extras/permalinks/) pattern support
|
||||
* [Aliases](/extras/aliases/) (redirects)
|
||||
|
||||
### Content
|
||||
## Content
|
||||
|
||||
* Native [Markdown](/content/example/) support
|
||||
* Support for other languages through _external helpers_, see [supported formats](/content/supported-formats)
|
||||
@ -52,7 +51,7 @@ Hugo boasts the following features:
|
||||
* ["Minutes to Read"](/layout/variables/) functionality
|
||||
* ["Wordcount"](/layout/variables/) functionality
|
||||
|
||||
### Additional Features
|
||||
## Additional Features
|
||||
|
||||
* Integrated [Disqus](https://disqus.com/) comment support
|
||||
* Integrated [Google Analytics](https://google-analytics.com/) support
|
||||
@ -60,6 +59,7 @@ Hugo boasts the following features:
|
||||
* Support for [Go](http://golang.org/pkg/html/template/), [Amber](https://github.com/eknkc/amber) and [Ace](https://github.com/yosssi/ace) HTML templates
|
||||
* Syntax [highlighting](/extras/highlighting/) powered by [Pygments](http://pygments.org/)
|
||||
|
||||
See what's coming next in the [roadmap](/meta/roadmap/).
|
||||
See what's coming next in the [Hugo roadmap][].
|
||||
|
||||
[Powerful Theming]: /themes
|
||||
[Powerful Theming]: /themes
|
||||
[Hugo roadmap]: /about/roadmap
|
@ -1,16 +1,18 @@
|
||||
---
|
||||
aliases: []
|
||||
date: 2016-12-26T06:42:59-06:00
|
||||
description: null
|
||||
title: Content
|
||||
linktitle:
|
||||
description: How content is organized and managed with Hugo.
|
||||
date: 2017-01-09
|
||||
publishdate: 2017-01-09
|
||||
lastmod: 2017-01-09
|
||||
tags: [content, source, organization]
|
||||
categories: [content]
|
||||
weight: 01
|
||||
draft: false
|
||||
lastmod: 2017-01-01
|
||||
linktitle: null
|
||||
notes: null
|
||||
publishdate: 2017-01-01
|
||||
qr_description: null
|
||||
qr_returns: null
|
||||
slug: null
|
||||
title: _index
|
||||
weight: 1
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
|
||||
|
||||
|
16
content/content/archetypes.md
Normal file
16
content/content/archetypes.md
Normal file
@ -0,0 +1,16 @@
|
||||
---
|
||||
title: Archetypes
|
||||
linktitle:
|
||||
description: Archetypes allow you to create and set default parameters from the command line according to the content section.
|
||||
date: 2017-01-09
|
||||
publishdate: 2017-01-09
|
||||
lastmod: 2017-01-09
|
||||
tags: [archetypes,generators]
|
||||
categories: [content]
|
||||
weight: 50
|
||||
draft: false
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
15
content/content/content-summaries.md
Normal file
15
content/content/content-summaries.md
Normal file
@ -0,0 +1,15 @@
|
||||
---
|
||||
title: Content Summaries
|
||||
linktitle:
|
||||
description:
|
||||
date: 2017-01-10
|
||||
publishdate: 2017-01-10
|
||||
lastmod: 2017-01-10
|
||||
tags: []
|
||||
categories: []
|
||||
weight:
|
||||
draft: false
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
18
content/content/front-matter.md
Normal file
18
content/content/front-matter.md
Normal file
@ -0,0 +1,18 @@
|
||||
---
|
||||
title: Front Matter
|
||||
linktitle:
|
||||
description: Hugo allows you to add front matter in yaml, toml, or json to you content/markdown files.
|
||||
date: 2017-01-09
|
||||
publishdate: 2017-01-09
|
||||
lastmod: 2017-01-09
|
||||
tags: [content, front matter, yaml, toml, json]
|
||||
weight:
|
||||
draft: false
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
## Parameters
|
||||
|
||||
(Previously referred to as "variables").
|
14
content/content/markdown-and-supported-formats.md
Normal file
14
content/content/markdown-and-supported-formats.md
Normal file
@ -0,0 +1,14 @@
|
||||
---
|
||||
title: Markdown and Supported Formats
|
||||
linktitle:
|
||||
description: Hugo uses the BlackFriday markdown converted for content files but also provides support for additional syntaxes (eg, Asciidoc) via external helpers.
|
||||
date: 2017-01-10
|
||||
publishdate: 2017-01-10
|
||||
lastmod: 2017-01-10
|
||||
tags: []
|
||||
weight:
|
||||
draft: false
|
||||
slug:
|
||||
aliases: [/content/markdown-extras/,/content/supported-formats/]
|
||||
notes:
|
||||
---
|
14
content/content/multilingual-mode.md
Normal file
14
content/content/multilingual-mode.md
Normal file
@ -0,0 +1,14 @@
|
||||
---
|
||||
title: Multilingual Mode
|
||||
linktitle:
|
||||
description:
|
||||
date: 2017-01-10
|
||||
publishdate: 2017-01-10
|
||||
lastmod: 2017-01-10
|
||||
tags: []
|
||||
weight:
|
||||
draft: false
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
14
content/content/sections.md
Normal file
14
content/content/sections.md
Normal file
@ -0,0 +1,14 @@
|
||||
---
|
||||
title: Site Sections
|
||||
linktitle:
|
||||
description:
|
||||
date: 2017-01-10
|
||||
publishdate: 2017-01-10
|
||||
lastmod: 2017-01-10
|
||||
tags: []
|
||||
weight:
|
||||
draft: false
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
15
content/content/types-and-layouts.md
Normal file
15
content/content/types-and-layouts.md
Normal file
@ -0,0 +1,15 @@
|
||||
---
|
||||
title: Types and Layouts
|
||||
linktitle:
|
||||
description:
|
||||
date: 2017-01-09
|
||||
publishdate: 2017-01-09
|
||||
lastmod: 2017-01-09
|
||||
tags: [types,layouts]
|
||||
weight:
|
||||
draft: false
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
0
content/functions/SiteGetPage.md
Normal file
0
content/functions/SiteGetPage.md
Normal file
15
content/functions/_index.md
Normal file
15
content/functions/_index.md
Normal file
@ -0,0 +1,15 @@
|
||||
---
|
||||
title: Functions
|
||||
linktitle:
|
||||
description: Description for this page
|
||||
date: 2017-01-09
|
||||
publishdate: 2017-01-09
|
||||
lastmod: 2017-01-09
|
||||
tags: [functions,templating]
|
||||
weight: 01
|
||||
draft: false
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
0
content/functions/absLangURL.md
Normal file
0
content/functions/absLangURL.md
Normal file
0
content/functions/absURL.md
Normal file
0
content/functions/absURL.md
Normal file
0
content/functions/add.md
Normal file
0
content/functions/add.md
Normal file
0
content/functions/after.md
Normal file
0
content/functions/after.md
Normal file
0
content/functions/apply.md
Normal file
0
content/functions/apply.md
Normal file
0
content/functions/base64Decode.md
Normal file
0
content/functions/base64Decode.md
Normal file
0
content/functions/base64Encode.md
Normal file
0
content/functions/base64Encode.md
Normal file
0
content/functions/chomp.md
Normal file
0
content/functions/chomp.md
Normal file
0
content/functions/countrunes.md
Normal file
0
content/functions/countrunes.md
Normal file
0
content/functions/countwords.md
Normal file
0
content/functions/countwords.md
Normal file
0
content/functions/default.md
Normal file
0
content/functions/default.md
Normal file
0
content/functions/delimit.md
Normal file
0
content/functions/delimit.md
Normal file
0
content/functions/dict.md
Normal file
0
content/functions/dict.md
Normal file
0
content/functions/div.md
Normal file
0
content/functions/div.md
Normal file
0
content/functions/echoparam.md
Normal file
0
content/functions/echoparam.md
Normal file
0
content/functions/emojify.md
Normal file
0
content/functions/emojify.md
Normal file
0
content/functions/findRe.md
Normal file
0
content/functions/findRe.md
Normal file
0
content/functions/first.md
Normal file
0
content/functions/first.md
Normal file
0
content/functions/getenv.md
Normal file
0
content/functions/getenv.md
Normal file
0
content/functions/hasPrefix.md
Normal file
0
content/functions/hasPrefix.md
Normal file
0
content/functions/highlight.md
Normal file
0
content/functions/highlight.md
Normal file
0
content/functions/htmlEscape.md
Normal file
0
content/functions/htmlEscape.md
Normal file
0
content/functions/htmlUnescape.md
Normal file
0
content/functions/htmlUnescape.md
Normal file
0
content/functions/humanize.md
Normal file
0
content/functions/humanize.md
Normal file
0
content/functions/imageConfig.md
Normal file
0
content/functions/imageConfig.md
Normal file
0
content/functions/in.md
Normal file
0
content/functions/in.md
Normal file
0
content/functions/int.md
Normal file
0
content/functions/int.md
Normal file
0
content/functions/intersect.md
Normal file
0
content/functions/intersect.md
Normal file
0
content/functions/isset.md
Normal file
0
content/functions/isset.md
Normal file
0
content/functions/jsonify.md
Normal file
0
content/functions/jsonify.md
Normal file
0
content/functions/last.md
Normal file
0
content/functions/last.md
Normal file
0
content/functions/lower.md
Normal file
0
content/functions/lower.md
Normal file
0
content/functions/markdownify.md
Normal file
0
content/functions/markdownify.md
Normal file
0
content/functions/md5.md
Normal file
0
content/functions/md5.md
Normal file
0
content/functions/mod.md
Normal file
0
content/functions/mod.md
Normal file
0
content/functions/modBool.md
Normal file
0
content/functions/modBool.md
Normal file
0
content/functions/mul.md
Normal file
0
content/functions/mul.md
Normal file
0
content/functions/partialCached.md
Normal file
0
content/functions/partialCached.md
Normal file
0
content/functions/plainify.md
Normal file
0
content/functions/plainify.md
Normal file
0
content/functions/pluralize.md
Normal file
0
content/functions/pluralize.md
Normal file
0
content/functions/printf.md
Normal file
0
content/functions/printf.md
Normal file
0
content/functions/querify.md
Normal file
0
content/functions/querify.md
Normal file
0
content/functions/readDir.md
Normal file
0
content/functions/readDir.md
Normal file
0
content/functions/readFile.md
Normal file
0
content/functions/readFile.md
Normal file
0
content/functions/rel.md
Normal file
0
content/functions/rel.md
Normal file
0
content/functions/relLangURL.md
Normal file
0
content/functions/relLangURL.md
Normal file
0
content/functions/relURL.md
Normal file
0
content/functions/relURL.md
Normal file
0
content/functions/relref.md
Normal file
0
content/functions/relref.md
Normal file
0
content/functions/render.md
Normal file
0
content/functions/render.md
Normal file
0
content/functions/replace.md
Normal file
0
content/functions/replace.md
Normal file
0
content/functions/safeCSS.md
Normal file
0
content/functions/safeCSS.md
Normal file
0
content/functions/safeHTML.md
Normal file
0
content/functions/safeHTML.md
Normal file
0
content/functions/safeHTMLAttr.md
Normal file
0
content/functions/safeHTMLAttr.md
Normal file
0
content/functions/safeJS.md
Normal file
0
content/functions/safeJS.md
Normal file
0
content/functions/safeURL.md
Normal file
0
content/functions/safeURL.md
Normal file
0
content/functions/seq.md
Normal file
0
content/functions/seq.md
Normal file
0
content/functions/sha1.md
Normal file
0
content/functions/sha1.md
Normal file
0
content/functions/sha256.md
Normal file
0
content/functions/sha256.md
Normal file
0
content/functions/shuffle.md
Normal file
0
content/functions/shuffle.md
Normal file
0
content/functions/singularize.md
Normal file
0
content/functions/singularize.md
Normal file
0
content/functions/slice.md
Normal file
0
content/functions/slice.md
Normal file
0
content/functions/slicestr.md
Normal file
0
content/functions/slicestr.md
Normal file
0
content/functions/sort.md
Normal file
0
content/functions/sort.md
Normal file
0
content/functions/split.md
Normal file
0
content/functions/split.md
Normal file
0
content/functions/string.md
Normal file
0
content/functions/string.md
Normal file
0
content/functions/sub.md
Normal file
0
content/functions/sub.md
Normal file
0
content/functions/substr.md
Normal file
0
content/functions/substr.md
Normal file
0
content/functions/time.md
Normal file
0
content/functions/time.md
Normal file
0
content/functions/title.md
Normal file
0
content/functions/title.md
Normal file
0
content/functions/trim.md
Normal file
0
content/functions/trim.md
Normal file
0
content/functions/upper.md
Normal file
0
content/functions/upper.md
Normal file
0
content/functions/urlize.md
Normal file
0
content/functions/urlize.md
Normal file
0
content/functions/where.md
Normal file
0
content/functions/where.md
Normal file
@ -2,13 +2,11 @@
|
||||
title: Download Hugo
|
||||
linktitle:
|
||||
description:
|
||||
date: 2016-11-01
|
||||
publishdate: 2016-11-01
|
||||
lastmod: 2016-11-01
|
||||
date: 2017-03-01
|
||||
publishdate: 2017-03-01
|
||||
lastmod: 2017-03-01
|
||||
weight:
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
|
@ -1,16 +0,0 @@
|
||||
---
|
||||
aliases: []
|
||||
date: 2016-12-26T06:45:42-06:00
|
||||
description: null
|
||||
draft: false
|
||||
lastmod: 2017-01-01
|
||||
linktitle: null
|
||||
notes: null
|
||||
publishdate: 2017-01-01
|
||||
qr_description: null
|
||||
qr_returns: null
|
||||
slug: null
|
||||
title: _index
|
||||
weight: 1
|
||||
---
|
||||
|
@ -1,19 +0,0 @@
|
||||
---
|
||||
title: date
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
date: 2016-11-01
|
||||
publishdate: 2016-11-01
|
||||
lastmod: 2016-11-01
|
||||
weight:
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Saepe voluptatum placeat pariatur dolor, distinctio eligendi consequuntur, quis atque natus excepturi quasi libero sed non quisquam nemo veritatis tempore odio aperiam.
|
@ -1,16 +0,0 @@
|
||||
---
|
||||
aliases: []
|
||||
date: 2016-12-26T06:45:54-06:00
|
||||
description: null
|
||||
draft: false
|
||||
lastmod: 2017-01-01
|
||||
linktitle: null
|
||||
notes: null
|
||||
publishdate: 2017-01-01
|
||||
qr_description: null
|
||||
qr_returns: null
|
||||
slug: null
|
||||
title: _index
|
||||
weight: 1
|
||||
---
|
||||
|
@ -2,11 +2,9 @@
|
||||
title:
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
date: 2017-01-01
|
||||
publishdate: 2017-01-01
|
||||
lastmod: 2017-01-01
|
||||
publishdate:
|
||||
lastmod:
|
||||
tags: []
|
||||
categories: []
|
||||
weight: 10
|
||||
|
@ -1,2 +0,0 @@
|
||||
blog:
|
||||
posts:
|
@ -1,5 +1,9 @@
|
||||
{{- define "main" -}}
|
||||
<main class="main">
|
||||
|
||||
<ul>
|
||||
{{range .Data.Pages}}
|
||||
<li><a href="/{{.Permalink}}">{{.Title}}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</main>
|
||||
{{- end -}}
|
@ -1,5 +1,5 @@
|
||||
{{- define "main" -}}
|
||||
<main class="main">
|
||||
|
||||
{{.Content}}
|
||||
</main>
|
||||
{{- end -}}
|
@ -2,9 +2,9 @@
|
||||
<!-- Preconnect API. For browser compatibility, check http://caniuse.com/#feat=link-rel-preconnect -->
|
||||
<link rel="preconnect" href="{{ .Site.BaseURL }}">
|
||||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
{{ if .RSSlink }}
|
||||
<link href="{{ .RSSlink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
|
||||
<link href="{{ .RSSlink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
|
||||
{{ if .RSSLink }}
|
||||
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
|
||||
<link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
|
||||
{{ end }}
|
||||
{{ if .IsPage }}
|
||||
{{with .NextInSection }}
|
||||
|
@ -0,0 +1,3 @@
|
||||
<nav id="site-navigation" class="site-navigation">
|
||||
|
||||
</nav>
|
@ -62,7 +62,6 @@ gulp.task("image-resize", () => {
|
||||
|
||||
gulp.task('scripts', function(cb) {
|
||||
pump([
|
||||
// gulp.src(['js/polyfills.js', 'js/utils.js', 'js/_velocity.min.js','js/_velocity.ui.min.js', 'js/scripts/*.js']),
|
||||
gulp.src(['js/utils.js', 'js/scripts/*.js']),
|
||||
// sourcemaps.init(),
|
||||
babel({
|
||||
|
@ -319,7 +319,7 @@
|
||||
}
|
||||
|
||||
//Font mixin
|
||||
@mixin fonts($font: null, $path: '/css/fonts', $weights: 100 200 300 400 500 600 700 800 900, $woff2: false, $italic: true) {
|
||||
@mixin fonts($font: null, $path: '/fonts', $weights: 100 200 300 400 500 600 700 800 900, $woff2: false, $italic: true) {
|
||||
@each $weight in $weights {
|
||||
@font-face {
|
||||
font-family: "#{$font}";
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user