Commit Graph
10137 Commits
Author SHA1 Message Date
Bjørn Erik Pedersen d37ea6a5e4 Update related.md 2018-04-05 16:05:12 +02:00
Anthony Fok 874159b543 snap: Add bash completion 2018-04-05 15:51:11 +02:00
Anthony Fok 294c0f8001 snap: Fix empty BuildDate in "hugo version"
Previously, "snap run hugo version" returns an empty BuildDate like so:

    Hugo Static Site Generator v0.38 linux/amd64 BuildDate:

Fix by overriding the default build target of snapcraft's go plugin.
2018-04-05 15:51:11 +02:00
Bjørn Erik Pedersen a4deaeff0c Fix some livereload content regressions
Introduced in Hugo 0.38.

Fixes #4566
2018-04-05 14:28:45 +02:00
Anthony Fok 4d115c56fa Update github.com/bep/gitmap to fix snap build
Fixes #4538
2018-04-05 14:20:39 +02:00
Bjørn Erik Pedersen faa2707d04 Update index.md 2018-04-05 08:53:39 +02:00
Brian Fitzgerald 26f34fd59d Fix two tests that are broken on Windows
Put guards around TestPageBundlerCaptureSymlinks and
TestPageBundlerSiteWitSymbolicLinksInContent so that they aren't
run on Windows (they both use symbolic links and the Go library
implementation requires administrator mode on Windows).
2018-04-05 08:35:06 +02:00
divinerites 9ce901dcbb Add a forgotten language tag (go-html-template) for code 2018-04-04 18:01:42 +02:00
Bjørn Erik Pedersen 730b66b652 commands: Handle mass content etc. edits in server mode
Fixes #4563
2018-04-04 09:29:59 +02:00
Bjørn Erik Pedersen b05aaed14d Update where.md 2018-04-02 18:47:48 +02:00
Stephen Brown II 4d47608191 Fix typo in code-toggle.md
Congig -> Config
2018-04-02 15:53:45 +02:00
Bjørn Erik Pedersen c5a5250a1b Use the new go-html-template Chroma lexer 2018-04-02 15:07:01 +02:00
Bjørn Erik Pedersen 2de831f4b9 Add the full list of Chroma lexers 2018-04-02 14:44:35 +02:00
Kaushal Modi 18114d4b4a Update Output Formats 2018-04-02 13:30:09 +02:00
Bjørn Erik Pedersen b069d7f84f Release 0.38 2018-04-02 13:21:08 +02:00
hugoreleaser caaa8355a0 releaser: Prepare repository for 0.39-DEV
[ci skip]
2018-04-02 11:06:04 +00:00
hugoreleaser b89157f201 releaser: Prepare repository for 0.39-DEV
[ci skip]
2018-04-02 11:06:04 +00:00
hugoreleaser 4f639d6bd5 releaser: Prepare repository for 0.39-DEV
[ci skip]
2018-04-02 11:06:04 +00:00
hugoreleaser e45b7cc9f7 releaser: Add release notes to /docs for release of 0.38
[ci skip]
2018-04-02 11:03:32 +00:00
hugoreleaser af4d0bf62d releaser: Add release notes to /docs for release of 0.38
[ci skip]
2018-04-02 11:03:32 +00:00
hugoreleaser f7bc28c529 releaser: Add release notes to /docs for release of 0.38
[ci skip]
2018-04-02 11:03:32 +00:00
hugoreleaser 40f40906e6 releaser: Bump versions for release of 0.38
[ci skip]
2018-04-02 11:03:32 +00:00
hugoreleaser ca98e7d4f1 releaser: Bump versions for release of 0.38
[ci skip]
2018-04-02 11:03:32 +00:00
hugoreleaser 20e9c08e1f releaser: Bump versions for release of 0.38
[ci skip]
2018-04-02 11:03:32 +00:00
Bjørn Erik Pedersen 37140a093b Release 0.38 2018-04-02 12:58:13 +02:00
hugoreleaser da80163c75 releaser: Add release notes draft for 0.38
Rename to *-ready.md to continue. [ci skip]
2018-04-02 12:58:13 +02:00
Anthony Fok 60e66d12ea travis: Clean up and increase verbosity 2018-04-02 09:20:58 +02:00
Bjørn Erik Pedersen ed8bf081fd Squashed 'docs/' changes from 3068989b9..d9c8fc220
d9c8fc220 Rebuild Chroma CSS
a9168b106 Adds missing word
ebaa172af Remove note about enabling custom GitLab domains
2ef3918b2 Add code toggler
41878b6ca Clarify the use of .GetPage with page bundles
ffcb26270 Fix broken link for configuration.md
1e72e2b3e Fixed typo in heading - Hightlighter
72b2db77c Change "on the form" to "of the form"
e15e6966f Fix example GitHub url

git-subtree-dir: docs
git-subtree-split: d9c8fc2207
2018-04-02 08:53:34 +02:00
Bjørn Erik Pedersen 2d52e2e4eb Merge commit 'ed8bf081fdbf336e026517b7e1b123c039014ab5' 2018-04-02 08:53:34 +02:00
Bjørn Erik Pedersen 8b773833af Merge commit 'ed8bf081fdbf336e026517b7e1b123c039014ab5' 2018-04-02 08:53:34 +02:00
Bjørn Erik Pedersen 558825cc20 Merge commit 'ed8bf081fdbf336e026517b7e1b123c039014ab5' 2018-04-02 08:53:34 +02:00
Bjørn Erik Pedersen 1439f64a01 docs: Generate docshelper data
And fix build ...
2018-04-02 08:52:42 +02:00
Bjørn Erik Pedersen 24202bb71b docs: Generate docshelper data
And fix build ...
2018-04-02 08:52:42 +02:00
Bjørn Erik Pedersen 10c33c17cd docs: Generate docshelper data
And fix build ...
2018-04-02 08:52:42 +02:00
Bjørn Erik Pedersen 2c54f1ad48 docshelper: List Chroma lexers
Fixes #4554
2018-04-02 08:50:42 +02:00
Bjørn Erik Pedersen d9c8fc2207 Rebuild Chroma CSS 2018-04-02 08:20:32 +02:00
Anthony Fok eb15ac37ef travis: Run "gem install" without sudo
Running "sudo gem install" was causing random errors like the following:

ERROR:  While executing gem ... (Errno::EACCES)
    Permission denied @ rb_sysopen - /home/travis/.rvm/gems/ruby-2.4.1/cache/asciidoctor-1.5.6.2.gem

Perhaps sudo is no longer necessary, even on OS X?  :-)
2018-04-02 08:15:35 +02:00
Bjørn Erik Pedersen eb42774e58 Add support for a content dir set per language
A sample config:

```toml
defaultContentLanguage = "en"
defaultContentLanguageInSubdir = true

[Languages]
[Languages.en]
weight = 10
title = "In English"
languageName = "English"
contentDir = "content/english"

[Languages.nn]
weight = 20
title = "På Norsk"
languageName = "Norsk"
contentDir = "content/norwegian"
```

The value of `contentDir` can be any valid path, even absolute path references. The only restriction is that the content dirs cannot overlap.

The content files will be assigned a language by

1. The placement: `content/norwegian/post/my-post.md` will be read as Norwegian content.
2. The filename: `content/english/post/my-post.nn.md` will be read as Norwegian even if it lives in the English content folder.

The content directories will be merged into a big virtual filesystem with one simple rule: The most specific language file will win.
This means that if both `content/norwegian/post/my-post.md` and `content/english/post/my-post.nn.md` exists, they will be considered duplicates and the version inside `content/norwegian` will win.

Note that translations will be automatically assigned by Hugo by the content file's relative placement, so `content/norwegian/post/my-post.md` will be a translation of `content/english/post/my-post.md`.

If this does not work for you, you can connect the translations together by setting a `translationKey` in the content files' front matter.

Fixes #4523
Fixes #4552
Fixes #4553
2018-04-02 08:06:21 +02:00
Greg Kaleka a9168b1067 Adds missing word 2018-04-02 00:02:38 -04:00
Bjørn Erik Pedersen f27977809c Update stale.yml 2018-04-01 21:36:00 +02:00
Avizini ebaa172af5 Remove note about enabling custom GitLab domains
This PR removes the warning saying GitLab has disabled Custom Domains for Pages. It has been fixed now.
2018-03-31 20:25:45 +02:00
Bjørn Erik Pedersen 7a634898c3 Update Chroma
Fixes #4549
2018-03-31 10:51:01 +02:00
Regis Philibert 2ef3918b2f Add code toggler
Closes #363
2018-03-30 22:46:25 +02:00
Kaushal Modi 41878b6cac Clarify the use of .GetPage with page bundles
- Add explanation to the headless page bundle example.
- Clarify that the PATH argument to .GetPath can be a single string or a series
  of strings.
2018-03-30 22:40:13 +02:00
Minos Park ffcb262701 Fix broken link for configuration.md 2018-03-30 21:50:25 +02:00
Ricardo N Feliciano 5b0edfd790 Add .Site.IsServer
Fixes #4478
2018-03-30 20:15:22 +02:00
Ricardo N Feliciano 43d15975d6 Add .Site.IsServer
Fixes #4478
2018-03-30 20:15:22 +02:00
Ricardo N Feliciano 1823c053c8 Add .Site.IsServer
Fixes #4478
2018-03-30 20:15:22 +02:00
Jonathan Griffin 1e72e2b3ec Fixed typo in heading - Hightlighter
A simple change to heading to fix a typo - "Hightlighter" should be "Highlighter"
2018-03-29 14:40:01 -04:00
James Rhea 72b2db77ca Change "on the form" to "of the form"
Typo fix: changed "on the form" to "of the form" in configuration.md
2018-03-29 14:39:10 -04:00