Commit Graph
934 Commits
Author SHA1 Message Date
Mark D. Blackwellanddigitalcraftsman 0e7264eed7 docs: Improve Traversing Local Files 2016-09-15 15:15:04 +02:00
digitalcraftsman a7af5f6674 docs: Remove JPEG as format for showcase thumbnails 2016-09-11 18:18:28 +02:00
David Yatesanddigitalcraftsman a57bf904f9 docs: Add davidyat.es to the showcase 2016-09-11 18:11:50 +02:00
Bjørn Erik PedersenandGitHub b9fc7ed0c3 Add TODO list support for Blackfriday
* Add CSS class to TODO list and list items
* Add a flag to turn task list support off

Fixes #2269
2016-09-09 13:08:20 +02:00
Pascal Aubortanddigitalcraftsman e8e325b1af docs: Fix typos in multilingual section 2016-09-08 15:54:26 +02:00
Bjørn Erik Pedersen bbedb447ae docs: Fix spelling: HasTranslations > IsTranslated 2016-09-06 18:32:20 +03:00
Bjørn Erik Pedersen d48c520deb docs: Get the variable and funcs re multilingual up-to-date 2016-09-06 18:32:20 +03:00
Bjørn Erik Pedersen ee823aff57 doc: Fix TOML vs YAML in multilang section
Updates ##2309
2016-09-06 18:32:19 +03:00
Bjørn Erik Pedersen b6f3bfb800 Add IsTranslated to Node and Page
Makes the templates simpler.

See #2309
2016-09-06 18:32:19 +03:00
Bjørn Erik Pedersen c714d534f4 Improve i18n string handling
* Fall back to default language on missing translation file
* Add a i18n-warnings build flag
* If that flag is set, print a parseable and greppable string on missing translation strings

See #2303
2016-09-06 18:32:19 +03:00
Bjørn Erik Pedersen 648f597d67 Render main content language in root by default
Fixes #2312
2016-09-06 18:32:18 +03:00
Bjørn Erik Pedersen b210fe9d76 Improve language handling in URLs
The current "rendering language" is needed outside of Site. This commit moves the Language type to the helpers package, and then used to get correct correct language configuration in the markdownify template func.
This commit also adds two new template funcs: relLangURL and absLangURL.

See #2309
2016-09-06 18:32:18 +03:00
Bjørn Erik Pedersen e4b43f02e7 Make it possible to configure Blackfroday per language
See #2309
2016-09-06 18:32:17 +03:00
Bjørn Erik Pedersen bad7586eb8 Make taxonomies configurable per language
See #2312
2016-09-06 18:32:17 +03:00
Bjørn Erik Pedersen 2599c0364e Rework the multilingual docs
And in the same go adjusted some minor parts of the language API:

Add LanguagePrefix alias to Node and rename the Multilingual config section to Languages.

See #2309
2016-09-06 18:32:17 +03:00
Alexandre BourgetandBjørn Erik Pedersen 67df082564 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 Shanahananddigitalcraftsman 44b1d8d5f0 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 Soloveyanddigitalcraftsman 9096a39ba4 docs: Add open.cinegy.com to the showcase 2016-09-06 14:32:33 +02:00
digitalcraftsman 4c416d5e72 docs: Add Vim/Emacs plugin to tools section 2016-09-04 15:22:05 +02:00
integriianddigitalcraftsman f24ca3fcc8 docs: Clarify first level URL generation 2016-09-03 15:32:29 +02:00
Mark D. Blackwellanddigitalcraftsman 465285c14d docs: Improve Quickstart guide
Fixes #2331.
2016-09-03 15:19:01 +02:00
Mark D. Blackwell 1e632ce688 docs: Clarify Creating a New Theme 2016-09-01 20:34:00 -04:00
Nichlas Hummelsbergeranddigitalcraftsman 54a159bd99 docs: Mention theme config option on Usage page 2016-09-01 17:22:50 +02:00
sethmacleodandGitHub 7c076f5e20 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
vsopvsopanddigitalcraftsman 18df3ec388 docs: Correct spelling for "parameters" in partials.md 2016-08-29 12:25:53 +02:00
digitalcraftsman b6407a6e1e docs: Document shuffle template func
Fixes #2393.
2016-08-29 12:22:37 +02:00
Andreas Grunewaldanddigitalcraftsman 42f8f85c65 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
Ericanddigitalcraftsman 334801a2c9 docs: Add location of block template 2016-08-20 21:54:14 +02:00
Mark D. Blackwell 39d11eeb2c docs: Clarify Usage 2016-08-19 14:38:20 -04:00
Anthony Fok 9d0542f0f6 docs: Add Spanish video tutorial by Verónica López to press.md 2016-08-19 08:26:26 -06:00
Steef Hegemananddigitalcraftsman ef76fe9d6c docs: Just a small grammar fix in quickstart.md 2016-08-18 20:58:29 +02:00
Mark D. Blackwellanddigitalcraftsman 7453baf8b5 docs: Follow through on watch default 2016-08-18 20:55:05 +02:00
Georg Hartmannanddigitalcraftsman b2e645a057 docs: Correct name of release archives for OS X
Fixes #2341
2016-08-18 20:49:13 +02:00
Mark D. Blackwellanddigitalcraftsman 96b46738d0 docs: Correct all erroneous swaps of "it's" and "its" 2016-08-18 20:42:40 +02:00
Mark D. Blackwellanddigitalcraftsman 79c775f2eb docs: Improve section 'Why did you write Hugo?' 2016-08-18 20:33:57 +02:00
Stephan Kullaanddigitalcraftsman 7d82feab36 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
Mark Ayersanddigitalcraftsman eed80110fa docs: Convert toml to yaml in config overview 2016-08-12 13:37:30 +02:00
Wade Fitzpatrickanddigitalcraftsman e8ebe0452b docs: Add doc for time template func 2016-08-08 12:28:41 +02:00
Maxime Michel 3c6fae17ec Remove maximeguitare.com from showcase 2016-08-06 23:37:11 +02:00
Randall Deggesanddigitalcraftsman e0de8ef4e0 docs: Add rdegges.com to the showcase 2016-08-06 15:06:10 +02:00
astrochilianddigitalcraftsman 400ac5b6af docs: Add romansilin.com to the showcase 2016-07-31 13:09:25 +02:00
digitalcraftsman 8a4ab3694a docs: Add tumblr2hugomarkdown to tools section 2016-07-29 20:37:32 +02:00
digitalcraftsman 5bbadd6512 docs: Add tumblr-importr to tools section 2016-07-29 20:36:10 +02:00
digitalcraftsman f276fec344 docs: Document .File variables for pages
Fixes #2154.
2016-07-29 20:12:28 +02:00
Chris DeLucaanddigitalcraftsman c623050c5b docs: Drop .isDraft to new line
Bring **.isDraft** onto a new line, to be consistent with the other list items.
2016-07-29 20:10:40 +02:00
Jeremy Brownanddigitalcraftsman 0f5cc2bf60 docs: Add a link to hugo-openapispec-shortcode
Added a link to the Hugo Open API Spec shortcode which allows you to embed OAI Spec (formerly known as Swagger) in your site.
2016-07-29 20:07:46 +02:00
Felipe Rohdeanddigitalcraftsman 0651317d24 docs: Removed comma from json example.
The comma causing invalid json and hugo not compile the file based on the same example.
2016-07-29 20:01:23 +02:00
Max Miltonanddigitalcraftsman f97d89b075 docs: Add missing configuration option disableHugoGeneratorInject 2016-07-29 19:58:25 +02:00
Weilinanddigitalcraftsman 031ed61f4c docs: Add weilinshi.org to the showcase 2016-07-29 19:51:28 +02:00
zarinaanddigitalcraftsman 870ef8b806 docs: Add CTL Compiled edtech blog to showcase 2016-07-29 19:46:53 +02:00