bep
27c03a6dd0
Add benchmark for AbsUrlInXml
...
And a general test cleanup in /transform.
See #894
2015-02-16 08:24:42 -05:00
Ivan Fraixedes
c7c8157852
Another link in the same page
2015-02-14 18:35:37 -05:00
Ivan Fraixedes
366f991694
Another link in the same page
2015-02-14 18:35:37 -05:00
Ivan Fraixedes
10bddcd470
Fixed invalid link to partials
2015-02-14 18:35:37 -05:00
Ivan Fraixedes
b389a92383
Fixed invalid link to partials
2015-02-14 18:35:37 -05:00
Joseph Kaptur
b102d92c81
Update docs so that figure
includes the class
parameter.
2015-02-14 18:35:00 -05:00
Joseph Kaptur
462e666f45
Update docs so that figure
includes the class
parameter.
2015-02-14 18:35:00 -05:00
bep
c14e7b10d0
Add 'config' command to list site configuration
...
Fixes #871
2015-02-14 18:33:47 -05:00
spf13
d6f81c7346
Put back static theme conditional
2015-02-14 18:30:15 -05:00
Anthony Fok
d10e05f2e3
[commands/new.go] Update theme.toml etc.
...
- Add copyright years and author to the top of the file
- Write the current year from time.Now() to LICENSE.md
- Correct comment regarding `os.MkdirAll(p, 0777)`
- In createConfig(), split the `map[string]string` definition into
multiple lines to facilitate future expansion. Also add a trailing
slash to sample "baseurl" definition.
- Update theme.toml template to match that listed at
https://github.com/spf13/hugoThemes/blob/master/README.md#themetoml
See #883 for an equivalent `struct` implementation
2015-02-13 15:00:17 -07:00
bep
e0b8e6cca2
Remove nohup.out committed by accident
2015-02-12 14:32:04 +01:00
bep
87975e04eb
Remove nohup.out committed by accident
2015-02-12 14:32:04 +01:00
bep
cb65060a17
Doc Data Files: Add section about themes and expanded the example a bit
2015-02-12 09:09:35 +01:00
bep
4820683330
Doc Data Files: Add section about themes and expanded the example a bit
2015-02-12 09:09:35 +01:00
bep
1217632307
Remove now superfluous conditional
2015-02-12 00:09:04 +01:00
bep
8ed67169ed
Fix broken data dir test
2015-02-11 21:55:11 +01:00
bep
8df59c8123
Temporarily disable broken test
2015-02-11 20:33:19 +01:00
bep
ebcc1e6699
Add data files support in themes
...
If duplicate keys, the main data dir wins.
Fixes #892
2015-02-11 20:24:56 +01:00
Anthony Fok
7dca679def
Change "ctrl+c" to "Ctrl+C"
2015-02-11 01:11:50 -07:00
Anthony Fok
664fd99135
Change "ctrl+c" to "Ctrl+C"
2015-02-11 01:11:50 -07:00
midinastasurazz
e287bb1560
Fix typo: GetJson -> GetCsv
2015-02-11 00:57:17 -07:00
midinastasurazz
dbb86679a1
Fix typo: GetJson -> GetCsv
2015-02-11 00:57:17 -07:00
Greg Restall
d8d1379988
Add showcase entry for consequently.org
...
Consequently.org is a personal site for an academic, with a blog, list
of publications, classes and talks, all managed by hugo.
2015-02-11 00:31:44 -07:00
Greg Restall
7e28db18f2
Add showcase entry for consequently.org
...
Consequently.org is a personal site for an academic, with a blog, list
of publications, classes and talks, all managed by hugo.
2015-02-11 00:31:44 -07:00
bep
fa71f6c11e
Make # survice Url cleaning
...
To enable anchors in Urls.
Fixes #888
2015-02-10 19:14:19 +01:00
spf13
132a63db59
Update release notes for v0.13
2015-02-10 10:58:20 -05:00
spf13
e3daa359ec
Update release notes for v0.13
2015-02-10 10:58:20 -05:00
bep
22d85c2a18
Avoid converting summary to []byte and back to string
2015-02-10 14:37:29 +01:00
bep
fe5820bbe6
Fix alias for data files doc
2015-02-09 16:58:12 +01:00
bep
371c148c34
Fix alias for data files doc
2015-02-09 16:58:12 +01:00
bep
c3f228987b
Add docs for Data Files
...
Fixes #887
2015-02-09 16:52:52 +01:00
bep
03fff880ec
Add docs for Data Files
...
Fixes #887
2015-02-09 16:52:52 +01:00
bep
6afe70d5da
Better error message for data-file parsing errors
2015-02-09 16:07:30 +01:00
bep
1c50f775b5
DataDir: Minor polish and add missing tests
...
Also, now logs an ERROR on duplicate keys, instead of returning an error and make sure sub-folders take presedence in data dir.
2015-02-09 13:19:19 +01:00
Erlend Klakegg Bergheim
773812de6f
Reads data files inside data/ and makes data available in .Site.Data
...
Fixes #476 .
Conflicts:
hugolib/site.go
2015-02-09 13:17:13 +01:00
Anthony Fok
cc26557401
[Docs] Say which directory to clone the hugoThemes
...
On http://gohugo.io/overview/quickstart/ , explicitly state
that hugoThemes is to be cloned from within the working directory,
like it is stated on http://gohugo.io/themes/installing/ .
Fixes #886
2015-02-08 19:52:27 -07:00
Anthony Fok
4c7e119ca1
[Docs] Say which directory to clone the hugoThemes
...
On http://gohugo.io/overview/quickstart/ , explicitly state
that hugoThemes is to be cloned from within the working directory,
like it is stated on http://gohugo.io/themes/installing/ .
Fixes #886
2015-02-08 19:52:27 -07:00
Anthony Fok
088d46a804
parser.FormatSanitize() MetaDataFormat for date too
...
So that the date would come out correctly with
variations like `MetaDataFormat = "YAML"` in addition to
the normally expected `MetaDataFormat = "yaml"`.
Fixes #865 .
2015-02-08 09:55:20 -07:00
bep
08219161dd
Use buffer pool in StripHTML
...
Allocates less memory:
benchmark old ns/op new ns/op delta
BenchmarkStripHTML 6572 6695 +1.87%
benchmark old allocs new allocs delta
BenchmarkStripHTML 5 4 -20.00%
benchmark old bytes new bytes delta
BenchmarkStripHTML 848 737 -13.09%
Compared to 0.12:
benchmark old ns/op new ns/op delta
BenchmarkStripHTML 10210 6695 -34.43%
benchmark old allocs new allocs delta
BenchmarkStripHTML 6 4 -33.33%
benchmark old bytes new bytes delta
BenchmarkStripHTML 1456 737 -49.38%
2015-02-06 15:35:45 +01:00
bep
5e34ae6199
Log ERROR on missing baseurl
...
Fixes #877
2015-02-06 10:39:54 +01:00
bep
43e48a8989
Add benchmark test for StripHTML
...
go test -test.run=NONE -bench=".*" -test.benchmem=true ./helpers
Old vs new impl (string.Replace vs string.Replacer):
benchmark old ns/op new ns/op delta
BenchmarkStripHTML 10210 6572 -35.63%
benchmark old allocs new allocs delta
BenchmarkStripHTML 6 5 -16.67%
benchmark old bytes new bytes delta
BenchmarkStripHTML 1456 848 -41.76%
2015-02-06 10:00:42 +01:00
bep
48b6777ea2
Fix Truncate
...
TruncateWordsToWholeSentence knows if the summary is truncated, so let "him" decide.
Fixes #880
2015-02-05 14:04:48 -07:00
bep
2bee4a1570
Replace 4 strings.Replace with 1 strings.Replacer
...
Consumes less memory, slightly faster.
2015-02-05 18:31:11 +01:00
bep
5df85770fc
Add memprofile to pprof benchmark
2015-02-05 15:48:09 +01:00
bep
f8704c1bf2
Avoid calling strings.Fields multiple times with same content
...
This should be a relief for big sites.
2015-02-05 00:38:50 +01:00
bep
11a19e0760
Build PageMenus only once
2015-02-04 21:27:27 +01:00
Mary Anthony
df734bc18a
Tighten README for the sloppy reader
...
Tighten README for the sloppy reader
Tighten README for the sloppy reader
Fixing heads
tigheten markdown
tighten markdown
tighten markdown
tinker with headings
tinker with wording
fixing period spacing
moving the any dir stuff into the feature section
tweak overview
tweak overview
fixed option too
fix break:
2015-02-01 23:15:46 -07:00
bep
8b95cab94c
Avoid panic on unknown markup
...
Fixes #863
2015-02-01 22:30:57 +01:00
bep
5b6c393e66
Scratch doc: Use the special $ variable to prevent confusion
2015-02-01 20:36:43 +01:00
bep
dd9344816a
Scratch doc: Use the special $ variable to prevent confusion
2015-02-01 20:36:43 +01:00