Bjørn Erik Pedersen
09612f7af8
tpl: Fix faulty ordering of relURL test cases
2016-08-13 00:36:15 +02:00
Stephan Kulla
88dcbc6efa
tpl: Make absURL and relURL accept anything
2016-08-13 00:31:50 +02:00
Mark Ayers
26725515c8
docs: Convert toml to yaml in config overview
2016-08-12 13:37:30 +02:00
Kishin Yagami
39df7724ad
source: Normalize file name to NFC
...
Fixes #2203
2016-08-08 20:25:00 +02:00
Wade Fitzpatrick
b33bfd40be
docs: Add doc for time template func
2016-08-08 12:28:41 +02:00
Maxime Michel
f2faae0805
Remove maximeguitare.com from showcase
2016-08-06 23:37:11 +02:00
Randall Degges
0d9c0677f6
docs: Add rdegges.com to the showcase
2016-08-06 15:06:10 +02:00
digitalcraftsman
914e4d8535
tpl: Fix typo in FindRE test
2016-08-04 14:37:15 +02:00
Bjørn Erik Pedersen
93f3a85bf8
Fix the time template func test
...
By making it not depend on the locale setup.
2016-08-04 10:36:44 +02:00
Wade Fitzpatrick
70544f9e62
tpl: Add time template func
...
Fixes #2328
2016-08-04 01:55:24 +02:00
Jeremy Brown
d7f364c27e
Fix for meminterval not using specified interval
...
Hugo seems to ignore the meminterval I specify and always uses it's default of 100ms.
This seems to be because Hugo tries to take the meminterval from the command line
(an Int) and converts it to a String and passes it to time.ParseDuration. If you pass a
different meminterval (such as `1000` as above) it will fail (time.ParseDuration requires
some units) and use the default instead.
Changed `meminterval` to be a String and added better documentation for valid time units.
Resolves : #2325
2016-08-02 19:48:07 +02:00
astrochili
5824e80932
docs: Add romansilin.com to the showcase
2016-07-31 13:09:25 +02:00
Bjørn Erik Pedersen
b426c20e14
Return specific error on walk path too short
2016-07-30 22:32:03 +02:00
Bjørn Erik Pedersen
15b6693541
Adjust the sanity check to path length 4
2016-07-30 20:07:35 +02:00
Bjørn Erik Pedersen
94d998989d
Add sanity check to the file walker
...
As more tests now hit the virtual filesystem, add this check
to prevent any walking of the entire file system.
2016-07-30 19:54:07 +02:00
Bjørn Erik Pedersen
802d43cbfd
Disable Go 1.5.4 in Travis
...
There is one failing test there now, a odd filesystem issue.
Since Go 1.7 is only "days" away, I'm not spending time debugging this.
2016-07-30 19:37:15 +02:00
Bjørn Erik Pedersen
285807ba7a
Take 2: Load templates from the Afero source fs
...
See #2321
2016-07-30 17:28:40 +02:00
Bjørn Erik Pedersen
ec23aa998a
Load templates from the Afero source fs
...
Fixes #2321
2016-07-30 17:16:04 +02:00
Bjørn Erik Pedersen
5f5fccbc36
Do not return empty theme dirs
...
This prevents reading data etc. from the root.
Fixes #2320
2016-07-30 16:21:57 +02:00
Bjørn Erik Pedersen
4ddd5361c1
Use the Afero source fs where relevant
...
Fixes #2319
2016-07-30 15:37:03 +02:00
Bjørn Erik Pedersen
a0859dc672
Make LazyFileReader use the Afero source fs
...
Fixes #2317
2016-07-30 15:21:02 +02:00
Bjørn Erik Pedersen
9489272681
Handle errors during filesystem walk
...
Fixes #2318
2016-07-30 14:03:38 +02:00
digitalcraftsman
0087beefe1
docs: Add tumblr2hugomarkdown to tools section
2016-07-29 20:37:32 +02:00
digitalcraftsman
0d0a7596a2
docs: Add tumblr-importr to tools section
2016-07-29 20:36:10 +02:00
Richard Metzler
5b40eeede1
examples: Add example for translation files
2016-07-29 20:21:52 +02:00
digitalcraftsman
04889a5ee6
docs: Document .File variables for pages
...
Fixes #2154 .
2016-07-29 20:12:28 +02:00
Chris DeLuca
333646c52d
docs: Drop .isDraft to new line
...
Bring **.isDraft** onto a new line, to be consistent with the other list items.
2016-07-29 20:10:40 +02:00
Jeremy Brown
e3e1f7a2bb
docs: Add a link to hugo-openapispec-shortcode
...
Added a link to the Hugo Open API Spec shortcode which allows you to embed OAI Spec (formerly known as Swagger) in your site.
2016-07-29 20:07:46 +02:00
Felipe Rohde
ddd5a92240
docs: Removed comma from json example.
...
The comma causing invalid json and hugo not compile the file based on the same example.
2016-07-29 20:01:23 +02:00
Max Milton
df0a4534cd
docs: Add missing configuration option disableHugoGeneratorInject
2016-07-29 19:58:25 +02:00
Weilin
9c458657da
docs: Add weilinshi.org to the showcase
2016-07-29 19:51:28 +02:00
zarina
17f53526ca
docs: Add CTL Compiled edtech blog to showcase
2016-07-29 19:46:53 +02:00
Leow Kah Man
76f332bfdc
docs: Add www.leowkahman.com to the showcase
2016-07-29 19:38:18 +02:00
Pedro Melo
3e1b579c17
Be less aggressive with CHMOD filesystem events
...
On 4679fbee41
, rebuild was disabled on
CHMOD filesystem events, but the code is overly aggressive.
In some situations, specially with older Mac's (using a Late 2008
Macbook), the events we receive might be aggregated. On my
particular laptop, I get this events:
INFO: 2016/07/26 18:08:51 hugo.go:737: Received System Events: ["<path>": WRITE|CHMOD]
These events are ignored because the code only checks for Chmod. This
commit fixes this by checking that the event is also not a Write or Create.
Related to #1587 .
2016-07-26 22:18:15 +02:00
Bjørn Erik Pedersen
91b61b976d
Simplify the configuration of HugoHTMLRenderer
2016-07-22 11:00:52 +02:00
Bjørn Erik Pedersen
4d4da001a0
Fix broken shortcode test
...
See #2249
2016-07-21 22:30:10 +02:00
Bjørn Erik Pedersen
39a452a4c7
Add "missing slice" to the Params test
...
See #2249
2016-07-21 21:03:44 +02:00
Bjørn Erik Pedersen
593a546fc6
Check for nil Params in shortcode's Get
...
Fixes #2294
2016-07-21 17:22:31 +02:00
Bjørn Erik Pedersen
0bdc0d62d4
Add shortcode null param variant
...
See #2294
2016-07-21 15:30:43 +02:00
Peter Panagiotakos
198efc89ca
docs: Add Algolia as commercial search service
2016-07-21 14:53:23 +02:00
Bjørn Erik Pedersen
e9924e964b
Add shortcode test for mmark
2016-07-20 00:40:40 +02:00
Anthony Fok
c0eedfe956
docs: Update last-mod date of installing-on-windows.md
...
Sorry, this should have been part of the previous commit.
2016-07-18 18:06:39 -06:00
Anthony Fok
10ad648e2f
docs: Fix PATH issue in the instruction for Windows 10
...
i.e., "The PATH entry should be the folder where Hugo lives, not the binary."
Fixes #2280 .
Also fix a rendering issue with list entries that consist of multiple
paragraphs by using four spaces instead of two. Special thanks to
@shurcooL for the insight! (Fixes #2285 )
Also made a few minor formatting tweaks.
2016-07-18 17:58:26 -06:00
Cathal Garvey
20555b1630
Add htmlEscape
and htmlUnescape
template functions
...
These functions allow trivial escaping and unescaping of HTML entities,
and make it far easier to compose other functions for the creation of
parameterised URLs.
2016-07-19 00:14:05 +02:00
Bjørn Erik Pedersen
7dd5cd675a
Bump Travis to Go 1.6.3
2016-07-18 23:46:37 +02:00
Bjørn Erik Pedersen
3564f09e3d
tpl: Add humanize examples to smoke tests
2016-07-14 20:32:32 +02:00
Cathal Garvey
55a4f6e48e
Do not double-escape in querify
...
Test case modified and expanded for querify to reflect original bug and changes.
Fixes #2279
2016-07-14 15:53:33 +02:00
Bjørn Erik Pedersen
ef9b915680
Revert "Throw a noisy error when a post has no layout"
...
We have to figure out another way. There are perfectly valid reasons not having a layout for a page (I have have some broken sites as result of this).
See #1313
This reverts commit b15934008f
.
2016-07-14 11:29:21 +02:00
Bjørn Erik Pedersen
318558f26c
docs: Add 404 template
...
Closes #1965
2016-07-14 00:01:06 +02:00
Aditya Bhargava
b15934008f
Throw a noisy error when a post has no layout
...
Fixes #1313
2016-07-13 23:57:18 +02:00