Bjørn Erik Pedersen
f023dfd763
Move the Build* methods to HugoSites
...
See #2309
2016-09-06 18:32:16 +03:00
Bjørn Erik Pedersen
5b9c2a40f1
Move HugoSites to hugolib
...
It will get more involved in the build process in a minute.
See #2309
2016-09-06 18:32:16 +03:00
Bjørn Erik Pedersen
3a02807970
Add Translations and AllTranslations to Node
...
This commit also consolidates URLs on Node vs Page, so now .Permalink should be interoperable.
Note that this implementations should be fairly short-livded, waiting for #2297 , but the API should be stable.
2016-09-06 18:32:16 +03:00
Bjørn Erik Pedersen
52bf8f9095
Rework the i18n template func handling
...
Setting the language to use when loading the language bundles just doesn't work.
The template system is unfortanetely a global, and the last languate processed won ...
2016-09-06 18:32:16 +03:00
Bjørn Erik Pedersen
75dd596e6c
Introduce HugoSites type
...
And a Hugo global variable which contains the site under build.
This is really needed to get some level of control of the "multiple languages" in play.
There are still work related to this scattered around, but that will come.
With this commit, the multilingual feature is starting to work.
2016-09-06 18:32:16 +03:00
Bjørn Erik Pedersen
618948e4a8
Reset translation slice on rebuild
...
Also add all translations, including the current, to the slice. We filter later.
2016-09-06 18:32:16 +03:00
Bjørn Erik Pedersen
c447b7dd6e
Rename MainSites to Sites
...
Having many *main* sites doesn't make much sense.
2016-09-06 18:32:16 +03:00
Bjørn Erik Pedersen
c4e7c37055
Add Translations and AllTranslations methods to Page
...
Will revisit Node later.
2016-09-06 18:32:15 +03:00
Bjørn Erik Pedersen
06d12ab895
Add proper Language and Languages types
2016-09-06 18:32:15 +03:00
Alexandre Bourget
ec33732fbe
Add multilingual support in Hugo
...
Implements:
* support to render:
* content/post/whatever.en.md to /en/2015/12/22/whatever/index.html
* content/post/whatever.fr.md to /fr/2015/12/22/whatever/index.html
* gets enabled when `Multilingual:` is specified in config.
* support having language switchers in templates, that know
where the translated page is (with .Page.Translations)
(when you're on /en/about/, you can have a "Francais" link pointing to
/fr/a-propos/)
* all translations are in the `.Page.Translations` map, including the current one.
* easily tweak themes to support Multilingual mode
* renders in a single swift, no need for two config files.
Adds a couple of variables useful for multilingual sites
Adds documentation (content/multilingual.md)
Added language prefixing for all URL generation/permalinking see in the
code base.
Implements i18n. Leverages the great github.com/nicksnyder/go-i18n lib.. thanks Nick.
* Adds "i18n" and "T" template functions..
2016-09-06 18:32:15 +03:00
Russ Shanahan
faa3472fa2
docs: Fix typo in Quickstart guide
...
To publish a post, draft status should be changed to `false`.
2016-09-06 14:34:46 +02:00
Vasiliy Solovey
ccc51fe764
docs: Add open.cinegy.com to the showcase
2016-09-06 14:32:33 +02:00
digitalcraftsman
723d4656b5
docs: Add Vim/Emacs plugin to tools section
2016-09-04 15:22:05 +02:00
integrii
a48ac6e945
docs: Clarify first level URL generation
2016-09-03 15:32:29 +02:00
Mark D. Blackwell
0614a59b0f
docs: Improve Quickstart guide
...
Fixes #2331 .
2016-09-03 15:19:01 +02:00
Mark D. Blackwell
696c67b04a
docs: Clarify Creating a New Theme
2016-09-01 20:34:00 -04:00
Nichlas Hummelsberger
bb1812b6af
docs: Mention theme config option on Usage page
2016-09-01 17:22:50 +02:00
sethmacleod
8e1bcea82f
docs: Update documentation for URLs
...
Using absolute URLs overrides relative URL behavior. This should be explicit in the docs.
2016-08-30 01:26:21 -04:00
Cameron Moore
b6635e1baf
helpers: Fix bug in emoji renderer
...
Fixes #2391
2016-08-30 00:34:48 +02:00
vsopvsop
7cb8107735
docs: Correct spelling for "parameters" in partials.md
2016-08-29 12:25:53 +02:00
digitalcraftsman
38d034df38
docs: Document shuffle template func
...
Fixes #2393 .
2016-08-29 12:22:37 +02:00
Andreas Grunewald
6eff9e5015
docs: Update highlight.js example to latest version
...
Highlight.js has evolved quite a bit since it this doc was written. Updating the example to the latest 9.6 version of Highlight JS hosted by cloudflare
2016-08-25 14:05:34 +02:00
Eric
2fc05dad4e
docs: Add location of block template
2016-08-20 21:54:14 +02:00
Bjørn Erik Pedersen
fee9ee72a6
tpl: Add missing arg to Fatalf
2016-08-20 20:52:14 +01:00
Bjørn Erik Pedersen
20c4311df4
Switch to a more up to date TOML library
...
Fixes #2089
2016-08-20 20:33:06 +01:00
Mark D. Blackwell
81f04ef4f0
docs: Clarify Usage
2016-08-19 14:38:20 -04:00
Anthony Fok
2530087ab1
docs: Add Spanish video tutorial by Verónica López to press.md
2016-08-19 08:26:26 -06:00
Cameron Moore
715d4425ad
hugolib: Use named keys in composite literals
...
Make `go vet` great again
2016-08-19 12:22:19 +01:00
Steef Hegeman
c5d072990a
docs: Just a small grammar fix in quickstart.md
2016-08-18 20:58:29 +02:00
Mark D. Blackwell
3ce9de7672
docs: Follow through on watch default
2016-08-18 20:55:05 +02:00
Georg Hartmann
68c8e0e23d
docs: Correct name of release archives for OS X
...
Fixes #2341
2016-08-18 20:49:13 +02:00
Mark D. Blackwell
be429d2268
docs: Correct all erroneous swaps of "it's" and "its"
2016-08-18 20:42:40 +02:00
Mark D. Blackwell
8474b9defe
docs: Improve section 'Why did you write Hugo?'
2016-08-18 20:33:57 +02:00
Stephan Kulla
de1ca477b8
docs: Fix URLs in examples sites with path prefix
...
When baseurl ist something like "http://example.com/hugo/ " a link to
"/tags/..." does not work. Therefore I fixed the examples so that they
also work in cases where the website is not saved at the server's root.
See also https://discuss.gohugo.io/t/how-shall-i-link-a-taxonomy-page/3920
2016-08-18 20:15:37 +02:00
Anthony Fok
f914774f6b
Remove broken Bitdeli badge from README.md
2016-08-16 21:13:21 -06:00
Cameron Moore
5498a1bd56
tpl: Return all errors from casting
...
Most non-boolean template functions should return errors.
Fixes #2354
2016-08-16 21:42:38 -05:00
Cameron Moore
d3627b1747
Simplify Travis build
2016-08-16 17:01:59 -05:00
Stephan Kulla
d72c454f78
Fix command for getting hugo in CONTRIBUTING.md
2016-08-16 08:56:45 -05:00
Bjørn Erik Pedersen
97c37732b4
Add a global Reset func
...
So we can do some benchmarking.
2016-08-16 12:50:26 +02:00
Bjørn Erik Pedersen
2175ea5b06
Bump Travis to Go 1.7
2016-08-16 10:05:10 +02:00
Kishin Yagami
661c9787ea
commands: Suppress 'missing static' error
...
Fixes #2311
2016-08-14 00:35:43 +02:00
Bjørn Erik Pedersen
f6d4801ba4
Skipt Twitter test in short mode
2016-08-13 18:50:06 +02:00
Bjørn Erik Pedersen
09612f7af8
tpl: Fix faulty ordering of relURL test cases
2016-08-13 00:36:15 +02:00
Stephan Kulla
88dcbc6efa
tpl: Make absURL and relURL accept anything
2016-08-13 00:31:50 +02:00
Mark Ayers
26725515c8
docs: Convert toml to yaml in config overview
2016-08-12 13:37:30 +02:00
Kishin Yagami
39df7724ad
source: Normalize file name to NFC
...
Fixes #2203
2016-08-08 20:25:00 +02:00
Wade Fitzpatrick
b33bfd40be
docs: Add doc for time template func
2016-08-08 12:28:41 +02:00
Maxime Michel
f2faae0805
Remove maximeguitare.com from showcase
2016-08-06 23:37:11 +02:00
Randall Degges
0d9c0677f6
docs: Add rdegges.com to the showcase
2016-08-06 15:06:10 +02:00
digitalcraftsman
914e4d8535
tpl: Fix typo in FindRE test
2016-08-04 14:37:15 +02:00