Commit Graph
9901 Commits
Author SHA1 Message Date
Charlie Egan e181e63795 Correct typo on GitHub pages guide (#151)
Thanks @charlieegan3 for the keen eye.
2017-08-19 15:12:11 -05:00
Bjørn Erik Pedersen d000cf6050 tpl: Prepare for template metrics 2017-08-19 09:57:37 +02:00
M Brennan 286985009b Remove HTML special chars from Windows install example 2017-08-19 08:23:07 +02:00
Alexander Borsuk 96b1f5b5cf Remove not needed escape slashes in urls.md 2017-08-18 22:42:29 +02:00
Leon Barnard 2e05043f16 Add upgrade instructions using homebrew 2017-08-18 22:38:44 +02:00
Cameron Moore 29a2da0593 tpl: Cleanup strings.TrimPrefix and TrimSuffix
These funcs were added during the move to namespaces but were
undocumented.  This commit fixes the order of the arguments and adds the
funcs to the method mapping.
2017-08-18 14:21:58 +02:00
Cameron Moore 7674ad7382 tpl: Add strings.TrimLeft and TrimRight 2017-08-18 09:12:04 +02:00
Bjørn Erik Pedersen 08f48b91d6 compare, hugolib, tpl: Add Eqer interface
And use it in `eq` and `ne` so `Page` values can be compared directly in the templates without thinking about it being a `Page` or a `PageOutput` wrapper.

Fixes #3807
2017-08-18 07:36:32 +02:00
Bjørn Erik Pedersen 2fc121ce23 appveyor: Simplify 2017-08-17 10:37:42 +02:00
Bjørn Erik Pedersen 2a2e690707 hugolib: Simplify Page.Eq 2017-08-17 09:43:39 +02:00
Bjørn Erik Pedersen a7555c5431 hugolib: Do not return error in Eq on type mismatch 2017-08-17 08:32:47 +02:00
James Rhea 2a14624dfb Fix alias in countrunes.md
Fixes #84.
2017-08-16 22:54:06 +02:00
Adrian Goins 5e26bb9747 Update docker image for build/publish
The referenced image (`publysher/hugo`) is outdated, leading to the following error: `Current theme does not support Hugo version 0.22.1. Minimum version required is 0.24.1`. The current version of hugo is 0.26. I forked the publysher repo, bumped it to 0.26 and pushed it to my Docker hub (monachus is my username on Docker Hub). 

I'm an engineer at Rancher Labs and an active user of Gitlab. I've enabled notifications for Hugo releases, so as they come out, I'll tag and release an updated Docker image. I'm happy to be the target repo for this piece of documentation.
2017-08-16 22:32:28 +02:00
Bjørn Erik Pedersen 01424887aa List the internal templates
So they hopefully show up in search.
2017-08-16 18:22:37 +02:00
Bjørn Erik Pedersen a3ef5be939 Remove string concatenation from add (math) sample
Using `add` to concatenate two strings sounds like a hack, and has its limitations. Use `printf` for this.
2017-08-16 18:08:52 +02:00
Patrick Collins 43d12b44ca Fix typo 2017-08-16 17:36:32 +02:00
Bjørn Erik Pedersen c265c102ae hugolib: Rename Page.Equals to Page.Eq
To get the name in line with the template func `eq`.
2017-08-16 10:01:16 +02:00
Bjørn Erik Pedersen f0f49ed9b0 hugolib: Add Page.Equals 2017-08-16 09:59:42 +02:00
Bjørn Erik Pedersen 71ae9b4533 hugolib: Rewrite replaceDivider to reduce memory allocation
```bash
name              old time/op    new time/op    delta
ReplaceDivider-4   9.76µs ±105%    7.96µs ±24%     ~     (p=0.690 n=5+5)

name              old alloc/op   new alloc/op   delta
ReplaceDivider-4    3.46kB ± 0%    1.54kB ± 0%  -55.56%  (p=0.008 n=5+5)

name              old allocs/op  new allocs/op  delta
ReplaceDivider-4      6.00 ± 0%      1.00 ± 0%  -83.33%  (p=0.008 n=5+5)
```
2017-08-14 09:42:55 +02:00
Bjørn Erik Pedersen 199816fddd hugolib: Extract replaceDivider logic
To its own function and add a test and a benchmark for it.
2017-08-14 09:42:55 +02:00
Jared Morgan 89bafa4907 Change to Asciidoc URI
- changes the link to asciidoc from the python tool to the ruby and .js processor. 

Asciidoctor extends the language much more than the python implementation, and if folks click on the python link they will likely run into processor issues when Asciidoctor attempts to process the .adoc files.
2017-08-14 08:54:26 +02:00
Nicole Dominguez 4e14071e7b Removes an extra bracket (>) in single-page-templates.md 2017-08-14 08:50:52 +02:00
James Cockshull 0938e423b7 Fix typo in http2 server push blog 2017-08-13 20:25:46 +02:00
Patrik Lundin fac55121bc Fix typo in deployment with rsync tutorial 2017-08-12 14:16:21 +02:00
Nic Raboy 919bc9210a Add an iFrame title to the YouTube shortcode
To accommodate modern web accessibility as outlined here https://dequeuniversity.com/tips/provide-iframe-titles
2017-08-12 00:36:40 +02:00
Bjørn Erik Pedersen 07f6e1499c travis: Pull docutils out into requirements.txt 2017-08-11 18:39:04 +02:00
Bjørn Erik Pedersen e8468a9852 travis: Fix docutils setup 2017-08-11 17:23:40 +02:00
Bjørn Erik Pedersen 359af563a1 travis: Try to fix docutils setup on Linux 2017-08-11 14:21:21 +02:00
Bjørn Erik Pedersen 0019ce0024 output: Improve the base template identification
See https://discourse.gohugo.io/t/main-block-not-rendered-in-custom-archetypes-layout/7917/3
2017-08-11 09:34:31 +02:00
Bjørn Erik Pedersen 33ae10b6ad tpl/transform: Only strip p tag in markdownify if only one paragraph
Fixes #3040
2017-08-10 19:52:41 +02:00
Bjørn Erik Pedersen c8163b51b9 Update docs versiona and README
Closes #3791
2017-08-10 17:22:32 +02:00
Bjørn Erik Pedersen b97b84f9d4 Update docs versiona and README
Closes #3791
2017-08-10 17:22:32 +02:00
Bjørn Erik Pedersen 2d1bd876cd Update docs versiona and README
Closes #3791
2017-08-10 17:22:32 +02:00
Bjørn Erik Pedersen ec4e6f9df2 Squashed 'docs/' content from commit f887bd7b
git-subtree-dir: docs
git-subtree-split: f887bd7b4e
2017-08-10 17:18:22 +02:00
Bjørn Erik Pedersen f782c99590 Merge commit 'ec4e6f9df2ab9ffdc62a3f59675369096e0d3f77' as 'docs' 2017-08-10 17:18:22 +02:00
Bjørn Erik Pedersen 2238f7a4a7 Merge commit 'ec4e6f9df2ab9ffdc62a3f59675369096e0d3f77' as 'docs' 2017-08-10 17:18:22 +02:00
Bjørn Erik Pedersen a1900826b9 Merge commit 'ec4e6f9df2ab9ffdc62a3f59675369096e0d3f77' as 'docs' 2017-08-10 17:18:22 +02:00
Bjørn Erik Pedersen d384c661fe docs: Re-integrate 2017-08-10 17:17:07 +02:00
Bjørn Erik Pedersen 9a2eb0f1d3 Revert "Squashed 'docs/' changes from 35abbc86..f887bd7b"
That did not go well...

This reverts commit 0373e43102.
2017-08-10 15:00:30 +02:00
Bjørn Erik Pedersen 0373e43102 Squashed 'docs/' changes from 35abbc86..f887bd7b
f887bd7b Add script to pull theme changes
e89bbb2f Update README
78155dec Merge commit '9301947b25099dd402065104b340b1a480906a74' as 'themes/gohugoioTheme'
9301947b Squashed 'themes/gohugoioTheme/' content from commit 7dd8a302
e7557a34 Remove gohugoioTheme submodule
a78bbe22 Add link to Go issue
31d1ef40 Add example for taxonomy terms with metadata
da978cc7 Fix links in Blackfriday extension documentation
950ad115 Fix reference to Blackfriday Extensions section
12d1d026 Add documentation for Blackfriday Extensions
8c2b8fb5 Fix explaination for uglyURLs config option
378aded7 Use community repository for Arch Linux installation guide
56455e7e Improve 0.26 release notes
be7db03a netlify: Build with the new 0.26
d430b2d3 Bump version to 0.26
61adaca0 releaser: Prepare repository for 0.27-DEV
abef29a6 releaser: Add release notes to /docs for release of 0.26
5937fe41 releaser: Bump versions for release of 0.26
033752f1 Merge commit 'e81208265bb3cdb7606d051a23d83aeebcb7d34d'
bec2bd12 Make the title case style guide configurable
f1739a44 Merge commit '50ec65fbe1a48475d3320775dab2c47389c02114'
a1aac0e5 helpers: Add support for French Guillemets
b8dc1592 doc: Merge commit '2c0d1ccdcd95de0bddeb39dca2e4d08f0d8056d7'
7b3e31b8 Merge commit '6dbde8d731f221b027c0c60b772ba82dad759943'
a37e7201 Bump versions to 0.26-DEV

git-subtree-dir: docs
git-subtree-split: f887bd7b4e
2017-08-10 14:58:09 +02:00
Bjørn Erik Pedersen ea2cc26b39 Remove the theme submodule from /docs
See #3791
2017-08-10 14:54:19 +02:00
Bjørn Erik Pedersen f887bd7b4e Add script to pull theme changes
See https://github.com/gohugoio/hugo/issues/3791
2017-08-10 14:33:33 +02:00
Bjørn Erik Pedersen e89bbb2f6c Update README
To reflect that we do not have a submodule anymore.

See https://github.com/gohugoio/hugo/issues/3791
2017-08-10 14:31:55 +02:00
Bjørn Erik Pedersen 78155decfb Merge commit '9301947b25099dd402065104b340b1a480906a74' as 'themes/gohugoioTheme'
Add theme as sub tree:

git subtree add --prefix=themes/gohugoioTheme/ git@github.com:gohugoio/gohugoioTheme.git master --squash
2017-08-10 14:30:19 +02:00
Bjørn Erik Pedersen 9301947b25 Squashed 'themes/gohugoioTheme/' content from commit 7dd8a302
git-subtree-dir: themes/gohugoioTheme
git-subtree-split: 7dd8a302409a20362e4c610798cc19661b336363
2017-08-10 14:29:32 +02:00
Bjørn Erik Pedersen e7557a34cb Remove gohugoioTheme submodule
Will be re-added later as a Git sub tree.

See https://github.com/gohugoio/hugo/issues/3791
2017-08-10 14:25:31 +02:00
Bjørn Erik Pedersen a78bbe22d7 Add link to Go issue 2017-08-10 14:22:05 +02:00
Johan Gielstra 0f9f73cce5 Add support for multiple config files via --config a.toml,b.toml,c.toml 2017-08-09 20:13:02 +02:00
Daniel Karlsson c8257f8b72 Render task list item inside label for correct accessibility
Fixes #3303
2017-08-09 20:09:43 +02:00
Matthieu Harlé 0abdeeef67 source: Normalize UniqueID between Windows & Linux 2017-08-09 19:35:40 +02:00