867 Commits

Author SHA1 Message Date
Bjørn Erik Pedersen
1ac0976469 Add Scratch to shortcode
Fixes #2000
2016-03-21 21:11:20 -04:00
Bjørn Erik Pedersen
13707f68d2 Add plainify template function
To strip away any HTML. May be useful for the .Title in head etc.

People may shoot themself in the foot with this, maybe ...

The replacement function is pretty fast.
2016-03-21 20:27:25 -04:00
Cameron Moore
411751dbb5 docs: Draft of 0.16 release notes
Also included is an enhancement to the gh shortcode to support sending commit
hashes by prepending "0x" to the hash.
2016-03-21 14:08:39 +01:00
Cameron Moore
d7599307c9 tpl: Treat booleans as set in default function
Booleans and `default` don't really make sense together, so we'll always treat
booleans as "set" and return the given value.
2016-03-16 20:05:48 +01:00
digitalcraftsman
123ffc8222 docs: Fix typos in functions.md and contributing.md 2016-03-16 13:04:41 +01:00
digitalcraftsman
8c63a2238b Docs: move tutorial screenshots in their own subfolder 2016-03-12 13:08:46 +01:00
JoeArizona
4b3a2695a3 Docs: update Windows install instructions
- updated the instructions to account for Windows 10 path editor
- linked to third-party editors for pre-10 Windows
- separated instructions for technical and non-technical users changed
D drive paths to C drive since D is the default optical drive on most
Windows systems
- cut the assumption about 64-bit Windows since 32-bit binary is also available
- cut the assumption about command line since we're giving GUI instructions
to non-technical users
- cut a bug in the doc where we had people typing D: at the command prompt
*after* submitting `cd D:\Hugo\Sites.` Recommend snipping 386 and AMD from
ZIP file names, since they don't add useful info and will just confuse novices.
2016-03-12 13:02:54 +01:00
Jason Gowans
271f79584e Docs: add Aerobatic as a deployment option in the Introduction 2016-03-12 12:19:56 +01:00
Jason Gowans
e51196d694 Docs: add tutorial for Hosting on Bitbucket 2016-03-12 12:19:31 +01:00
Daniel Compton
067fa46a83 Add debugging steps for no variables defined 2016-03-12 21:44:50 +13:00
Bjørn Erik Pedersen
494b1ec0e7 Add emoji support
This uses the Emoji map from https://github.com/kyokomi/emoji -- but with a custom replacement implementation.

The built-in are fine for most use cases, but in Hugo we do care about pure speed.

The benchmarks below are skewed in Hugo's direction as the source and result is a byte slice,
Kyokomi's implementation works best with strings.

Curious: The easy-to-use `strings.Replacer` is also plenty fast.

```
BenchmarkEmojiKyokomiFprint-4  	   20000	     86038 ns/op	   33960 B/op	     117 allocs/op
BenchmarkEmojiKyokomiSprint-4  	   20000	     83252 ns/op	   38232 B/op	     122 allocs/op
BenchmarkEmojiStringsReplacer-4	  100000	     21092 ns/op	   17248 B/op	      25 allocs/op
BenchmarkHugoEmoji-4           	  500000	      5728 ns/op	     624 B/op	      13 allocs/op
```

Fixes #1891
2016-03-11 15:51:37 -06:00
Salar Rahmanian
a6c56e9353 Update showcase entry and article link to softinio.com 2016-03-11 22:31:59 +01:00
Cameron Moore
02c95574af tpl: Add replaceRE function
This commit addes a `replaceRE` template function.  Regexp patterns are compiled
once and cached.
2016-03-11 19:59:18 +01:00
Konstantin Kliakhandler
6a1bd7dc22 Allow picking a specific file out of a gist 2016-03-11 18:29:07 +01:00
Avery Rosen
75ccf1cf52 Add engineering.mongodb.com to the showcase 2016-03-10 21:46:12 +01:00
Shekhar Gulati
33fc77c284 Docs: use Shekhar Gulati's Hugo tutorial as quickstart guide 2016-03-10 20:36:54 +01:00
Cameron Moore
dfc0625d6f tpl: Add time note to default func description 2016-03-10 17:47:59 +01:00
Cameron Moore
6b9abc6cf3 tpl: fix default function
This commit fixes a few things:

1. `given` is now a variadic parameter so that piping works properly
2. add separate template tests to make sure piping works
3. support time values
4. add more tests of the dfault function
2016-03-10 17:47:59 +01:00
Cameron Moore
89aa9203f4 docs: add better default example 2016-03-10 17:47:59 +01:00
Cameron Moore
0facdbf7de tpl: Add default function 2016-03-10 17:47:59 +01:00
digitalcraftsman
6cc6c818f7 Add md5 and sha1 template funcs 2016-03-10 11:03:06 +01:00
Bjørn Erik Pedersen
e101a2dc7a Add reference to parent shortcode
Fixes #1936
2016-03-09 11:06:40 +01:00
Steve Moser
257efd2c6c Docs: fix missing words, tense in datadrivencontent.md 2016-03-07 20:39:55 +01:00
digitalcraftsman
722195d834 Resize showcase thumbnail of h10n.me 2016-03-07 18:54:41 +01:00
Fabio Alessandro Locati
92cb3ed2e8 Add viglug website to showcase 2016-03-07 18:30:16 +01:00
Horst Gutmann
8065c75610 Add h10n.me to the showcase 2016-03-07 18:09:01 +01:00
Fabio Alessandro Locati
1fa109eb05 Add fale.io website to showcase 2016-03-07 18:03:09 +01:00
Bjørn Erik Pedersen
7bc6931850 doc: Correct Scratch slice example 2016-03-06 16:38:38 +01:00
Bjørn Erik Pedersen
a9af9cb04d doc: Add some Scratch slice samples 2016-03-06 16:36:46 +01:00
Bjørn Erik Pedersen
fadd20bb0b Add list support in Scratch 2016-03-06 15:44:17 +01:00
Bjørn Erik Pedersen
5517f248c6 Add jsonify template func 2016-03-06 15:01:14 +01:00
Samuel Debruyn
3aff0830df Docs: fix typo in tools section 2016-02-29 21:59:43 +01:00
digitalcraftsman
8dc073c0ff Remove superfluous FontAwesome files 2016-02-29 21:53:28 +01:00
digitalcraftsman
034fd4adc1 Add template function slice 2016-02-27 17:04:45 +01:00
Thijs de Zoute
957b735fec Press: add "Comparison site built with Hugo" 2016-02-26 21:32:54 +01:00
Shekhar Gulati
b83b45fdef Press: add tutorial written by Shekhar Gulati 2016-02-24 20:07:16 +01:00
Marq Martí
bc9f29ae76 Press: add article from sitelabs.es 2016-02-24 19:57:35 +01:00
Akagi201
1a26dec049 Docs: fix typo in introduction.md 2016-02-24 19:43:05 +01:00
Wouter Spee
ac892129ce Add cdnoverview.com to the showcase 2016-02-24 19:37:05 +01:00
Paul Koppen
460702f0e8 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
Thijs de Zoute
1f8d065719 Docs: fix small typos in functions.md 2016-02-24 19:14:04 +01:00
Ratson
5e83efe810 Docs: add "Minify Hugo Generated HTML" to press 2016-02-24 19:04:45 +01:00
digitalcraftsman
8c9be3e5b5 Docs: add hugo-lunr to the tools section 2016-02-16 23:14:22 +01:00
Andrew Langhorn
33f9e5c4e7 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
Gustav Näslund
13d9454f78 Add gntech.se to the showcase 2016-02-14 12:03:57 +01:00
digitalcraftsman
4b8ccb2ce2 Docs: fix typo in YouTube shortcode description 2016-02-13 16:41:25 +01:00
Darrel Herbst
cc4a6a8840 Add documentation for Google Analytics internal template
Fixes #1654
2016-02-13 11:41:21 +01:00
Cameron Moore
5e830cc06d Docs: fix Disqus shortname reference 2016-02-13 11:23:21 +01:00
digitalcraftsman
71fee9720d docs: Add guideline for showcase additions 2016-02-13 10:05:08 +08:00
Anthony Fok
c669e9cff0 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