Yihui Xie
2e1e4934b6
tpl: Improve the built-in Disqus template ( #3639 )
...
* Improve the built-in Disqus template
Set `disqus_identifier`, `disqus_title`, and `disqus_url`
only if the user has explicitly provided them.
Do not load Disqus when the website is previewed locally,
otherwise it is very confusing.
* Use disqus_config instead of three global variables
https://help.disqus.com/customer/portal/articles/472098-javascript-configuration-variables
2017-06-27 05:40:01 -06:00
Haishan Zhou
a54404968a
helpers: Add Blackfriday 'joinLines' extension support ( #3574 )
...
See https://github.com/russross/blackfriday/pull/334
"add an extension to handle Chinese (or CJK) newlines"
for more information.
2017-06-27 04:56:50 -06:00
Frank Braun
bfce30d859
helpers: add --initial-header-level=2 to rst2html ( #3528 )
...
reStructuredText doesn't have explicit section levels but sets them in
the order of appearance. Since level 1 is already set from the title in
the front matter it makes more sense to start with level 2 when
converting with rst2html.
2017-06-27 04:26:33 -06:00
Anthony Fok
30e14cc316
Make --navigateToChanged
more robust on Windows
...
This ensures the new "open 'current content page' in browser" works
on Windows, especially with Emacs and Vim.
Special thanks to @bep for coming up with the idea of the fix.
See #3645
2017-06-27 11:45:54 +02:00
Bjørn Erik Pedersen
c825a73121
Support open "current content page" in browser
...
This commit adds a new `--navigateToChanged` and config setting with the same name, that, when running the Hugo server with live reload enabled, will navigate to the current content file's URL on save.
This is really useful for site-wide content changes (copyedits etc.).
Fixes #3643
2017-06-26 21:34:16 +02:00
Bjørn Erik Pedersen
7198ea8a1e
Revert "Remove docs building from CI builds"
...
Now /docs is a Git subtree, so now this should just work.
This reverts commit 214dbdfb6f016d21415bc1ed511a37a084238878.
2017-06-26 21:05:21 +02:00
Bjørn Erik Pedersen
dd78d5b23f
Squashed 'docs/' content from commit 5d9a6703
...
git-subtree-dir: docs
git-subtree-split: 5d9a6703591c29283800d7b9e4c5c85981ed86d6
2017-06-26 20:46:06 +02:00
Bjørn Erik Pedersen
ab4e5da810
Merge commit 'dd78d5b23fe597f4461aa4199401b4e07c0612e2' as 'docs'
2017-06-26 20:46:06 +02:00
Bjørn Erik Pedersen
a7765bb3c1
Merge commit 'dd78d5b23fe597f4461aa4199401b4e07c0612e2' as 'docs'
2017-06-26 20:46:06 +02:00
Bjørn Erik Pedersen
31393f6024
Remove the docs submodule
...
Will be replaced by a Git subtree.
See #3647
2017-06-26 20:45:04 +02:00
Anthony Fok
aff1ac3235
commands: Use example.com as homepage for new theme
...
The fictional siteforthistheme.com domain has been
squatted by Afternic of GoDaddy since November 2016...
2017-06-26 12:38:45 -06:00
Anthony Fok
b463c5ad86
releaser: Remove trailing space in fixes list
2017-06-25 08:29:58 -06:00
Anthony Fok
5d9a670359
Fix reference to GitHub issue in 0.24.1 release notes
2017-06-25 08:24:32 -06:00
Bjørn Erik Pedersen
ab8b2377ce
releaser: Add release notes to /docs for release of 0.24.1
...
[ci skip]
2017-06-24 11:21:28 +02:00
Bjørn Erik Pedersen
1a041522df
releaser: One more fix
2017-06-24 09:49:57 +02:00
Bjørn Erik Pedersen
3aade08977
releaser: Improve docs submodule handling
...
Still not optimal.
2017-06-24 09:18:57 +02:00
Horea Porutiu
309adec5e1
docs: Add horeaporutiu.github.io to the showcase
2017-06-23 21:44:50 +02:00
Bjørn Erik Pedersen
0e1bda34c3
vendor: Fix +-timezones in TOML
...
Fixes #29
2017-06-23 18:57:06 +02:00
Bjørn Erik Pedersen
2e4ccd3d34
create: Preserve shortcodes in archetype templates
...
Fixes #3623
2017-06-23 09:59:06 +02:00
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