mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-25 15:58:53 +00:00
Add first round of single files for functions
This commit is contained in:
+2
-2
@@ -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/
|
||||
|
||||
+13
-13
@@ -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
|
||||
+14
-12
@@ -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:
|
||||
---
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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:
|
||||
---
|
||||
@@ -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,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:
|
||||
---
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user