Commit Graph
10191 Commits
Author SHA1 Message Date
dependabot[bot] 47bbb3fd7b Bump lodash.template from 4.4.0 to 4.5.0 in /themes/gohugoioTheme
Bumps [lodash.template](https://github.com/lodash/lodash) from 4.4.0 to 4.5.0.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.4.0...4.5.0)

Signed-off-by: dependabot[bot] <support@github.com>
2019-07-11 08:27:46 +02:00
Bjørn Erik Pedersen 64c1cc3dba Update title.md 2019-07-10 15:27:41 +02:00
Bjørn Erik Pedersen 36c27be373 Update configuration.md 2019-07-10 15:23:54 +02:00
Niklas Fasching 8c5915264c Add org to front matter formats
actually it's 5, there's also csv. Afaict it's not meant to be used in that way
though so let's just add org.
2019-07-10 11:14:37 +02:00
Niklas Fasching 020086cb2b Add org to front matter formats
actually it's 5, there's also csv. Afaict it's not meant to be used in that way
though so let's just add org.
2019-07-10 11:14:37 +02:00
Niklas Fasching 8524baee16 deps: Update go-org
- added support for anonymous footnotes
- changed source block html output to more closely resemble emacs org-export
  output
2019-07-10 11:14:37 +02:00
Kaushal Modi 90b0127f63 Fix typo s/Meny/Menu/ 2019-07-09 17:28:53 +02:00
Bjørn Erik Pedersen 7611078dae hugolib: Add testfile to .gitignore 2019-07-07 13:01:30 +02:00
Bruno Amaral 4627cfe9ab added commento.io to the list 2019-06-30 18:58:11 -04:00
Bjørn Erik Pedersen b2a3d4644b tpl/tplimpl: Regenerate templates 2019-06-26 22:39:32 +02:00
Mark Mandel 88c8a15be1 Pagination - do not render href if no next item
When using a html link checker with Hugo, this template consistently causes errors, as it renders `href=""` attributes when next/previous is disabled.

This change makes it so that the `href` attribute is not rendered at all if `HasNext` is false - which is better semantically, and makes link checking far easier.
2019-06-26 22:38:30 +02:00
Justin Van Patten 59c4bc52ed Include path to source page in non-relative ref/relref warning
We occasionally see warnings when building our site:

```
WARN 2019/06/25 23:07:08 make non-relative ref/relref page reference(s) in page %q absolute, e.g. {{< ref "/blog/my-post.md" >}}
```

But the `%q` value is missing, making it difficult to track down the source of the warning.

This change addresses that, by including the source path in the warning:

```
WARN 2019/06/25 23:07:31 make non-relative ref/relref page reference(s) in page "blog/my-post/index.md" absolute, e.g. {{< ref "/blog/my-post.md" >}}
```
2019-06-26 09:25:12 +02:00
Bjørn Erik Pedersen dc1d4a9200 hugolib: Add another site benchmark
Also rework test test setup so the benchmarks can also be run as tests, which
is useful when creating new benchmarks an make sure they ... work.
2019-06-26 09:09:40 +02:00
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