5533 Commits

Author SHA1 Message Date
Cameron Moore
a6581df8fe Add /public to .gitignore 2017-06-23 08:10:19 +02:00
Bjørn Erik Pedersen
fd924d1802 commands: Create default archetype on new site
See #3626
2017-06-22 22:00:42 +02:00
Bjørn Erik Pedersen
e908d955d2 create: Fix archetype regression when no archetype file
Fixes #3626
2017-06-22 22:00:42 +02:00
Bjørn Erik Pedersen
bc237743e4 Regenerate commands docs
The `hugo new -f` flag is removed; in Hugo 0.24 we take the archetype front matter as is and do no conversions.

Closes https://github.com/gohugoio/hugo/issues/3631
2017-06-22 21:55:10 +02:00
Tom Shen
5ecf99762b Fix typos in shortcodes documentation 2017-06-22 21:23:19 +02:00
Ricardo N Feliciano
becc167434 Add CircleCI build, test, deploy blog post to press 2017-06-22 21:22:23 +02:00
Ricardo N Feliciano
652ca1faaf Add Docker Hugo to installation page 2017-06-22 21:20:09 +02:00
daftaupe
1ab7a03414 Remove specific Hugo version from installing.md
Removed the version in the repo (unmaintainable in the long term, the page will always be obsolete). 
Changed the order of the repos, most up-to-date first.
2017-06-22 21:17:14 +02:00
Anthony Fok
6fd6f7c5b1 Fix typo 2017-06-22 00:40:20 -06:00
Bjørn Erik Pedersen
8b620f7a8a docs: Update 2017-06-21 21:41:40 +02:00
Bjørn Erik Pedersen
12611e0c64 Update docs 2017-06-21 21:39:33 +02:00
Anthony Fok
58ce9213c0 releaser: Fix typo, change "relase" to "release" 2017-06-21 21:37:53 +02:00
Bjørn Erik Pedersen
25e6855c28 releaser: Add relase notes to /docs for release of 0.24
[ci skip]
2017-06-21 16:43:30 +02:00
Bjørn Erik Pedersen
ae3039b6e8 Update docs 2017-06-21 14:07:35 +02:00
Bjørn Erik Pedersen
81c66d18f7 Bump to 0.25-DEV 2017-06-21 14:07:05 +02:00
Bjørn Erik Pedersen
3554fd1218 releaser: Prepare repository for 0.25-DEV
[ci skip]
2017-06-21 13:58:01 +02:00
Bjørn Erik Pedersen
1ac4dbb900 releaser: Update /docs to 0.24 [ci skip] 2017-06-21 13:53:23 +02:00
Bjørn Erik Pedersen
8f69fe57a4 releaser: Bump versions for release of 0.24
[ci skip]
2017-06-21 13:52:27 +02:00
Bjørn Erik Pedersen
f8c5716adf releaser: Update /docs [ci skip] 2017-06-21 13:52:27 +02:00
Bjørn Erik Pedersen
2ba9a8769f releaser: Add release notes draft for 0.24 2017-06-21 13:51:05 +02:00
Ryan Watters
b7f8d05731 Add numfmt to functions list
Closes rdwatters/hugo-docs-concept#147
2017-06-20 11:59:09 -05:00
Ryan Watters
976c398f6a Add numfmt to functions list
Closes rdwatters/hugo-docs-concept#147
2017-06-20 11:58:48 -05:00
Bjørn Erik Pedersen
c1ab9894e8 Replace aliases with Netlify's _redirects
See https://github.com/gohugoio/hugo/issues/3613
See https://github.com/gohugoio/hugo/issues/3614
2017-06-20 17:58:21 +02:00
Bjørn Erik Pedersen
c43b512b47 output: Identify extension-less text types as text
See #3614
2017-06-20 17:21:31 +02:00
Bjørn Erik Pedersen
19f2e72913 Support non-md files as archetype files
It now properly uses the extension of the target file to determine archetype file.

Fixes #3597
Fixes #3618
2017-06-20 13:41:48 +02:00
Bjørn Erik Pedersen
5b0e2ea06f Regenerate data/docs.json
And add a note about `Delimiter` in mime types.

Closes https://github.com/gohugoio/hugo/issues/3615
2017-06-20 11:10:51 +02:00
Bjørn Erik Pedersen
0f40e1fadf media, hugolib: Support extension-less media types
This change is motivated by Netlify's `_redirects` files, which is currently not possible to generate with Hugo.

This commit adds a `Delimiter` field to media type, which defaults to ".", but can be blanked out.

Fixes #3614
2017-06-20 11:04:14 +02:00
Bjørn Erik Pedersen
516e6c6dc5 hugolib: Add disableAliases
Note that even with this setting enabled, the aliases themselves are preserved on the pages.

The big motivation for this change is to be able to use the alias definitions to generate `.htaccess` or Netlify's `_redirect` files with server-side redirects.

Fixes #3613
2017-06-20 11:03:34 +02:00
Bud Parr
175eb008a4 Take the first crack at some copy for custom output types
See PR rdwatters/hugo-docs-concept#145
2017-06-19 16:46:27 -05:00
Bud Parr
176c35d4d2 Update theme to include theme PR gohugoio/gohugoioTheme#37 2017-06-19 11:54:17 -04:00
Ryan Watters
3ac3539f55 Fix typo on output formats 2017-06-19 09:45:54 -05:00
Bjørn Erik Pedersen
3183b9a29d parser: Fix handling of quoted brackets in JSON front matter
Also remove a broken JSON test.

Fixes #3511
2017-06-19 16:45:52 +02:00
Bjørn Erik Pedersen
1a282ee432 vendor: Update Viper 2017-06-19 14:48:16 +02:00
Bjørn Erik Pedersen
fb53987a4f hugolib: Fix error handling for JSON front matter
Fixes #3610
2017-06-19 14:41:03 +02:00
Bud Parr
6e3bd7020b Update theme to reflect NAV changes
See PR gohugoio/gohugoioTheme#36
2017-06-19 08:00:58 -04:00
Bjørn Erik Pedersen
662e12f348 commands, create: Add .Site to the archetype templates
This commit completes the "The Revival of the Archetypes!"

If `.Site` is used in the arcetype template, the site is built and added to the template context.

Note that this may be potentially time consuming for big sites.

A more complete example would then be for the section `newsletter` and the archetype file `archetypes/newsletter.md`:

```
---
title: "{{ replace .TranslationBaseName "-" " " | title }}"
date: {{ .Date }}
tags:
- x
categories:
- x
draft: true
---

<!--more-->

{{ range first 10 ( where .Site.RegularPages "Type" "cool" ) }}
* {{ .Title }}
{{ end }}
```

And then create a new post with:

```bash
hugo new newsletter/the-latest-cool.stuff.md
```

**Hot Tip:** If you set the `newContentEditor` configuration variable to an editor on your `PATH`, the newly created article will be opened.

The above _newsletter type archetype_ illustrates the possibilities: The full Hugo `.Site` and all of Hugo's template funcs can be used in the archetype file.

Fixes #1629
2017-06-19 10:47:00 +02:00
Bjørn Erik Pedersen
422057f607 create: Use archetype template as-is as a Go template
This commit removes the fragile front matter decoding, and takes the provided archetype file as-is and processes it as a template.

This also means that we no longer will attempt to fill in default values for `title` and `date`.

The upside is that it is now easy to create these values in a dynamic way:

```toml
+++
title = {{ .BaseFileName | title }}
date = {{ .Date }}
draft = true
+++
```

You can currently use all of Hugo's template funcs, but the data context is currently very shallow:

* `.Type` gives the archetype kind provided
* `.Name` gives the target file name without extension.
* `.Path` gives the target file name
* `.Date` gives the current time as RFC3339 formatted string

The above  will probably be extended in #1629.

Fixes #452
Updates #1629
2017-06-18 19:06:28 +02:00
digitalcraftsman
f91c0c489f config.toml: Let links point to the new forum url 2017-06-17 12:55:58 +02:00
digitalcraftsman
acd7ffdf46 config.toml: Update links for GH org and forum 2017-06-17 12:52:24 +02:00
Bjørn Erik Pedersen
4aa1239070 Update links to new discuss URL 2017-06-17 10:06:49 +02:00
Bjørn Erik Pedersen
877fc4acb3 Update layout with new discussion URL 2017-06-17 10:02:14 +02:00
Bjørn Erik Pedersen
d349ce8e4c Update content files with new discussion URL 2017-06-17 10:01:14 +02:00
Ryan Watters
d78c5b4d5c Replace all instances of discuss.gohugo.io with new discourse.gohugo.io URL 2017-06-16 20:50:36 -05:00
Ryan Watters
e731a7aa51 Fix heading typo for Windows 10 users in install instructions 2017-06-16 20:44:24 -05:00
Ryan Watters
4231fd695e Update all relevant instances of spf13 to gohugoio in install instructions 2017-06-16 20:39:42 -05:00
digitalcraftsman
ce7fc7dee7 Add upgrade instructions using Homebrew 2017-06-16 20:53:36 +02:00
Leon Barnard
728f04ce8a Adding upgrade instructions using Homebrew 2017-06-16 11:38:43 -07:00
Bjørn Erik Pedersen
411ac93086 vendor: Update deps 2017-06-16 14:24:40 +02:00
Bjørn Erik Pedersen
4345026bd6 releaser: Add TODO 2017-06-16 10:11:02 +02:00
Bjørn Erik Pedersen
8c9359bab4 releaser: Prepare repository for 0.24-DEV
[ci skip]
2017-06-16 09:52:02 +02:00