1
0
mirror of https://github.com/gohugoio/hugo.git synced 2024-05-11 05:54:58 +00:00

2052 Commits

Author SHA1 Message Date
023992abad Unexport the target handlers
These are of no interest outside the package.
2016-03-05 20:56:38 +01:00
27f8d8f963 Allow URL with extension in frontmatter
Fixes #1923
2016-03-05 20:50:53 +01:00
3c100cc32c tpl: Unexport the rest of the internal template funcs 2016-03-04 01:00:41 +01:00
f6591eca35 tpl: Add some dateFormat testcases with both time and date
See #235
2016-03-03 23:17:35 +01:00
8aa90f2b7e Try both prepped and unprepped taxonomy keys
Fixes #1869
2016-03-03 22:01:09 +01:00
ccd2f4c32b Prevent capitalized taxonomy labels
Fixes #1880
2016-03-03 21:54:23 +01:00
e85b821d3e tpl: Fix broken chomp test 2016-03-03 21:24:21 +01:00
f223f17c76 tpl: Make chomp return template.HTML 2016-03-03 19:45:23 +01:00
daaf4eb330 tpl: Add integration tests for most of the template funcs examples in doc 2016-03-03 19:35:04 +01:00
80e1fd29ab Log fsync errors 2016-03-01 16:38:56 +01:00
5b065a27a2 Some missing shortcode replacements
See #1904
2016-03-01 13:51:46 +01:00
7f682d7802 Fix shortcode handling in RST
Fixes #1904
2016-03-01 11:04:25 +01:00
cc38a40f4e Docs: fix typo in tools section 2016-02-29 21:59:43 +01:00
e2965a3507 Remove superfluous FontAwesome files 2016-02-29 21:53:28 +01:00
6b922750f3 Revert "Create template clone for late template execution"
This reverts commit 93b04e67f633e96484c29158cad00e86abe64c1e.
2016-02-28 12:15:33 +01:00
93b04e67f6 Create template clone for late template execution
Fixing some breaking blogs on Go 1.6

Fixes #1879
2016-02-28 11:51:51 +01:00
804603155f Check for the presence of pages before setting dates
See #1903
2016-02-27 23:25:41 +01:00
75cf324322 Set Date and Lastmod for main home page
Fixes #1903
2016-02-27 23:21:07 +01:00
1f61f40328 Use flagChanged in all places 2016-02-27 18:01:01 +01:00
c1f8b188f7 Add template function slice 2016-02-27 17:04:45 +01:00
9349a889e2 Do not try to find available port if set by user
He/she probably really meant it.

Fixes #1901
2016-02-27 16:58:42 +01:00
ff4ca99286 Press: add "Comparison site built with Hugo" 2016-02-26 21:32:54 +01:00
455df10752 Optimize replaceShortcodeTokens
We can of course skip reading the entire byte slice again and again.

This was a slip in the original implementation; functionally the same,
but is slightly faster, esp. for larger data sets with many shortcodes:

```
benchmark                             old ns/op     new ns/op     delta
BenchmarkReplaceShortcodeTokens-4     15505         14753         -4.85%

benchmark                             old allocs     new allocs     delta
BenchmarkReplaceShortcodeTokens-4     1              1              +0.00%

benchmark                             old bytes     new bytes     delta
BenchmarkReplaceShortcodeTokens-4     3072          3072          +0.00%
```
2016-02-25 23:50:43 +01:00
8375995378 Enlarge data in BenchmarkReplaceShortcodeTokens 2016-02-25 21:45:13 +01:00
ac2eaca06d Press: add tutorial written by Shekhar Gulati 2016-02-24 20:07:16 +01:00
c59bdc20af Press: add article from sitelabs.es 2016-02-24 19:57:35 +01:00
d1bf2f5435 Docs: fix typo in introduction.md 2016-02-24 19:43:05 +01:00
086d6540c3 Add cdnoverview.com to the showcase 2016-02-24 19:37:05 +01:00
060f0206ee Docs: remove .Taxonomies from Page variables
The property seems to have never existed on Pages.

Fixes #1865.
2016-02-24 19:22:53 +01:00
d607f4c7df Docs: fix small typos in functions.md 2016-02-24 19:14:04 +01:00
3749dc76f7 Docs: add "Minify Hugo Generated HTML" to press 2016-02-24 19:04:45 +01:00
e9853642e5 Listen channel before sending values to it
The 'results' channel is not listend before sending error values in a
loop checking IsRenderable or not. This fixes it.
2016-02-20 14:03:06 +09:00
253a618854 Go 1.6 is out! 2016-02-17 23:18:54 +01:00
284e959fc4 Close file handle when finished reading file 2016-02-17 21:42:56 +01:00
df17fae532 Docs: add hugo-lunr to the tools section 2016-02-16 23:14:22 +01:00
50182cd06b Remove superfluous Errorf 2016-02-16 02:05:59 +01:00
c1e4309516 Clean up the trim template func test 2016-02-16 00:47:14 +01:00
8c84048033 Force full rebuild when site config changes
Fixes #1840
2016-02-14 15:16:55 +01:00
ad176055d9 Export MainSite var
Fixes hacdias/caddy-hugo#46
2016-02-14 13:50:03 +01:00
ce7c267140 Docs: clarify that Amazon WS is, actually, AWS
Amazon WS is an uncommon way of referring to Amazon Web Services, which
is usually referred to either by its full name, or as AWS.
2016-02-14 12:12:03 +01:00
4ecf019e2f Add gntech.se to the showcase 2016-02-14 12:03:57 +01:00
2b1ad54617 Docs: fix typo in YouTube shortcode description 2016-02-13 16:41:25 +01:00
bac1ba4655 Fix spelling and go vet errors 2016-02-13 19:08:48 +08:00
0d415e453b Link Gitter as Dev Chat in README 2016-02-13 12:04:36 +01:00
21b0aa8633 Restore the wercker status badge to original small size
Fix my brown paper bag bug in commit a0eec02.
Sorry for not double-checking before pushing!
2016-02-13 18:48:51 +08:00
06e90b1237 Add documentation for Google Analytics internal template
Fixes #1654
2016-02-13 11:41:21 +01:00
a0eec02bd6 Set the wercker badge to track the aaster branch only 2016-02-13 18:39:38 +08:00
207a574f0c Docs: fix Disqus shortname reference 2016-02-13 11:23:21 +01:00
cfbae7cea2 docs: Add guideline for showcase additions 2016-02-13 10:05:08 +08:00
4a15051e4c Crop, resize and optimize shelan-tn.png
The original image was 2055px × 1252px, which was oversized
and did not fit the required dimension of 600px × 400px
(3:2 aspect ratio).

To fix, the image was cropped and resized to the required dimension,
and was further optimized:

    $ pngquant --nofs -v --speed 1 --quality 65-80 shelan-tn.png
    $ optipng -o7 -zm1-9 shelan-tn-or8.png
    $ mv shelan-tn-or8.png shelan-tn.png

reducing its filesize from 334125 bytes to 26929 bytes.

See #1831
2016-02-13 00:31:25 +08:00