Ryan Watters
2e9810485b
Clean up shortcode templates
...
Closes rdwatters/hugo-docs-concept#67
2017-04-06 15:35:55 -05:00
Ryan Watters
74d331ba53
Change to Template Lookup Order for temp-lookup linktitle
2017-04-06 14:36:00 -05:00
Ryan Watters
78164269cf
Fix heading typo in cm shortcodes
2017-04-06 14:32:41 -05:00
Ryan Watters
56d459d6fa
Fix heading in cm-shortcodes
2017-04-06 14:31:27 -05:00
Ryan Watters
3375fc2b7b
Fix heading in cm-shortcodes
2017-04-06 14:31:14 -05:00
Albert Nigmatzianov
260b55ea56
tpl: Set RenderingContext.Config in markdownify
2017-04-06 21:02:37 +02:00
Albert Nigmatzianov
8f09e5f6bc
helpers: Add new properties to ContentSpec
2017-04-06 21:02:37 +02:00
Bjørn Erik Pedersen
c4a1165587
all: Handle all errors
...
As reported by `errcheck`.
2017-04-06 20:35:26 +02:00
Albert Nigmatzianov
35fffad1e9
Update content-management/multilingual to reflect new TOML support
...
@bogem Thanks a lot for your help, sir!
And for the great work on implementing this feature.
I appreciate it! 😄
Fixes rdwatters/hugo-docs-concept#64
See PR rdwatters/hugo-docs-concept#65 and PR gohugoio/hugo#3257
2017-04-06 11:50:14 -05:00
Anthony Fok
bf2d2bbede
Fix typo: "KaTex" → "KaTeX"
...
Thanks for the good catch and keen eye @anthonyfok.
Much appreciated!
See PR rdwatters/hugo-docs-concept#66
2017-04-06 11:49:11 -05:00
Bjørn Erik Pedersen
e77bb13c20
media, output: Fix spelling
2017-04-06 15:28:56 +02:00
Bjørn Erik Pedersen
e225c95f9e
docs: Disable GitInfo by default
...
Use `--enableGitInfo` when publishing.
This gives a much better out-of-the-box editing experience.
2017-04-06 13:50:10 +02:00
Bjørn Erik Pedersen
e6e1aca3f4
docs: Disable GitInfo by default
...
Use `--enableGitInfo` when publishing.
This gives a much better out-of-the-box editing experience.
2017-04-06 13:50:10 +02:00
Chris Hager
0f53dc24d1
docs: Add info about Pygments installation in installing.md
...
Additional information about the Pygments dependency in the "installing from source" chapter.
2017-04-06 13:48:22 +02:00
Chris Hager
f3b4a0e99e
docs: Add info about Pygments installation in installing.md
...
Additional information about the Pygments dependency in the "installing from source" chapter.
2017-04-06 13:48:22 +02:00
Li-Wen Yip
9d1480cf81
docs: Add article by Li-Wen Yip to press section
2017-04-06 13:38:32 +02:00
Li-Wen Yip
0dd6890ed5
docs: Add article by Li-Wen Yip to press section
2017-04-06 13:38:32 +02:00
Ryan Watters
119182aa43
Add sections_weight to all content files
2017-04-05 18:48:10 -05:00
Ryan Watters
ce428a9cca
Update trim description with note on whitespace
2017-04-05 18:31:18 -05:00
Ryan Watters
fe78595c89
Add emphasis to trim function explanation
2017-04-05 18:24:40 -05:00
Bjørn Erik Pedersen
6650fae7ad
tpl: Fix nil pointer in Tree()
...
Fixes #3285
2017-04-05 22:12:03 +02:00
Ryan Watters
f4b1293510
Fix typos in syntax highlighting docs
2017-04-05 14:28:05 -05:00
Ryan Watters
6b7c849789
Update trim explanation per gohugoio/hugo#3279
2017-04-05 12:50:38 -05:00
Ricardo N Feliciano
28146cb354
docs: Properly capitalize GitHub
2017-04-05 18:41:23 +02:00
Ricardo N Feliciano
b31da911b5
docs: Properly capitalize GitHub
2017-04-05 18:41:23 +02:00
Ryan Watters
4b1dfc1d52
Update govendor instructions in source install
2017-04-05 11:21:23 -05:00
Bjørn Erik Pedersen
1425587193
hugolib: Add optional outputFormat to Ref/RelRef
...
Fixes #3224
2017-04-04 23:09:01 +02:00
Bjørn Erik Pedersen
a883948c4f
Register all media types when in server mode
...
Fixes #3274
2017-04-04 18:05:19 +02:00
Bjørn Erik Pedersen
bc36d468ab
tplimpl: Reintroduce the double template lookup in Partial
...
So it works as before without the html suffix.
Fixes #3272
2017-04-04 17:21:04 +02:00
Bjørn Erik Pedersen
7da1b65968
all: Use the configured output types to resolve template type
...
Closes #320
2017-04-04 15:12:30 +02:00
Bjørn Erik Pedersen
868f89d5c6
hugolib: Improve render error handling
...
Catch and return the "template not found" error earlier.
2017-04-04 15:12:30 +02:00
Bjørn Erik Pedersen
04d80e6e87
commands, helpers: Add correct verbose log level to the global loggers
...
We still use those in some cases.
2017-04-04 15:12:30 +02:00
Bjørn Erik Pedersen
0802f79e66
output: Make template name lower cased
2017-04-04 15:12:30 +02:00
Bjørn Erik Pedersen
10ff2f31a6
hugolib: Read media types and output formats from site config
...
Closes #3222
Closes #3223
2017-04-04 15:12:30 +02:00
Bjørn Erik Pedersen
f8d555cca5
media: Add DecodeTypes
...
And clean up the media package.
2017-04-04 15:12:30 +02:00
Bjørn Erik Pedersen
c9aee467d3
output: Add output formats decoder
...
And clean up the output package.
2017-04-04 15:12:30 +02:00
Bjørn Erik Pedersen
d6e8b86f66
output: Add CSV to the global output formats list
2017-04-04 15:12:30 +02:00
Ryan Watters
2cf2b4832e
Add language-hugo Atom plugin to dev-tools editors
2017-04-03 13:44:38 -05:00
Ryan Watters
dba7e38a74
Add embedded SVGs example to dict function
2017-04-03 11:00:06 -05:00
Ryan Watters
af3230aa5b
Fix typos and add explanation on configuration.md
2017-04-03 10:34:58 -05:00
Ryan Watters
77647be7ff
Expand static dir explanation in dir structure
2017-04-03 10:16:25 -05:00
Albert Nigmatzianov
a098081c4a
vendor: Update go-i18n
2017-04-03 08:34:12 +02:00
Kamil Samigullin
706c2d512e
docs: Remove localhost part from link
...
Fixes #3264
2017-04-03 01:29:53 +02:00
Kamil Samigullin
5d7eeeadf0
docs: Remove localhost part from link
...
Fixes #3264
2017-04-03 01:29:53 +02:00
Bjørn Erik Pedersen
8b5b558bb5
tpl: Rework to handle both text and HTML templates
...
Before this commit, Hugo used `html/template` for all Go templates.
While this is a fine choice for HTML and maybe also RSS feeds, it is painful for plain text formats such as CSV, JSON etc.
This commit fixes that by using the `IsPlainText` attribute on the output format to decide what to use.
A couple of notes:
* The above requires a nonambiguous template name to type mapping. I.e. `/layouts/_default/list.json` will only work if there is only one JSON output format, `/layouts/_default/list.mytype.json` will always work.
* Ambiguous types will fall back to HTML.
* Partials inherits the text vs HTML identificator of the container template. This also means that plain text templates can only include plain text partials.
* Shortcode templates are, by definition, currently HTML templates only.
Fixes #3221
2017-04-02 23:13:10 +02:00
Ryan Watters
53eee8a4cc
Update Mmark info to show ease of use with MathJax and KaTeX
2017-04-02 15:25:02 -05:00
Ryan Watters
b3819aa003
Add esaezgil.com to showcase
2017-04-02 15:07:35 -05:00
Albert Nigmatzianov
bc701e075d
docs, examples: Use TOML for i18n config files
...
Fix #3200
2017-04-02 18:43:32 +02:00
Albert Nigmatzianov
27610ddd01
hugolib: Don't ignore errors from applyDepsIfNeeded
2017-04-02 18:43:32 +02:00
Albert Nigmatzianov
6b29bccfee
hugolib, i18n: Update tests with flat format and TOML files
2017-04-02 18:43:32 +02:00