9678 Commits

Author SHA1 Message Date
Rodolfo Carvalho
341d9d9453 Fix link to font assets
Fixes #796.
2019-06-23 23:37:23 +02:00
Jake Jarvis
4a6876dec1 Small typo fix in configuration.md
".htacess" to ".htaccess"
2019-06-22 10:29:09 +02:00
Fredrik Jonsson
736d6ddd72 Add bypasscensorship.org showcase. 2019-06-19 23:06:31 +02:00
Joshua Arnott
de7b9475c0 commands: Remove comma after URL in new site output
Some terminals include the comma in the URL when hyperlinking, resulting in a 404
2019-06-19 23:03:30 +02:00
Rodolfo Carvalho
de7ab636bc Use actual width in image processing examples
The image processing examples are rendered within containers with a
'nested-img' parent CSS class, which by default makes images responsive
by resizing them to the size of their containers.

That doesn't work well for the examples as the small images end up
stretched.

Since there can be other images in the same 'nested-img' context, we
keep that class in the parent and set the example images width to auto,
such that they will render with their actual size.

On small screens, larger images will still be sized down via the
max-width property.

Fixes #812
2019-06-18 17:02:21 +02:00
aspeteRakete
6c88ab2da9 Update directory-structure.md
Just a copy+paste error.
2019-06-17 07:45:12 -04:00
Bjørn Erik Pedersen
d6ca728ff3
deps: Revert to an older version of Blackfriday
See #6040
2019-06-16 22:13:23 +02:00
Hanzei
88f559e816 Fix spelling mistakes 2019-06-14 14:58:38 +02:00
Paweł Sysiak
7bd427141d Rephrase four points from Hosting on Github docs 2019-06-13 17:56:35 +02:00
Federico Bruni
bce1b18326 Fix typos for absLangURL and relLangURL functions 2019-06-13 17:55:53 +02:00
Alex
abab573356 Update directory-structure.md
When running hugo new site sitename it does not create the assets or config directories by default. 

I updated the layout example to remove the directories and include config.toml and made a note in the assets and config directory sections to highlight they are not created by default.
2019-06-13 17:55:23 +02:00
Salim B
a6716f2ed2 Fix metadata list
Seems that there must be an additional newline before the list items in order for hugo to properly render it as a Markdown list.
2019-06-13 17:54:40 +02:00
Ivan Tse
5ef61d912b Fix typo 2019-06-13 17:54:14 +02:00
Witold Baryluk
d9e467b8b7 Actuall show how to generate pages in quickstart
The development server isn't really that important for quick start.

Yes it is useful but makes things complex.

The most important part is really static site generation, and it is actually hard to find how to do it in your tutorials!

Same for `hugo new`. It is automagic, and anti-thesis of things being simple. This is why I added section to make it less magic, and simply allow content to be done manually.
2019-06-13 17:51:23 +02:00
Silvano Cerza
0aadc92e74 Update link to issue theme submission 2019-06-13 17:49:51 +02:00
Ricardo N Feliciano
b1902faaa2 Remove incorrect note about Hugo snap --classic use. 2019-06-13 17:45:46 +02:00
Jaime Martínez Rincón
d451e7362a Update documentation on page variables
* Update documentation on page variables

* Add resources variable

* Add aliases variable
2019-06-13 17:41:46 +02:00
AdaKaleh
ab2233c395 Update publish_to_ghpages.sh
* Fix publish_to_ghpages.sh

* Add "git push" comment to the end of publish_to_ghpages.sh

* Remove redundant suggestion about CNAME file
2019-06-13 17:40:26 +02:00
Stephen Paulger
7c120346b1 Fix typo in syntax highlighting page.
hightlighting -> highlighting.
2019-06-13 17:37:37 +02:00
Mihira Jayasekera
f01dc555df
Correct some typos
Note that I changed the reading time example for pluralization from ‘One minute read’ to ‘One minute _to_ read’ because, in common US usage at least, this might properly be punctuated as ‘One-minute read’, and longer would be handled like ‘12-minute read’ (not ‘12 minutes read’), so it actually wouldn’t make a good example for demonstraing single and plural forms. By adding ‘to’, though, the example aligns with common US usage while also serving as an example of single and plural forms.

Closes #694
2019-06-13 17:35:33 +02:00
Alex Patterson
be825ade94 Videos plural produces og:video 2019-06-13 17:27:03 +02:00
Gucccii
bc962fbdfa Updated installing.md file to include linuxbrew installation
* Updated installing.md file to include linuxbrew installation

* fix typo
2019-06-13 17:26:17 +02:00
Annie-Claude Morin
08c9f8fc89 Mention 1 MB file size limit in readFile doc
The code has a hard coded limit of 1 MB in https://github.com/gohugoio/hugo/blob/master/tpl/os/os.go#L68

Now it's in the documentation too.
2019-06-13 17:25:26 +02:00
Bogdan Guna
7145e29e24 Fixes bad URL in menus.md for .hasChildren
* part of issue #814
2019-06-13 17:24:51 +02:00
Victor Massé
0edbd59c48 add warning about .Hugo variable being deprecated 2019-06-12 13:55:36 -04:00
Christian Oliff
ff10aa522d examples: Update link to prevent redirect 2019-06-12 13:56:05 +02:00
Christian Oliff
9f258d2b8f examples: Update URLs 2019-06-12 12:29:19 +02:00
Brian Pond
77f74ced56 fix: typo in output-formats.md
Correct sentence for clarity.
2019-06-11 10:09:10 -04:00
Bjørn Erik Pedersen
31c9c690fd releaser: Update Go Releaser and consolidate the 2 configs
Fixes #5949
2019-06-11 00:02:06 +02:00
Bjørn Erik Pedersen
e8a716b23a tpl/collections: Fix slice type handling in sort
The `sort` template func was producing a `[]page.Page` which did not work in `.Paginate`.

Fixes #6023
2019-06-10 08:32:44 +02:00
Avery
f71b67f34f Correct typo "RFC339" to "RFC1123Z" (#837)
* Correct typo "RFC339" to "RFC1123Z"

Per discussion in PR #887, I added a link to the Go time package documentation that lists constants that can serve as further examples.
2019-06-09 23:03:34 -04:00
Bjørn Erik Pedersen
3e6cb2cb77 hugolib: Fix bundle path when slug is set
Fixes #4870
2019-06-09 16:55:08 +02:00
Bjørn Erik Pedersen
8d898ad667 tpl/collections: Unwrap any interface value in sort and where
Hugo `0.55.0` introduced some new interface types for `Page` etc.

This worked great in general, but there were cases where this would fail in `where` and `sort`.

One such example would be sorting by `MenuItem.Page.Date` where `Page` on `MenuItem` was a small subset of the bigger `page.Page` interface.

This commit fixes that by unwrapping such interface values.

Fixes #5989
2019-06-09 16:54:36 +02:00
invzhi
424c0207ad baseurl -> baseURL 2019-06-08 11:38:33 +02:00
Niklas Fasching
29065e8269 Improve Org mode support: Replace goorgeous with go-org
Sadly, goorgeous has not been updated in over a year and still has a lot of
open issues (e.g. no support for nested lists).

go-org fixes most of those issues and supports a larger subset of Org mode
syntax.
2019-06-08 10:13:00 +02:00
Niklas Fasching
fad183c4ae Refactor Org mode front matter: Introduce '#+KEY[]:' array notation
Hugo requires some front matter values to be arrays (e.g. for taxonomies).
Org mode front matter syntax (`#+KEY: VALUE`) does however not support anything
but string values normally - which is why goorgeous hardcoded the values for
the keys tags, categories & aliases to be parsed as string arrays. This causes
problems with custom taxonomies.

A simple thing we can do instead is make keywords ending in '[]' be parsed as
string arrays.
2019-06-08 10:13:00 +02:00
Niklas Fasching
b6867bf806 Improve Org mode support: Replace goorgeous with go-org
Sadly, goorgeous has not been updated in over a year and still has a lot of
open issues (e.g. no support for nested lists).

go-org fixes most of those issues and supports a larger subset of Org mode
syntax.
2019-06-08 10:13:00 +02:00
Robert van Gent
30dcd1ec2d deploy: Default --target to the first deployment target 2019-06-08 00:41:59 +02:00
Robert van Gent
9df57154ee deploy: Default --target to the first deployment target 2019-06-08 00:41:59 +02:00
Anurag Goel
f4e24a03e4 Render launched; no invite code needed 2019-06-07 06:26:04 +02:00
Anurag Goel
37e1101d3f Add Render hosting guide 2019-06-07 06:26:04 +02:00
dependabot[bot]
01d0a6481d Bump js-yaml from 3.12.0 to 3.13.1 in /themes/gohugoioTheme
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 3.12.0 to 3.13.1.
- [Release notes](https://github.com/nodeca/js-yaml/releases)
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/3.12.0...3.13.1)

Signed-off-by: dependabot[bot] <support@github.com>
2019-06-05 20:22:47 +02:00
Patrick Kollitsch
edb7b36b0d Link site hierarchy schema to larger version 2019-06-04 12:53:38 -04:00
Chris Jones
af72acda03 Fixes typo in fingerprint.md 2019-06-04 08:49:22 +02:00
Patrick Kollitsch
0a738467bf Adding required XML tag to sample templates
Since Hugo 0.55.0 the XML declaration on XML and RSS files is not added automatically anymore. The samples should reflect that.
2019-06-03 15:00:36 +02:00
Vincent Fiduccia
35abce27ca Add safety barrier between concatenated javascript resources 2019-06-02 10:23:48 +02:00
Patrick Kollitsch
52211f6565 Remove note that XML declaration is not needed
Because, ... see above. It is indeed needed since 0.55.0 ;)
2019-06-01 11:20:16 +02:00
Patrick Kollitsch
a39b9ac871 Adding required XML tag to sample templates
Since Hugo 0.55.0 the XML declaration on XML and RSS files is not added automatically anymore. The samples should reflect that.
2019-06-01 11:20:16 +02:00
Robert van Gent
b363c62c41 Drop dashes in http header matcher attributes; other changes from code review 2019-05-31 22:08:12 +02:00
Robert van Gent
8914fe7ed7 Update CLI doc for "long" form 2019-05-31 22:08:12 +02:00