Commit Graph
6054 Commits
Author SHA1 Message Date
Johan Gielstra 0f9f73cce5 Add support for multiple config files via --config a.toml,b.toml,c.toml 2017-08-09 20:13:02 +02:00
Daniel Karlsson c8257f8b72 Render task list item inside label for correct accessibility
Fixes #3303
2017-08-09 20:09:43 +02:00
Matthieu Harlé 0abdeeef67 source: Normalize UniqueID between Windows & Linux 2017-08-09 19:35:40 +02:00
guayom 31d1ef4037 Add example for taxonomy terms with metadata
There is no information on how you can add custom metadata to your
taxonomy terms. What you need to do is add front matter data in the file
/content/<TAXONOMY>/<TERM>/_index.md

Then you will be able to access the taxonomy term as a page in a
taxonomy terms template.

That is why I added instructions in /content-management/taxonomies on
how to add custom metadata. And in /templates/taxonomy-templates/ I
added an example on how you can display that metadata in the taxonomy
terms template.

I think that would be enough to guide the user in how to add custom
metadata to their taxonomy terms.
2017-08-09 08:53:53 +02:00
digitalcraftsman da978cc7e1 Fix links in Blackfriday extension documentation 2017-08-08 20:50:15 +02:00
Kaushal Modi 950ad11556 Fix reference to Blackfriday Extensions section 2017-08-08 20:38:33 +02:00
Kaushal Modi 12d1d02659 Add documentation for Blackfriday Extensions 2017-08-08 20:20:22 +02:00
Bjørn Erik Pedersen e2f8664ef4 hugolib: More spelling 2017-08-08 10:54:35 +02:00
ManoHaran 8c2b8fb548 Fix explaination for uglyURLs config option 2017-08-07 21:05:01 +02:00
Jaroslav Lichtblau 378aded702 Use community repository for Arch Linux installation guide 2017-08-07 20:47:03 +02:00
Bjørn Erik Pedersen 46ac745374 all: Fix spelling
And some other minor issues.
2017-08-07 20:19:24 +02:00
Bjørn Erik Pedersen 4b54fb0701 all: gofmt -s 2017-08-07 20:03:15 +02:00
Bjørn Erik Pedersen 56455e7e00 Improve 0.26 release notes 2017-08-07 10:06:07 +02:00
Bjørn Erik Pedersen be7db03a1c netlify: Build with the new 0.26 2017-08-07 09:45:29 +02:00
Bjørn Erik Pedersen d430b2d36d Bump version to 0.26 2017-08-07 09:43:30 +02:00
Bjørn Erik Pedersen 40d7d3baa8 releaser: Prepare repository for 0.27-DEV
[ci skip]
2017-08-07 09:13:50 +02:00
Bjørn Erik Pedersen 61adaca0c2 releaser: Prepare repository for 0.27-DEV
[ci skip]
2017-08-07 09:13:50 +02:00
Bjørn Erik Pedersen f090c2711c releaser: Add release notes to /docs for release of 0.26
[ci skip]
2017-08-07 09:09:19 +02:00
Bjørn Erik Pedersen abef29a644 releaser: Add release notes to /docs for release of 0.26
[ci skip]
2017-08-07 09:09:19 +02:00
Bjørn Erik Pedersen b36f6e31e0 releaser: Bump versions for release of 0.26
[ci skip]
2017-08-07 09:05:07 +02:00
Bjørn Erik Pedersen 5937fe415e releaser: Bump versions for release of 0.26
[ci skip]
2017-08-07 09:05:07 +02:00
Bjørn Erik Pedersen 0f51e49269 releaser: Add release notes draft for 0.26 2017-08-07 09:02:04 +02:00
Bjørn Erik Pedersen 62583db503 vendor: Update checksum for inflect
Yes, I double checked.
2017-08-07 09:00:04 +02:00
Bjørn Erik Pedersen 0d495d5373 releaser: Update to new release notes location 2017-08-07 08:54:40 +02:00
Bjørn Erik Pedersen 033752f10f Merge commit 'e81208265bb3cdb7606d051a23d83aeebcb7d34d' 2017-08-06 17:24:51 +02:00
Bjørn Erik Pedersen 22b213b1a4 Merge commit 'e81208265bb3cdb7606d051a23d83aeebcb7d34d' 2017-08-06 17:24:51 +02:00
Bjørn Erik Pedersen e81208265b Squashed 'docs/' changes from ef02e34e..35abbc86
35abbc86 Add example with taxonomy for title template func
85e28c10 Remove comment from variable in front matter example
eee8543b Remove comment from variable in front matter example
13a8e0b7 Add missing closing and opening comment tags
83531772 Replace http://example.{com,org}/ with https://example.{com,org}/
6727d820 Update gh repo for issues in config
3a58818e Add note to install Testify
19f13e61 Fix YAML examples in taxonomies.md
dc4b90db Replace old RSS template with new embedded version (#116)
00f39bd7 camelCase output format options
902a14a1 Add missing word to pretty URLs explanation

git-subtree-dir: docs
git-subtree-split: 35abbc8691
2017-08-06 17:24:51 +02:00
Ron Liskey 35abbc8691 Add example with taxonomy for title template func
Example URL with printf.
2017-08-06 11:34:37 +02:00
Bjørn Erik Pedersen 11e5d456e8 releaser: Include stats from hugoDocs
Fixes #3727
2017-08-06 11:18:19 +02:00
digitalcraftsman 85e28c10ea Remove comment from variable in front matter example 2017-08-05 19:28:19 +02:00
digitalcraftsman eee8543b25 Remove comment from variable in front matter example 2017-08-05 18:02:27 +02:00
Bjørn Erik Pedersen f768c27f0d helpers: Remove some unused funcs 2017-08-03 15:59:10 +02:00
Jorin Vogel 81c13171a9 Add some missing doc comments
As pointed out by the linter, some exported functions and types are
missing doc comments.
The linter warnings have been reduced from 194 to 116.
Not all missing comments have been added in this commit though.
2017-08-03 15:57:51 +02:00
Jeremiah Valenzuela 13a8e0b770 Add missing closing and opening comment tags
The comment tags were split between lines and therefore caused the content within them to render as html.
2017-08-03 13:35:36 +02:00
Bjørn Erik Pedersen 9891c0fb0e Remove sourceRelativeLinks
Fixes #3766
2017-08-02 22:04:38 +02:00
Abdullah Diab 481924b34d helpers: Fix broken TaskList in Markdown
As per the referenced issue, if the task list in Markdown has
nothing before it, it will be rendered wrongly:

```
---
title: "My First Post"
date: 2017-07-29T20:21:57+02:00
draft: true
---

* [ ] TaskList

```

is rendered as:

```
<ul> class="task-list"
<li><input type="checkbox" disabled class="task-list-item"> TaskList</li>
</ul>
```

The problem lies in the `List` function of `HugoHTMLRenderer`, it had
a hardocded index of `4` for the first `>` of the list, it is used to
insert the class into the text before the closing bracket, but that
hardcoded index is only right when there is a newline before the
opening bracket, which is the case when there is anything in the
document before the task list, but if there is nothing, then there is
no newline, and the correct index of the first `>` will be `3`.

To fix that we're changing the hardcoded index to be dynamic by using
`bytes.Index` to find it properly. We're also adding a test case to
make sure this is tested against.

Fixes #3710
2017-08-02 00:33:37 +02:00
Abdullah Diab 8353177226 Replace http://example.{com,org}/ with https://example.{com,org}/
* Replace http://example.{com,org}/ with https://example.{com,org}/

To be consistent with gohugoio/hugo, @bep suggests changing all
instances of http://(www.)?example.{com,org} with
https://(www.)?example.{com,org}

See issue gohugoio/hugo#3728 with pull request gohugoio/hugo#3739
2017-08-01 22:54:32 +02:00
Ryan Watters 6727d8203f Update gh repo for issues in config
Fixes #117
2017-08-01 22:13:46 +02:00
JuFisch 3a58818ea6 Add note to install Testify
* docs: Add note to install Testify

The Hugo Contributor Guide (Development) instructs users to run "go test ./..." and ensure it passes before moving on. However Hugo requires the Testify package for testing, and running the go test command without Testify results in 'cannot find package' errors and failing tests. It's hard to understand what to do next for users not familiar with Go dependencies. This commit adds a note to the contributor guide instructing users to get Testify if they don't already have it installed. Running the 'go get' command added here results in passing tests in the next step of the contributor guide.

* Fix typo https:// in go get command
2017-08-01 22:03:44 +02:00
Yann Hodique 19f13e6162 Fix YAML examples in taxonomies.md
Align YAML examples with TOML ones.
2017-08-01 22:01:14 +02:00
Jorin Vogel 09907d36af Switch from fork bep/inflect to markbates/inflect
Original package has received updates the fork hasn't.
Without fork updates are easier to maintain.
2017-08-01 13:05:09 +02:00
Bjørn Erik Pedersen bec2bd12c1 Make the title case style guide configurable
This works for the `title` func and the other places where Hugo makes title case.

* AP style (new default)
* Chicago style
* Go style (what we have today)

Fixes #989
2017-07-31 22:16:46 +02:00
Bjørn Erik Pedersen 8fb594bfb0 Make the title case style guide configurable
This works for the `title` func and the other places where Hugo makes title case.

* AP style (new default)
* Chicago style
* Go style (what we have today)

Fixes #989
2017-07-31 22:16:46 +02:00
Jorin Vogel 9b4170ce76 Remove unused dependencies from vendor.json 2017-07-31 21:04:37 +02:00
Jeremiah Valenzuela dc4b90db27 Replace old RSS template with new embedded version (#116)
Current documentation shows an old version of the embedded RSS template. The newer version is in:
https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/template_embedded.go

This was copied and pasted into the documentation as embedded.
2017-07-31 20:52:14 +02:00
Bjørn Erik Pedersen 00f39bd78d camelCase output format options
Fixes #114
2017-07-31 16:56:51 +02:00
Bjørn Erik Pedersen 6acbe41f0a media: Add missing JSON tags to Type
See https://github.com/gohugoio/hugoDocs/issues/114
2017-07-31 16:53:13 +02:00
Bjørn Erik Pedersen e321306c68 media: Add JSON tags to Type
See https://github.com/gohugoio/hugoDocs/issues/114
2017-07-31 16:41:10 +02:00
Bjørn Erik Pedersen 9c1977872c output: Add JSON tags to Format
See https://github.com/gohugoio/hugoDocs/issues/114
2017-07-31 16:38:02 +02:00
Jeremiah Valenzuela 902a14a185 Add missing word to pretty URLs explanation 2017-07-31 13:59:22 +02:00