mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 18:15:45 +00:00
Update shortcodes, needs works, and toc styles
This commit is contained in:
1 parent
6f0eec3136
commit
cbd08323b3
136 files changed
+1088
-568
No files matched your search
@@ -1,7 +1,7 @@
|
||||
---
|
||||
title: "Content Management"
|
||||
linktitle: "Content Management"
|
||||
description: An introduction to how Hugo expects you to organize your content.
|
||||
description: An introduction to how Hugo helps you manage content.
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
title: Content Sections
|
||||
linktitle: Content Sections
|
||||
description:
|
||||
description: Hugo assumes that the same structure that works to organize your source content is used to organize the rendered site.
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: Content Types
|
||||
linktitle:
|
||||
linktitle: Content Types
|
||||
description:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
@@ -29,8 +29,7 @@ Alternatively, you can set the content type in a content file's metadata (i.e.,
|
||||
|
||||
You can manually add files to your content directories, but Hugo has the ability to create and populate a new content file with preconfigured front matter via [archetypes][].
|
||||
|
||||
|
||||
## Defining a content type
|
||||
## Defining a Content Type
|
||||
|
||||
Creating a new content type is easy in Hugo. You simply provide the templates and archetype that the new type will use. You only need to define the templates, archetypes and/or views unique to that content type. Hugo will fall back to using the general templates and default archetype whenever a specific file is not present.
|
||||
|
||||
@@ -58,9 +57,10 @@ Many sites support rendering content in a few different ways, for instance, a si
|
||||
|
||||
Create an archetype file for your type at `yourtype.md` in the `/archetypes` directory; e.g., `/archetypes/post.md`.
|
||||
|
||||
More details about archetypes can be found in the [archetypes][] documentation.
|
||||
More details about archetypes can be found in the [archetypes documentation][].
|
||||
|
||||
[archetypes]: /content-management/archetypes/
|
||||
[archetypes documentation]: /content-management/archetypes/
|
||||
[sections]: /content-sections/
|
||||
[front matter]: /content-management/front-matter/
|
||||
[list of contents on a single page]: /templates/list-and-section-templates/
|
||||
|
||||
@@ -6,7 +6,7 @@ date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-01-09
|
||||
categories: [content management]
|
||||
tags: [cross references, anchors]
|
||||
tags: [cross references, anchors, urls]
|
||||
weight: 80
|
||||
draft: false
|
||||
slug:
|
||||
|
||||
@@ -6,11 +6,11 @@ date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
categories: [templating,content management]
|
||||
tags: [lists,sections]
|
||||
categories: [templating]
|
||||
tags: [lists,sections,menus]
|
||||
draft: false
|
||||
slug:
|
||||
aliases: [/extras/menus/]
|
||||
toc: false
|
||||
notes:
|
||||
---
|
||||
|
||||
---
|
||||
@@ -6,11 +6,11 @@ date: 2017-01-10
|
||||
publishdate: 2017-01-10
|
||||
lastmod: 2017-01-10
|
||||
categories: [content management]
|
||||
tags: [multilingual,i189,]
|
||||
tags: [multilingual,i18n]
|
||||
weight: 120
|
||||
draft: false
|
||||
slug:
|
||||
aliases: []
|
||||
toc:
|
||||
toc: true
|
||||
notes:
|
||||
---
|
||||
@@ -0,0 +1,470 @@
|
||||
---
|
||||
title: Shortcodes
|
||||
linktitle:
|
||||
description:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight: 25
|
||||
tags: [markdown,content]
|
||||
categories: [content management]
|
||||
draft: false
|
||||
slug:
|
||||
aliases: [/extras/shortcodes/]
|
||||
toc: true
|
||||
notes:
|
||||
---
|
||||
|
||||
Hugo uses Markdown for its simple content format. However, there are a lot of things that Markdown doesn’t support well.
|
||||
|
||||
We are unwilling to accept being constrained by our simple format. Also unacceptable is writing raw HTML in our Markdown every time we want to include unsupported content such as a video. To do so is in complete opposition to the intent of using a bare-bones format for our content and utilizing templates to apply styling for display.
|
||||
|
||||
To avoid both of these limitations, Hugo created **shortcodes**.
|
||||
|
||||
A shortcode is a simple snippet inside a content file that Hugo will render using a predefined template. Note that shortcodes will not work in template files---if you need a functionality like that in a template, you most likely want a [partial template][] instead.
|
||||
|
||||
Another benefit is, you can update your shortcode with any related new classes or techniques, and upon generation, Hugo will easily merge in your changes. You avoid a possibly complicated search and replace operation.
|
||||
|
||||
## Using a shortcode
|
||||
|
||||
In your content files, a shortcode can be called by using the `{{%/* name parameters*/%}}` form. Shortcode parameters are space delimited. Parameters with spaces can be quoted.
|
||||
|
||||
The first word is always the name of the shortcode. Parameters follow the name.
|
||||
Depending upon how the shortcode is defined, the parameters may be named,
|
||||
positional or both (although you can't mixed parameter types in a single call).
|
||||
The format for named parameters models that of HTML with the format
|
||||
`name="value"`.
|
||||
|
||||
Some shortcodes use or require closing shortcodes. Like HTML, the opening and closing shortcodes match (name only), the closing being prepended with a slash.
|
||||
|
||||
Example of a paired shortcode:
|
||||
|
||||
```golang
|
||||
{{</* highlight go */>}} A bunch of code here {{</* /highlight */>}}
|
||||
```
|
||||
|
||||
The examples above use two different delimiters, the difference being the `%` and the `<` character:
|
||||
|
||||
### Shortcodes with Markdown
|
||||
|
||||
The `%` characters indicates that the shortcode's inner content (`.Inner`) needs further processing by the page's rendering processor (i.e. Markdown), which would be needed to convert `**World**` to `<strong>World</strong>` in the following example:
|
||||
|
||||
```golang
|
||||
{{%/* myshortcode */%}}Hello **World!**{{%/* /myshortcode */%}}
|
||||
```
|
||||
|
||||
### Shortcodes without Markdown
|
||||
|
||||
The `<` character indicates that the shortcode's inner content doesn't need any further rendering, this will typically be pure HTML:
|
||||
|
||||
```golang
|
||||
{{</* myshortcode */>}}<p>Hello <strong>World!</strong></p>{{</* /myshortcode */>}}
|
||||
```
|
||||
|
||||
## Built-in Shortcodes
|
||||
|
||||
Hugo ships with a set of predefined shortcodes.
|
||||
|
||||
### `highlight`
|
||||
|
||||
This shortcode will convert the source code provided into syntax highlighted
|
||||
HTML. Read more on [highlighting](/extras/highlighting/). `highlight` takes exactly one required parameter of _language_ and requires a closing shortcode.
|
||||
|
||||
#### Example `highlight` Input
|
||||
|
||||
{{% input "highlight-shortcode.md" %}}
|
||||
```golang
|
||||
{{</* highlight html */>}}
|
||||
<section id="main">
|
||||
<div>
|
||||
<h1 id="title">{{ .Title }}</h1>
|
||||
{{ range .Data.Pages }}
|
||||
{{ .Render "summary"}}
|
||||
{{ end }}
|
||||
</div>
|
||||
</section>
|
||||
{{</* /highlight */>}}
|
||||
```
|
||||
{{% /input %}}
|
||||
|
||||
#### Example `highlight` Output
|
||||
|
||||
{{% output "syntax-highlighted.html" %}}
|
||||
```html
|
||||
<span style="color: #f92672"><section</span> <span style="color: #a6e22e">id=</span><span style="color: #e6db74">"main"</span><span style="color: #f92672">></span>
|
||||
<span style="color: #f92672"><div></span>
|
||||
<span style="color: #f92672"><h1</span> <span style="color: #a6e22e">id=</span><span style="color: #e6db74">"title"</span><span style="color: #f92672">></span>{{ .Title }}<span style="color: #f92672"></h1></span>
|
||||
{{ range .Data.Pages }}
|
||||
{{ .Render "summary"}}
|
||||
{{ end }}
|
||||
<span style="color: #f92672"></div></span>
|
||||
<span style="color: #f92672"></section></span>
|
||||
```
|
||||
{{% /output %}}
|
||||
|
||||
### `figure`
|
||||
|
||||
`figure` is simply an extension of the image capabilities present with Markdown.`figure` provides the ability to add captions, CSS classes, alt text, links etc.
|
||||
|
||||
`figure` can use the following named parameters:
|
||||
|
||||
* src
|
||||
* link
|
||||
* title
|
||||
* caption
|
||||
* class
|
||||
* attr (attribution)
|
||||
* attrlink
|
||||
* alt
|
||||
|
||||
#### Example `figure` Input
|
||||
|
||||
```markdown
|
||||
{{</* figure src="/media/spf13.jpg" title="Steve Francia" */>}}
|
||||
```
|
||||
|
||||
#### Example `figure` Output
|
||||
|
||||
<figure>
|
||||
<img src="/media/spf13.jpg" />
|
||||
<figcaption>
|
||||
<h4>Steve Francia</h4>
|
||||
</figcaption>
|
||||
</figure>
|
||||
|
||||
### `ref` and `relref`
|
||||
|
||||
These shortcodes will look up the pages by their relative path (e.g., `blog/post.md`) or their logical name (`post.md`) and return the permalink (`ref`) or relative permalink (`relref`) for the found page.
|
||||
|
||||
`ref` and `relref` also make it possible to make fragmentary links that work for the header links generated by Hugo.
|
||||
|
||||
{{% note "More on Cross References" %}}
|
||||
Read a more extensive description of `ref` and `relref` in the [cross-references][] documentation.
|
||||
{{% /note %}}
|
||||
|
||||
`ref` and `relref` take exactly one required parameter of _reference_.
|
||||
|
||||
#### Example `ref` and `relref` Input
|
||||
|
||||
```markdown
|
||||
[Neat]({{</* ref "blog/neat.md" */>}})
|
||||
[Who]({{</* relref "about.md#who" */>}})
|
||||
```
|
||||
|
||||
#### Example `ref` and `relref` Output
|
||||
|
||||
Assuming that standard Hugo pretty URLs are turned on.
|
||||
|
||||
```markdown
|
||||
<a href="/blog/neat">Neat</a>
|
||||
<a href="/about/#who:c28654c202e73453784cfd2c5ab356c0">Who</a>
|
||||
```
|
||||
|
||||
### `tweet` (Twitter)
|
||||
|
||||
You want to include a single tweet into your blog post? Everything you need is the URL of the tweet. For example, let's say you want to include the following tweet from `https://twitter.com/spf13/status/666616452582129664`. Pass the tweet's ID from the URL as parameter to the shortcode as shown below:
|
||||
|
||||
#### Example `tweet` Input
|
||||
|
||||
```markdown
|
||||
{{</* tweet 666616452582129664 */>}}
|
||||
```
|
||||
|
||||
### `youtube`
|
||||
|
||||
This shortcode embeds a responsive video player for [YouTube videos][]. Only the ID of the video is required, e.g.:
|
||||
|
||||
* https://www.youtube.com/watch?v=w7Ft2ymGmfc
|
||||
|
||||
Copy the YouTube video ID that follows `v=` in the video's URL and pass it to the `youtube` shortcode:
|
||||
|
||||
```markdown
|
||||
{{</* youtube w7Ft2ymGmfc */>}}
|
||||
```
|
||||
|
||||
Furthermore, you can autostart the embedded video by setting the `autostart` parameter to true. Remember that you can't mix named an unamed parameters. Assign the yet unamed video id to the parameter `id` like below too.
|
||||
|
||||
```markdown
|
||||
{{</* youtube id="w7Ft2ymGmfc" autoplay="true" */>}}
|
||||
```
|
||||
|
||||
### `vimeo`
|
||||
|
||||
Adding a video from [Vimeo][] is equivalent to the YouTube shortcode above. Extract the ID from the URL, e.g.:
|
||||
|
||||
* https://vimeo.com/channels/staffpicks/146022717
|
||||
|
||||
and pass it to the shortcode:
|
||||
|
||||
```golang
|
||||
{{</* vimeo 146022717 */>}}
|
||||
```
|
||||
|
||||
### `gist` (GitHub)
|
||||
|
||||
Including code snippets with GitHub gists while writing a tutorial is common situation bloggers face. With a given URL of the gist, e.g.:
|
||||
|
||||
* https://gist.github.com/spf13/7896402
|
||||
|
||||
pass the owner and the ID of the gist to the shortcode:
|
||||
|
||||
```
|
||||
{{</* gist spf13 7896402 */>}}
|
||||
```
|
||||
|
||||
If the gist contains several files and you want to quote just one of them, you can pass the filename (quoted) as an optional third argument:
|
||||
|
||||
```golang
|
||||
{{</* gist spf13 7896402 "img.html" */>}}
|
||||
```
|
||||
|
||||
### `speakerdeck`
|
||||
|
||||
To embed slides from [Speaker Deck][], click on "< /> Embed" (under Share right next to the template on Speaker Deck) and copy the URL, e.g.:
|
||||
|
||||
<script async class="speakerdeck-embed" data-id="4e8126e72d853c0060001f97" data-ratio="1.33333333333333" src="//speakerdeck.com/assets/embed.js"></script>
|
||||
|
||||
Extract the value from the field `data-id` and pass it to the shortcode:
|
||||
|
||||
{{</* speakerdeck 4e8126e72d853c0060001f97 */>}}
|
||||
|
||||
### Instagram
|
||||
|
||||
If you'd like to embed photo from [Instagram](https://www.instagram.com/), all you need is photo ID from the URL, e. g.:
|
||||
|
||||
* https://www.instagram.com/p/BMokmydjG-M/
|
||||
|
||||
Pass it to the shortcode:
|
||||
|
||||
```golang
|
||||
{{</* instagram BMokmydjG-M */>}}
|
||||
```
|
||||
|
||||
Optionally, hide caption:
|
||||
|
||||
```golang
|
||||
{{</* instagram BMokmydjG-M hidecaption */>}}
|
||||
```
|
||||
|
||||
## Creating your own shortcodes
|
||||
|
||||
To create a shortcode, place a template in the `layouts/shortcodes` directory of your [source organization][]. The template name will be the name of the shortcode. In creating a shortcode, you can choose if the shortcode will use _positional parameters_, or _named parameters_, or _both_. A good rule of thumb is that if a shortcode has a single required value in the case of the `youtube` example below, then positional works very well. For more complex layouts with optional parameters, named parameters work best. Allowing both types of parameters is useful for complex layouts where you want to set default values that can be overridden.
|
||||
|
||||
### Accessing Parameters
|
||||
|
||||
To access a parameter in any shortcode, use the `.Get` method. Whether you pass a key (string) or a number to the `.Get` method depends on whether you are accessing a named or positional parameter, respectively.
|
||||
|
||||
To access a parameter by name, the `.Get` method followed by the named parameter as a quoted string. Named parameters are less terse but do not require that a content author be mindful of the order of parameters.
|
||||
|
||||
```golang
|
||||
{{ .Get "class" }}
|
||||
```
|
||||
|
||||
To access a parameter by position, the `.Get` method can be used, keeping in mind that the first positional parameter within the shortcode declaration starts at `0`:
|
||||
|
||||
```golang
|
||||
{{ .Get 0 }}
|
||||
```
|
||||
|
||||
`with` is great when the output depends on a parameter being set:
|
||||
|
||||
```golang
|
||||
{{ with .Get "class"}} class="{{.}}"{{ end }}
|
||||
```
|
||||
|
||||
`.Get` can also be used to check if a parameter has been provided. This is
|
||||
most helpful when the condition depends on either of the values, or both:
|
||||
|
||||
```golang
|
||||
{{ or .Get "title" | .Get "alt" | if }} alt="{{ with .Get "alt"}}{{.}}{{else}}{{.Get "title"}}{{end}}"{{ end }}
|
||||
```
|
||||
|
||||
If a closing shortcode is used, the variable `.Inner` will be populated with all
|
||||
of the content between the opening and closing shortcodes. If a closing
|
||||
shortcode is required, you can check the length of `.Inner` and provide a warning
|
||||
to the user.
|
||||
|
||||
A shortcode with `.Inner` content can be used without the inline content, and without the closing shortcode, by using the self-closing syntax:
|
||||
|
||||
```markdown
|
||||
{{</* innershortcode /*/>}}
|
||||
```
|
||||
|
||||
The variable `.Params` contains the list of parameters in case you need to do more complicated things than `.Get`. It is sometimes useful to provide a flexible shortcode that can take named or positional parameters. To meet this need, Hugo shortcodes have `.IsNamedParams`, a boolean available that can be used such as `{{ if .IsNamedParams }}...{{ else }}...{{ end }}`. See the `Single Flexible Example` below for an example.
|
||||
|
||||
You can also use the variable `.Page` to access all the normal [page variables][].
|
||||
|
||||
A shortcodes can be nested. In a nested shortcode you can access the parent shortcode context with `.Parent`. This can be very useful for inheritance of common shortcode parameters from the root.
|
||||
|
||||
### Single Positional Example: `youtube`
|
||||
|
||||
```html
|
||||
{{</* youtube 09jf3ow9jfw */>}}
|
||||
```
|
||||
|
||||
Would load the template at `/layouts/shortcodes/youtube.html`:
|
||||
|
||||
{{% input "/layouts/shortcodes/youtube.html" %}}
|
||||
```html
|
||||
<div class="embed video-player">
|
||||
<iframe class="youtube-player" type="text/html" width="640" height="385" src="http://www.youtube.com/embed/{{ index .Params 0 }}" allowfullscreen frameborder="0">
|
||||
</iframe>
|
||||
</div>
|
||||
```
|
||||
{{% /input %}}
|
||||
|
||||
This would be rendered as:
|
||||
|
||||
{{% output "youtube-embed.html" %}}
|
||||
```html
|
||||
<div class="embed video-player">
|
||||
<iframe class="youtube-player" type="text/html"
|
||||
width="640" height="385"
|
||||
src="http://www.youtube.com/embed/09jf3ow9jfw"
|
||||
allowfullscreen frameborder="0">
|
||||
</iframe>
|
||||
</div>
|
||||
```
|
||||
{{% /output %}}
|
||||
|
||||
### Single Named Example: `image`
|
||||
|
||||
{{% input "content-image.md" %}}
|
||||
```markdown
|
||||
{{</* img src="/media/spf13.jpg" title="Steve Francia" */>}}
|
||||
```
|
||||
{{% /input %}}
|
||||
|
||||
Would load the template at `/layouts/shortcodes/img.html`:
|
||||
|
||||
{{% input "/layouts/shortcodes/img.html" %}}
|
||||
```html
|
||||
<!-- image -->
|
||||
<figure {{ with .Get "class" }}class="{{.}}"{{ end }}>
|
||||
{{ with .Get "link"}}<a href="{{.}}">{{ end }}
|
||||
<img src="{{ .Get "src" }}" {{ if or (.Get "alt") (.Get "caption") }}alt="{{ with .Get "alt"}}{{.}}{{else}}{{ .Get "caption" }}{{ end }}"{{ end }} />
|
||||
{{ if .Get "link"}}</a>{{ end }}
|
||||
{{ if or (or (.Get "title") (.Get "caption")) (.Get "attr")}}
|
||||
<figcaption>{{ if isset .Params "title" }}
|
||||
<h4>{{ .Get "title" }}</h4>{{ end }}
|
||||
{{ if or (.Get "caption") (.Get "attr")}}<p>
|
||||
{{ .Get "caption" }}
|
||||
{{ with .Get "attrlink"}}<a href="{{.}}"> {{ end }}
|
||||
{{ .Get "attr" }}
|
||||
{{ if .Get "attrlink"}}</a> {{ end }}
|
||||
</p> {{ end }}
|
||||
</figcaption>
|
||||
{{ end }}
|
||||
</figure>
|
||||
<!-- image -->
|
||||
```
|
||||
{{% /input %}}
|
||||
|
||||
Would be rendered as:
|
||||
|
||||
{{% output "figure.html" %}}
|
||||
```html
|
||||
<figure >
|
||||
<img src="/media/spf13.jpg" />
|
||||
<figcaption>
|
||||
<h4>Steve Francia</h4>
|
||||
</figcaption>
|
||||
</figure>
|
||||
```
|
||||
{{% /output %}}
|
||||
|
||||
### Single Flexible Example: `vimeo`
|
||||
|
||||
```markdown
|
||||
{{</* vimeo 49718712 */>}}
|
||||
{{</* vimeo id="49718712" class="flex-video" */>}}
|
||||
```
|
||||
|
||||
Would load the template found at `/layouts/shortcodes/vimeo.html`:
|
||||
|
||||
{{% input "/layouts/shortcodes/vimeo.html" %}}
|
||||
```html
|
||||
{{ if .IsNamedParams }}
|
||||
<div class="{{ if .Get "class" }}{{ .Get "class" }}{{ else }}vimeo-container{{ end }}">
|
||||
<iframe src="//player.vimeo.com/video/{{ .Get "id" }}" allowfullscreen></iframe>
|
||||
</div>
|
||||
{{ else }}
|
||||
<div class="{{ if len .Params | eq 2 }}{{ .Get 1 }}{{ else }}vimeo-container{{ end }}">
|
||||
<iframe src="//player.vimeo.com/video/{{ .Get 0 }}" allowfullscreen></iframe>
|
||||
</div>
|
||||
{{ end }}
|
||||
```
|
||||
{{% /input %}}
|
||||
|
||||
Would be rendered as:
|
||||
|
||||
{{% output "vimeo-iframes.html" %}}
|
||||
```html
|
||||
<div class="vimeo-container">
|
||||
<iframe src="//player.vimeo.com/video/49718712" allowfullscreen></iframe>
|
||||
</div>
|
||||
<div class="flex-video">
|
||||
<iframe src="//player.vimeo.com/video/49718712" allowfullscreen></iframe>
|
||||
</div>
|
||||
```
|
||||
{{% /output %}}
|
||||
|
||||
### Paired Example: `highlight`
|
||||
|
||||
*Hugo already ships with the `highlight` shortcode*
|
||||
|
||||
{{% input "highlight-example.md" %}}
|
||||
```markdown
|
||||
{{</* highlight html */>}}
|
||||
<html>
|
||||
<body> This HTML </body>
|
||||
</html>
|
||||
{{</* /highlight */>}}
|
||||
```
|
||||
{{% /input %}}
|
||||
|
||||
The template for this utilizes the following code (already included in Hugo)
|
||||
|
||||
```golang
|
||||
{{ .Get 0 | highlight .Inner }}
|
||||
```
|
||||
|
||||
And will be rendered as:
|
||||
|
||||
{{% output "syntax-highlighted.html" %}}
|
||||
```html
|
||||
<div class="highlight" style="background: #272822"><pre style="line-height: 125%"><span style="color: #f92672"><html></span>
|
||||
<span style="color: #f92672"><body></span> This HTML <span style="color: #f92672"></body></span>
|
||||
<span style="color: #f92672"></html></span>
|
||||
</pre></div>
|
||||
```
|
||||
{{% /output %}}
|
||||
|
||||
{{% note %}}
|
||||
The preceding template makes use of a Hugo-specific template function
|
||||
called `highlight`, which uses [Pygments](http://pygments.org/) to add the highlighting code.
|
||||
{{% /note %}}
|
||||
|
||||
### Simple Single-word Example: `year`
|
||||
|
||||
Let's assume you would like to have a shortcode to be replaced by the current year in your Markdown content files, for a license or copyright statement. Your goal is to be able to call the following shortcode in a content file:
|
||||
|
||||
```markdown
|
||||
{{</* year */>}}
|
||||
```
|
||||
|
||||
{{% input "/layouts/shortcodes/year.html" %}}
|
||||
```golang
|
||||
{{ .Page.Now.Year }}
|
||||
```
|
||||
{{% /input %}}
|
||||
|
||||
More shortcode examples can be found in the [shortcodes directory for spf13.com][].
|
||||
|
||||
[cross-references]: /content-management/cross-references/
|
||||
[page variables]: /variables-and-params/page-variables/
|
||||
[shortcodes directory for spf13.com]: https://github.com/spf13/spf13.com/tree/master/layouts/shortcodes
|
||||
[source organization]: /project-organization/directory-structure/
|
||||
[Speaker Deck]: https://speakerdeck.com/
|
||||
[Vimeo]: https://vimeo.com/
|
||||
[YouTube Videos]: https://www.youtube.com/
|
||||
@@ -9,8 +9,7 @@ tags: [table of contents, toc]
|
||||
categories: [content management]
|
||||
weight: 100
|
||||
draft: false
|
||||
slug:
|
||||
aliases: [/extras/toc/]
|
||||
toc:
|
||||
toc: false
|
||||
notes:
|
||||
---
|
||||
@@ -9,7 +9,6 @@ tags: [aliases,redirects,permalinks,url management,urls]
|
||||
categories: [content management]
|
||||
weight: 90
|
||||
draft: false
|
||||
slug:
|
||||
aliases: [/extras/permalinks/,/extras/aliases/,/content-management/permalinks-and-redirects/,/extras/urls/]
|
||||
toc: true
|
||||
notes:
|
||||
|
||||
@@ -5,9 +5,12 @@ description: Description for the developer tools section.
|
||||
date: 2016-11-01
|
||||
publishdate: 2016-11-01
|
||||
lastmod: 2016-11-01
|
||||
tags: []
|
||||
categories: []
|
||||
weight: 01
|
||||
draft: false
|
||||
slug:
|
||||
aliases:
|
||||
aliases: []
|
||||
toc:
|
||||
notes:
|
||||
---
|
||||
@@ -6,11 +6,12 @@ date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
tags: [usage]
|
||||
categories: [developer tools]
|
||||
weight: 40
|
||||
draft: false
|
||||
slug:
|
||||
aliases: []
|
||||
toc:
|
||||
toc: true
|
||||
notes:
|
||||
---
|
||||
|
||||
|
||||
@@ -14,7 +14,11 @@ toc:
|
||||
notes:
|
||||
---
|
||||
|
||||
If you are using a different static site generator or CMS (e.g, Jeklly or Wordpress), the following tools were developed by the Hugo community to facilitate automated exports from your current system to a Hugo-friendly format.
|
||||
If you are using a different static site generator or CMS (e.g, Jeklly or Wordpress, respectively), the following tools were developed by the Hugo community to facilitate automated exports from your current system to a Hugo-friendly format.
|
||||
|
||||
## Jekyll
|
||||
|
||||
## WordPress
|
||||
|
||||
## Contentful
|
||||
|
||||
@@ -5,12 +5,23 @@ description:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
tags: []
|
||||
categories: []
|
||||
weight: 110
|
||||
tags: [highlighting,pygments,code blocks]
|
||||
categories: [developer tools]
|
||||
weight:
|
||||
draft: false
|
||||
slug:
|
||||
aliases: []
|
||||
toc:
|
||||
aliases: [/extras/highlighting/]
|
||||
toc: true
|
||||
notes:
|
||||
---
|
||||
---
|
||||
|
||||
## Code Blocks in Markdown
|
||||
|
||||
## Using Pygments with Hugo
|
||||
|
||||
## JavaScript Syntax Highlighters
|
||||
|
||||
### Highlight.js
|
||||
|
||||
### Prism.js
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: getpage
|
||||
linktitle: GetPage
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: abslangurl
|
||||
linktitle: absLangURL
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: [multilingual,i18n,urls]
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: absurl
|
||||
linktitle: absURL
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: [urls]
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: after
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -1,17 +1,15 @@
|
||||
---
|
||||
title: apply
|
||||
linktitle:
|
||||
linktitle: apply
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: base64decode
|
||||
linktitle: base64Decode
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: base64encode
|
||||
linktitle: base64Encode
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -1,17 +1,15 @@
|
||||
---
|
||||
title: chomp
|
||||
linktitle:
|
||||
linktitle: chomp
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
---
|
||||
title: The Dot (.)
|
||||
linktitle: The Dot (.)
|
||||
description:
|
||||
godocref: https://golang.org/pkg/text/template/#hdr-Variables
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
tags: [fundamentals]
|
||||
categories: [functions]
|
||||
weight: 02
|
||||
toc: false
|
||||
draft: false
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
@@ -1,17 +1,15 @@
|
||||
---
|
||||
title: countrunes
|
||||
linktitle:
|
||||
linktitle: countrunes
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: countwords
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,15 +2,14 @@
|
||||
title: dateFormat
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
tags: [dates]
|
||||
weight:
|
||||
tags: [dates,time]
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,15 +2,15 @@
|
||||
title: default
|
||||
linktitle: default
|
||||
description:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
aliases: [/functions/default/]
|
||||
notes:
|
||||
---
|
||||
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: delimit
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: dict
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: echoParam
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: emojify
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: findRe
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -1,17 +1,15 @@
|
||||
---
|
||||
title: first
|
||||
linktitle:
|
||||
linktitle: first
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
tags: [filtering content, limiting content]
|
||||
toc: false
|
||||
draft: false
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: getenv
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: hasPrefix
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: highlight
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: htmlEscape
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: htmlUnescape
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: humanize
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: imageConfig
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: in
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: index
|
||||
linktitle: index
|
||||
description:
|
||||
workson: [map,slice,array]
|
||||
godocref: https://golang.org/pkg/text/template/#hdr-Functions
|
||||
tags: [iteration]
|
||||
categories: [functions]
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,18 +2,15 @@
|
||||
title: int
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
|
||||
@@ -1,17 +1,15 @@
|
||||
---
|
||||
title: intersect
|
||||
linktitle:
|
||||
linktitle: intersect
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -1,17 +1,15 @@
|
||||
---
|
||||
title: isset
|
||||
linktitle:
|
||||
linktitle: isset
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: jsonify
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -1,17 +1,15 @@
|
||||
---
|
||||
title: last
|
||||
linktitle:
|
||||
linktitle: last
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -1,17 +1,15 @@
|
||||
---
|
||||
title: lower
|
||||
linktitle:
|
||||
linktitle: lower
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -1,17 +1,15 @@
|
||||
---
|
||||
title: markdownify
|
||||
linktitle:
|
||||
linktitle: markdownify
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: [markdown,content]
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,14 +2,14 @@
|
||||
title: math
|
||||
linktitle: Math
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: [math, operators]
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: md5
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: partialCached
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: plainify
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: pluralize
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -1,17 +1,15 @@
|
||||
---
|
||||
title: printf
|
||||
linktitle:
|
||||
linktitle: printf
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref: https://golang.org/pkg/fmt/
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: querify
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: [urls]
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: range
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
categories: [fundamentals]
|
||||
tags: [iteration]
|
||||
weight:
|
||||
tags: [iteration,fundamentals]
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: readDir
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: [files]
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: readFile
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: [files]
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: rel
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: relLangURL
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: [multilingual,i18n,urls]
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -1,17 +1,15 @@
|
||||
---
|
||||
title: relURL
|
||||
linktitle:
|
||||
linktitle: relURL
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: [urls]
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: relref
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -1,17 +1,15 @@
|
||||
---
|
||||
title: render
|
||||
linktitle:
|
||||
linktitle: Render
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: [views]
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: replace
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,14 +2,14 @@
|
||||
title: safeCSS
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: [style,css,strings]
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,14 +2,14 @@
|
||||
title: safeHTML
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: [strings]
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
---
|
||||
title: safeHTMLAttr
|
||||
linktitle:
|
||||
linktitle: safeHTMLAttr
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: [strings]
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,14 +2,14 @@
|
||||
title: safeJS
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: [strings]
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: safeURL
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: [strings,urls]
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: scratch
|
||||
linktitle: Scratch
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: [iteration]
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: seq
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -1,17 +1,16 @@
|
||||
---
|
||||
title: sha1
|
||||
linktitle:
|
||||
linktitle: sha1
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
description:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -1,17 +1,15 @@
|
||||
---
|
||||
title: sha256
|
||||
linktitle:
|
||||
linktitle: sha256
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,15 @@
|
||||
title: shuffle
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
description:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: [ordering]
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: singularize
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -1,17 +1,15 @@
|
||||
---
|
||||
title: slice
|
||||
linktitle:
|
||||
linktitle: slice
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: slicestr
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -1,17 +1,15 @@
|
||||
---
|
||||
title: sort
|
||||
linktitle:
|
||||
linktitle: sort
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: [ordering]
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: split
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: string
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: substr
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,21 +2,21 @@
|
||||
title: time
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: [dates,time]
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
## Example
|
||||
|
||||
refer to http://gohugo.io/templates/go-templates/#template-example-show-only-upcoming-events
|
||||
|
||||
## Advanced Example
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: title
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: [fundamentals,strings]
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: trim
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
---
|
||||
title: unix
|
||||
linktitle: Unix
|
||||
description:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
tags: [dates,time]
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
## Example
|
||||
|
||||
refer to http://gohugo.io/templates/go-templates/#template-example-show-only-upcoming-events
|
||||
|
||||
## Advanced Example
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: upper
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: urlize
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: [strings,urls]
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
title: where
|
||||
linktitle:
|
||||
description:
|
||||
qr_description:
|
||||
qr_returns:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
@@ -20,5 +18,3 @@ notes:
|
||||
|
||||
## Advanced Example
|
||||
|
||||
|
||||
Here is just some content testing for the where function.
|
||||
@@ -0,0 +1,19 @@
|
||||
---
|
||||
title: with
|
||||
linktitle: with
|
||||
description:
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
tags: [fundamentals]
|
||||
categories: [functions]
|
||||
toc: false
|
||||
draft: false
|
||||
aliases: []
|
||||
notes:
|
||||
---
|
||||
|
||||
## Example
|
||||
|
||||
## Advanced Example
|
||||
@@ -1,14 +1,15 @@
|
||||
---
|
||||
title: Hosting and Deployment
|
||||
linktitle:
|
||||
linktitle: Hosting and Deployment
|
||||
description: Site builds, automated deployments, and popular hosting solutions.
|
||||
date: 2016-11-01
|
||||
publishdate: 2016-11-01
|
||||
lastmod: 2016-11-01
|
||||
tags: [hosting]
|
||||
categories: [hosting and deployment]
|
||||
weight: 01
|
||||
draft: false
|
||||
slug:
|
||||
aliases:
|
||||
toc: false
|
||||
notes:
|
||||
---
|
||||
|
||||
---
|
||||
@@ -5,8 +5,8 @@ description:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
tags: []
|
||||
categories: []
|
||||
tags: [rysnc]
|
||||
categories: [hosting and deployment]
|
||||
toc: false
|
||||
weight:
|
||||
draft: false
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
---
|
||||
title: Deployment with Wercker
|
||||
linktitle:
|
||||
linktitle: Deployment with Wercker
|
||||
description:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
tags: []
|
||||
categories: []
|
||||
tags: [wercker]
|
||||
categories: [hosting and deployment]
|
||||
toc: false
|
||||
draft: false
|
||||
slug:
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
---
|
||||
title: Hosting on Bitbucket
|
||||
linktitle:
|
||||
linktitle: Hosting on Bitbucket
|
||||
description:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
draft: false
|
||||
tags: []
|
||||
categories: []
|
||||
tags: [bitbucket]
|
||||
categories: [hosting and deployment]
|
||||
toc: false
|
||||
aliases: []
|
||||
notes:
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
---
|
||||
title: Hosting on GitHub
|
||||
linktitle:
|
||||
linktitle: Hosting on GitHub
|
||||
description:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
draft: false
|
||||
tags: []
|
||||
categories: []
|
||||
tags: [github,git]
|
||||
categories: [hosting and deployment]
|
||||
toc: false
|
||||
aliases: []
|
||||
notes:
|
||||
|
||||
@@ -7,11 +7,11 @@ publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
tags: []
|
||||
categories: []
|
||||
hidesectioncontents: false
|
||||
weight: 01
|
||||
draft: false
|
||||
slug:
|
||||
aliases: []
|
||||
toc: false
|
||||
hidesectioncontents: false
|
||||
notes:
|
||||
---
|
||||
|
||||
|
||||
@@ -5,12 +5,11 @@ description: Information on the Hugo license.
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
tags: [releases,improvements]
|
||||
categories: [news and articles]
|
||||
weight: 30
|
||||
draft: false
|
||||
type:
|
||||
layout:
|
||||
slug:
|
||||
aliases: [/meta/release-notes]
|
||||
toc: true
|
||||
notes:
|
||||
---
|
||||
|
||||
---
|
||||
@@ -11,7 +11,8 @@ categories: []
|
||||
draft: false
|
||||
hidesectioncontents: false
|
||||
slug:
|
||||
aliases:
|
||||
aliases: []
|
||||
toc: false
|
||||
notes:
|
||||
---
|
||||
|
||||
|
||||
@@ -3,13 +3,15 @@ title: Configuration
|
||||
linktitle:
|
||||
description: Scaffolding new projects, configuration, and source organization.
|
||||
date: 2017-01-02
|
||||
tags: [configuration,fundamentals,toml,yaml,json]
|
||||
publishdate: 2017-01-02
|
||||
lastmod: 2017-01-02
|
||||
tags: [configuration,fundamentals,toml,yaml,json]
|
||||
categories: [project organization]
|
||||
weight: 10
|
||||
draft: false
|
||||
slug:
|
||||
aliases: [/overview/source-directory/]
|
||||
toc: true
|
||||
notes:
|
||||
---
|
||||
|
||||
|
||||
@@ -11,5 +11,6 @@ tags: [templating,functions]
|
||||
draft: false
|
||||
slug:
|
||||
aliases:
|
||||
toc: false
|
||||
notes:
|
||||
---
|
||||
@@ -7,9 +7,11 @@ publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
weight:
|
||||
tags: []
|
||||
categories: [templates]
|
||||
draft: false
|
||||
slug:
|
||||
aliases:
|
||||
aliases: []
|
||||
toc: false
|
||||
notes:
|
||||
---
|
||||
|
||||
|
||||
Loaded 100 of 136 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user