mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 20:14:58 +00:00
Add first round of single files for functions
This commit is contained in:
1 parent
b854438906
commit
0d0e069960
532 files changed
+171
-100
No files matched your search
+2
-2
@@ -61,9 +61,9 @@ watch = true
|
|||||||
## Include jQuery 2.2.4 in your site head. (see /static/assets/js)
|
## Include jQuery 2.2.4 in your site head. (see /static/assets/js)
|
||||||
includejq = true
|
includejq = true
|
||||||
## Date the Site is Published, use YYYY-MM-DD
|
## Date the Site is Published, use YYYY-MM-DD
|
||||||
SitePublishDate = ""
|
sitepublishdate = ""
|
||||||
## Twitter handle without the "@"
|
## Twitter handle without the "@"
|
||||||
TwitterHandle = ""
|
twitterhandle = ""
|
||||||
## Facebook URL
|
## Facebook URL
|
||||||
facebook = ""
|
facebook = ""
|
||||||
## Default Image for Social Sharing. This image should live at static/images/
|
## Default Image for Social Sharing. This image should live at static/images/
|
||||||
|
|||||||
+13
-13
@@ -16,19 +16,18 @@ aliases: []
|
|||||||
notes:
|
notes:
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
Hugo boasts the following features:
|
Hugo boasts the following features:
|
||||||
|
|
||||||
### General
|
## General
|
||||||
|
|
||||||
* Extremely fast build times (≈1 ms per page)
|
* 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!
|
* 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/)
|
* Easy [installation](/overview/installing/)
|
||||||
* Render changes [on the fly](/overview/usage/) with [LiveReload](/extras/livereload/) as you develop
|
* Render changes [on the fly](/overview/usage/) with [LiveReload](/extras/livereload/) as you develop
|
||||||
* [Powerful Theming][]
|
* [Powerful Theming][]
|
||||||
* Host your site anywhere
|
* Host your site anywhere
|
||||||
|
|
||||||
### Organization
|
## Organization
|
||||||
|
|
||||||
* Straightforward [organization](/project-organization), including website sections
|
* Straightforward [organization](/project-organization), including website sections
|
||||||
* Customizable [URLs](/extras/urls/)
|
* Customizable [URLs](/extras/urls/)
|
||||||
@@ -40,7 +39,7 @@ Hugo boasts the following features:
|
|||||||
* [Permalink](/extras/permalinks/) pattern support
|
* [Permalink](/extras/permalinks/) pattern support
|
||||||
* [Aliases](/extras/aliases/) (redirects)
|
* [Aliases](/extras/aliases/) (redirects)
|
||||||
|
|
||||||
### Content
|
## Content
|
||||||
|
|
||||||
* Native [Markdown](/content/example/) support
|
* Native [Markdown](/content/example/) support
|
||||||
* Support for other languages through _external helpers_, see [supported formats](/content/supported-formats)
|
* 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
|
* ["Minutes to Read"](/layout/variables/) functionality
|
||||||
* ["Wordcount"](/layout/variables/) functionality
|
* ["Wordcount"](/layout/variables/) functionality
|
||||||
|
|
||||||
### Additional Features
|
## Additional Features
|
||||||
|
|
||||||
* Integrated [Disqus](https://disqus.com/) comment support
|
* Integrated [Disqus](https://disqus.com/) comment support
|
||||||
* Integrated [Google Analytics](https://google-analytics.com/) 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
|
* 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/)
|
* 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
|
||||||
+14
-12
@@ -1,16 +1,18 @@
|
|||||||
---
|
---
|
||||||
aliases: []
|
title: Content
|
||||||
date: 2016-12-26T06:42:59-06:00
|
linktitle:
|
||||||
description: null
|
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
|
draft: false
|
||||||
lastmod: 2017-01-01
|
slug:
|
||||||
linktitle: null
|
aliases: []
|
||||||
notes: null
|
notes:
|
||||||
publishdate: 2017-01-01
|
|
||||||
qr_description: null
|
|
||||||
qr_returns: null
|
|
||||||
slug: null
|
|
||||||
title: _index
|
|
||||||
weight: 1
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -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:
|
||||||
|
---
|
||||||
|
|
||||||
@@ -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:
|
||||||
|
---
|
||||||
@@ -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").
|
||||||
@@ -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:
|
||||||
|
---
|
||||||
@@ -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:
|
||||||
|
---
|
||||||
@@ -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:
|
||||||
|
---
|
||||||
File renamed without changes.
@@ -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:
|
||||||
|
---
|
||||||
|
|
||||||
Whitespace-only changes.
@@ -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:
|
||||||
|
---
|
||||||
|
|
||||||
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
File renamed without changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
File renamed without changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
@@ -2,13 +2,11 @@
|
|||||||
title: Download Hugo
|
title: Download Hugo
|
||||||
linktitle:
|
linktitle:
|
||||||
description:
|
description:
|
||||||
date: 2016-11-01
|
date: 2017-03-01
|
||||||
publishdate: 2016-11-01
|
publishdate: 2017-03-01
|
||||||
lastmod: 2016-11-01
|
lastmod: 2017-03-01
|
||||||
weight:
|
weight:
|
||||||
draft: false
|
draft: false
|
||||||
type:
|
|
||||||
layout:
|
|
||||||
slug:
|
slug:
|
||||||
aliases: []
|
aliases: []
|
||||||
notes:
|
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:
|
title:
|
||||||
linktitle:
|
linktitle:
|
||||||
description:
|
description:
|
||||||
qr_description:
|
|
||||||
qr_returns:
|
|
||||||
date: 2017-01-01
|
date: 2017-01-01
|
||||||
publishdate: 2017-01-01
|
publishdate:
|
||||||
lastmod: 2017-01-01
|
lastmod:
|
||||||
tags: []
|
tags: []
|
||||||
categories: []
|
categories: []
|
||||||
weight: 10
|
weight: 10
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
blog:
|
|
||||||
posts:
|
|
||||||
@@ -1,5 +1,9 @@
|
|||||||
{{- define "main" -}}
|
{{- define "main" -}}
|
||||||
<main class="main">
|
<main class="main">
|
||||||
|
<ul>
|
||||||
|
{{range .Data.Pages}}
|
||||||
|
<li><a href="/{{.Permalink}}">{{.Title}}</a></li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
</main>
|
</main>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
{{- define "main" -}}
|
{{- define "main" -}}
|
||||||
<main class="main">
|
<main class="main">
|
||||||
|
{{.Content}}
|
||||||
</main>
|
</main>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
@@ -2,9 +2,9 @@
|
|||||||
<!-- Preconnect API. For browser compatibility, check http://caniuse.com/#feat=link-rel-preconnect -->
|
<!-- Preconnect API. For browser compatibility, check http://caniuse.com/#feat=link-rel-preconnect -->
|
||||||
<link rel="preconnect" href="{{ .Site.BaseURL }}">
|
<link rel="preconnect" href="{{ .Site.BaseURL }}">
|
||||||
<link rel="canonical" href="{{ .Permalink }}">
|
<link rel="canonical" href="{{ .Permalink }}">
|
||||||
{{ if .RSSlink }}
|
{{ if .RSSLink }}
|
||||||
<link href="{{ .RSSlink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
|
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
|
||||||
<link href="{{ .RSSlink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
|
<link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if .IsPage }}
|
{{ if .IsPage }}
|
||||||
{{with .NextInSection }}
|
{{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) {
|
gulp.task('scripts', function(cb) {
|
||||||
pump([
|
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']),
|
gulp.src(['js/utils.js', 'js/scripts/*.js']),
|
||||||
// sourcemaps.init(),
|
// sourcemaps.init(),
|
||||||
babel({
|
babel({
|
||||||
|
|||||||
@@ -319,7 +319,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Font mixin
|
//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 {
|
@each $weight in $weights {
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "#{$font}";
|
font-family: "#{$font}";
|
||||||
|
|||||||
Loaded 100 of 532 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user