mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-10 09:14:55 -04:00
Minor markdown linting fix and URL updates (#1873)
This commit is contained in:
parent
d57c8aa505
commit
d333d0287c
2
.github/workflows/codeql-analysis.yml
vendored
2
.github/workflows/codeql-analysis.yml
vendored
@ -20,7 +20,7 @@ jobs:
|
|||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@v2
|
uses: github/codeql-action/init@v2
|
||||||
with:
|
with:
|
||||||
languages: 'javascript'
|
languages: "javascript"
|
||||||
|
|
||||||
- name: Perform CodeQL Analysis
|
- name: Perform CodeQL Analysis
|
||||||
uses: github/codeql-action/analyze@v2
|
uses: github/codeql-action/analyze@v2
|
||||||
|
2
.github/workflows/spellcheck.yml
vendored
2
.github/workflows/spellcheck.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: 'Check spelling'
|
name: "Check spelling"
|
||||||
on: # rebuild any PRs and main branch changes
|
on: # rebuild any PRs and main branch changes
|
||||||
push:
|
push:
|
||||||
branches-ignore:
|
branches-ignore:
|
||||||
|
@ -10,7 +10,6 @@ MD013: false
|
|||||||
MD014: false
|
MD014: false
|
||||||
MD022: false
|
MD022: false
|
||||||
MD024: false
|
MD024: false
|
||||||
MD026: false
|
|
||||||
MD031: false
|
MD031: false
|
||||||
MD032: false
|
MD032: false
|
||||||
MD033: false
|
MD033: false
|
||||||
|
@ -63,7 +63,7 @@ toc: true
|
|||||||
[Extremely fast]: https://github.com/bep/hugo-benchmark
|
[Extremely fast]: https://github.com/bep/hugo-benchmark
|
||||||
[front matter]: /content-management/front-matter/
|
[front matter]: /content-management/front-matter/
|
||||||
[functions]: /functions/
|
[functions]: /functions/
|
||||||
[Go]: https://golang.org/pkg/html/template/
|
[Go]: https://pkg.go.dev/html/template
|
||||||
[Google Analytics]: https://google-analytics.com/
|
[Google Analytics]: https://google-analytics.com/
|
||||||
[homepage]: /templates/homepage/
|
[homepage]: /templates/homepage/
|
||||||
[hostanywhere]: /hosting-and-deployment/
|
[hostanywhere]: /hosting-and-deployment/
|
||||||
|
@ -55,7 +55,7 @@ These are the security threats as defined by [OWASP](https://en.wikipedia.org/wi
|
|||||||
|
|
||||||
For HTML output, this is the core security model:
|
For HTML output, this is the core security model:
|
||||||
|
|
||||||
<https://golang.org/pkg/html/template/#hdr-Security_Model>
|
<https://pkg.go.dev/html/template#hdr-Security_Model>
|
||||||
|
|
||||||
In short:
|
In short:
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ Hugo is for people building a blog, a company site, a portfolio site, documentat
|
|||||||
[Firebase]: https://firebase.google.com/docs/hosting/ "Firebase static hosting"
|
[Firebase]: https://firebase.google.com/docs/hosting/ "Firebase static hosting"
|
||||||
[GitHub Pages]: https://pages.github.com/
|
[GitHub Pages]: https://pages.github.com/
|
||||||
[GitLab Pages]: https://about.gitlab.com/features/pages/
|
[GitLab Pages]: https://about.gitlab.com/features/pages/
|
||||||
[Go language]: https://golang.org/
|
[Go language]: https://go.dev/
|
||||||
[GoDaddy]: https://www.godaddy.com/ "GoDaddy.com Hosting"
|
[GoDaddy]: https://www.godaddy.com/ "GoDaddy.com Hosting"
|
||||||
[Google Cloud Storage]: https://cloud.google.com/storage/
|
[Google Cloud Storage]: https://cloud.google.com/storage/
|
||||||
[Heroku]: https://www.heroku.com/
|
[Heroku]: https://www.heroku.com/
|
||||||
|
@ -43,7 +43,7 @@ permalinks:
|
|||||||
/: /:year/:month/:filename/
|
/: /:year/:month/:filename/
|
||||||
{{< /code-toggle >}}
|
{{< /code-toggle >}}
|
||||||
|
|
||||||
If the standard date-based permalink configuration does not meet your needs, you can also format URL segments using [Go time formatting directives](https://golang.org/pkg/time/#Time.Format). For example, a URL structure with two digit years and month and day digits without zero padding can be accomplished with:
|
If the standard date-based permalink configuration does not meet your needs, you can also format URL segments using [Go time formatting directives](https://pkg.go.dev/time#Time.Format). For example, a URL structure with two digit years and month and day digits without zero padding can be accomplished with:
|
||||||
|
|
||||||
{{< code-toggle file="config" copy="false" >}}
|
{{< code-toggle file="config" copy="false" >}}
|
||||||
permalinks:
|
permalinks:
|
||||||
|
@ -422,11 +422,11 @@ Feel free to [open an issue][newissue] if you think you found a bug or you have
|
|||||||
[forums]: https://discourse.gohugo.io
|
[forums]: https://discourse.gohugo.io
|
||||||
[gitbook]: https://git-scm.com/
|
[gitbook]: https://git-scm.com/
|
||||||
[gobootcamp]: https://www.golangbootcamp.com/book/get_setup
|
[gobootcamp]: https://www.golangbootcamp.com/book/get_setup
|
||||||
[godl]: https://golang.org/dl/
|
[godl]: https://go.dev/dl/
|
||||||
[goinstall]: https://golang.org/doc/install
|
[goinstall]: https://go.dev/doc/install
|
||||||
[gvm]: https://github.com/moovweb/gvm
|
[gvm]: https://github.com/moovweb/gvm
|
||||||
[issues]: https://github.com/gohugoio/hugo/issues
|
[issues]: https://github.com/gohugoio/hugo/issues
|
||||||
[newissue]: https://github.com/gohugoio/hugo/issues/new
|
[newissue]: https://github.com/gohugoio/hugo/issues/new
|
||||||
[releases]: /getting-started/
|
[releases]: /getting-started/
|
||||||
[setupgopath]: https://golang.org/doc/code.html#Workspaces
|
[setupgopath]: https://go.dev/doc/code#Workspaces
|
||||||
[trygit]: https://try.github.io/levels/1/challenges/1
|
[trygit]: https://try.github.io/levels/1/challenges/1
|
||||||
|
@ -30,7 +30,7 @@ Both functions return an empty string, so the messages are only printed to the c
|
|||||||
{{ warnf "You should update the shortcodes in %q" .Path }}
|
{{ warnf "You should update the shortcodes in %q" .Path }}
|
||||||
```
|
```
|
||||||
|
|
||||||
Note that `errorf`, `erroridf`, and `warnf` support all the formatting verbs of the [fmt](https://golang.org/pkg/fmt/) package.
|
Note that `errorf`, `erroridf`, and `warnf` support all the formatting verbs of the [fmt](https://pkg.go.dev/fmt) package.
|
||||||
|
|
||||||
## Suppress errors
|
## Suppress errors
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ You can combine modules in any combination you like, and even mount directories
|
|||||||
Hugo Modules are powered by Go Modules. For more information about Go Modules, see:
|
Hugo Modules are powered by Go Modules. For more information about Go Modules, see:
|
||||||
|
|
||||||
- [https://github.com/golang/go/wiki/Modules](https://github.com/golang/go/wiki/Modules)
|
- [https://github.com/golang/go/wiki/Modules](https://github.com/golang/go/wiki/Modules)
|
||||||
- [https://blog.golang.org/using-go-modules](https://blog.golang.org/using-go-modules)
|
- [https://go.dev/blog/using-go-modules](https://go.dev/blog/using-go-modules)
|
||||||
|
|
||||||
This is all very much brand new and there are only a few example projects around:
|
This is all very much brand new and there are only a few example projects around:
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@ linktitle:
|
|||||||
description: In addition to Hugo's built-in variables, you can specify your own custom data in templates or shortcodes that pull from both local and dynamic sources.
|
description: In addition to Hugo's built-in variables, you can specify your own custom data in templates or shortcodes that pull from both local and dynamic sources.
|
||||||
date: 2017-02-01
|
date: 2017-02-01
|
||||||
publishdate: 2017-02-01
|
publishdate: 2017-02-01
|
||||||
lastmod: 2017-03-12
|
|
||||||
categories: [templates]
|
categories: [templates]
|
||||||
keywords: [data,dynamic,csv,json,toml,yaml,xml]
|
keywords: [data,dynamic,csv,json,toml,yaml,xml]
|
||||||
menu:
|
menu:
|
||||||
@ -13,7 +12,6 @@ menu:
|
|||||||
weight: 80
|
weight: 80
|
||||||
weight: 80
|
weight: 80
|
||||||
sections_weight: 80
|
sections_weight: 80
|
||||||
draft: false
|
|
||||||
aliases: [/extras/datafiles/,/extras/datadrivencontent/,/doc/datafiles/]
|
aliases: [/extras/datafiles/,/extras/datadrivencontent/,/doc/datafiles/]
|
||||||
toc: true
|
toc: true
|
||||||
---
|
---
|
||||||
|
@ -17,7 +17,7 @@ toc: false
|
|||||||
|
|
||||||
Here are some snippets you can add to your template to answer some common questions.
|
Here are some snippets you can add to your template to answer some common questions.
|
||||||
|
|
||||||
These snippets use the `printf` function available in all Go templates. This function is an alias to the Go function, [fmt.Printf](https://golang.org/pkg/fmt/).
|
These snippets use the `printf` function available in all Go templates. This function is an alias to the Go function, [fmt.Printf](https://pkg.go.dev/fmt).
|
||||||
|
|
||||||
## What Variables are Available in this Context?
|
## What Variables are Available in this Context?
|
||||||
|
|
||||||
|
@ -114,7 +114,7 @@ See also `.ExpiryDate`, `.Date`, `.PublishDate`, and [`.GitInfo`][gitinfo].
|
|||||||
: the Page content stripped of HTML tags and presented as a string.
|
: the Page content stripped of HTML tags and presented as a string.
|
||||||
|
|
||||||
.PlainWords
|
.PlainWords
|
||||||
: the slice of strings that results from splitting .Plain into words, as defined in Go's [strings.Fields](https://golang.org/pkg/strings/#Fields).
|
: the slice of strings that results from splitting .Plain into words, as defined in Go's [strings.Fields](https://pkg.go.dev/strings#Fields).
|
||||||
|
|
||||||
.Prev
|
.Prev
|
||||||
: Points down to the previous [regular page](/variables/site/#site-pages) (sorted by Hugo's [default sort](/templates/lists#default-weight--date--linktitle--filepath)). Example: `{{if .Prev}}{{.Prev.Permalink}}{{end}}`. Calling `.Prev` from the last page returns `nil`.
|
: Points down to the previous [regular page](/variables/site/#site-pages) (sorted by Hugo's [default sort](/templates/lists#default-weight--date--linktitle--filepath)). Example: `{{if .Prev}}{{.Prev.Permalink}}{{end}}`. Calling `.Prev` from the last page returns `nil`.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user