aae6fa0b6b
Fix test to not fail when order is different, but slice contents are the same.
2014-04-08 21:57:25 -04:00
bd022534bc
Adding Params to node for easy template access of page.params without throwing errors.
2014-04-08 21:40:38 -04:00
c8269d6dbc
Making node.Keywords the correct length
2014-04-08 21:40:03 -04:00
af1acfbce7
writing indexes under more configuration conditions
2014-04-07 23:29:35 -04:00
ad34be9d77
strip trailing baseurl slash. Added a new template function "sanitizeurl" which ensures no double slashes. Fixed #221
2014-04-07 22:02:08 -04:00
9a83f7a01b
Fixing all tests to pass with new Viper Config
2014-04-07 11:44:51 -04:00
62dd1d45c1
Hugo config abstracted into a general purpose config library called "Viper".
...
Hugo casting now in own library called "cast"
2014-04-05 01:40:33 -04:00
e50b9d8ac1
Adding support for logging & verbose logging. Consolidation of error handling. Integration of jWalterWeatherman library. Fixed #137
2014-03-31 13:23:34 -04:00
c02a02070f
change golang to go
2014-03-24 14:34:41 -04:00
6205a16b6e
Fixes #227 by properly scoping the variables within the go routine.
2014-03-13 20:34:47 +01:00
eec0e512f9
Add sort pages by Title and by LinkTitle
...
Sorting can now be done on Title and on LinkTitle
2014-03-13 11:39:13 +01:00
3dfb475136
Parallelizing the largest build processes (templates, pages, indexes). Seeing 300%+ improvement of total build time.
2014-03-05 23:48:42 -05:00
2540d884d8
Fixing issues go vet reports.
2014-03-01 09:56:17 -05:00
0becad727a
Make error message when encountering unrecognized file extensions more helpful
2014-02-28 22:11:41 -05:00
ea8d0981d5
Make per-page url overrides take precedence over section permalink settings
...
This seems more reasonable to me.
I didn't understand why the pUrl comparision was on len > 2; I changed it to 0.
Closes #212 .
2014-02-28 11:55:37 -05:00
14227351fa
Reorganization of helpers. Centralized Url/Path logic. Fixed #175 .
2014-02-27 20:33:18 -05:00
64572d2d60
Shortcode cleanup. Added a ton of tests. Much more flexible with input. Doesn't crash with bad input. Fixed #193
...
Also added the .Get function to short codes and documentation for that function.
2014-02-25 23:57:31 -05:00
82fdfa2c72
Warn about bad shortcode parameters (and don't crash)
...
closes #193
2014-02-20 06:54:56 -05:00
ed0fe9ddf7
Make 'read a string' code understand float64 (json) and int (yaml) as well as actual strings
2014-02-18 18:44:56 -05:00
b41622bc49
Allow 1/0 for true/false in Yaml front-matter
2014-02-18 18:44:47 -05:00
e4af4f652e
Support ISO8601 date/time format without timezones
2014-02-18 18:44:40 -05:00
0bfe9276c2
Make the invalid date/time format error message more helpful
2014-02-18 18:44:32 -05:00
11ca84f8cb
Add unicode support for aliases, indexes, urlize template filter.
...
Now aliases and indexes are not restricted ASCII letters and can include
any unicode letters.
2014-02-05 11:49:57 -05:00
72ba6d633d
Fix permalink bug in uglyurls mode (refs #187 ).
2014-02-02 00:56:01 -05:00
c1b9380dfd
Add back blackfriday extensions during Markdown conversion
...
Modified markdownRender and markdownRenderWithTOC in hugolib/page.go to
use the same flags and extensions as were previously used when we simply
called blackfriday.MarkdownCommon to convert Markdown to HTML. These
flags/extensions were dropped during the refactor that added the
`.TableOfContents` page variable, and caused features like Markdown
tables to no longer work.
Modified the expected output for TestTableOfContents in page_test.go,
apparently changing the flags/extensions caused an `—` to become
`–`.
2014-01-30 23:04:37 -05:00
6dd2e9a49a
gofmt all go code
2014-01-29 18:03:35 -05:00
1882ffabc6
Adding support for boolean params
2014-01-28 23:24:59 -05:00
1da3fd039a
Continue with TOC integration and page refactor. Updated a few tests to match new generated output.
2014-01-28 23:11:05 -05:00
f45c6bc38a
Moved TOC test into page_test. Some general page_test cleanup.
2014-01-28 23:09:24 -05:00
9666f33e2f
Don’t render short codes on summary twice
2014-01-27 17:32:36 -05:00
d0825a211a
Big refactor of pages code. Changed TOC code to only parse when actually used
2014-01-27 17:20:20 -05:00
f62e3e9940
Add new TableOfContents Page variable (Markdown only)
...
Added TableOfContents field to hugolib.Page struct. New function
getTableOfContents is used in convertMarkdown to set the TableOfContents
field.
Added new test file hugolib/page_toc_test.go with a simple test of the
new functionality.
Conflicts:
hugolib/page.go
2014-01-23 17:27:08 -05:00
3851117c25
renaming MinRead to ReadingTime and adding to documentation.
2014-01-21 20:08:24 -05:00
f0634ec059
fixed #171 . RSSlink is now RSSLink (and matches existing docs).
...
Added backwards compatibility accessor for existing templates.
2014-01-18 22:16:19 -05:00
ae15ff0968
Fixing test which erroneously checked values and order, rather than just values.
2014-01-18 21:26:34 -05:00
44186c6af1
Extending rss item limit to 50… can reduce further in template with ‘first N’ functionality.
2014-01-18 21:18:54 -05:00
cb04053385
RSS improvements, now limit to 15 items and provide accurate date. fixed #172
2014-01-18 11:05:50 -05:00
438c219892
Add canonifyurls
config option.
...
Be able to inhibit AbsURL canonicalization of content, on a site
configuration basis. Advantages of being able to inhibit this include
making it easier to rendering on other hostnames, and being able to
include resources on http or https depending on how this page was
retrieved, avoiding mixed-mode client complaints without adding latency
for plain http.
2014-01-13 10:06:12 -05:00
3fd6c1a24e
Adding some embedded short codes (including code highlighting)
2014-01-10 21:27:32 -05:00
8055838c70
Allowing empty files (ignored) so you can touch a new file while watching
2013-12-28 13:47:34 -05:00
e46148f948
Fix static file change detection on Windows.
...
Fixed windows uses different filepath separator. The filepath.ToSlash
shouldn't be used, because it can cause errors in filepath suffix and prefix
testing since "c:\a" isn't a prefix of "c:/a/b/c".
2013-12-28 13:45:38 -05:00
065928fcf0
Adding page sorting by weight function (the default)
2013-12-28 12:56:12 -05:00
70745e8cb5
Complete refactor of indexes, move (and rewrite) page sorting to page.go, add tests
2013-12-20 09:10:05 -05:00
6aa3e51228
Added PageSorter and PagesByDate
2013-12-16 17:55:37 -05:00
6da23f7449
Gofmt
...
Command: `gofmt -l -s -w .`
2013-12-16 17:40:10 -05:00
0e04b9a029
Moving processing short codes to the page
2013-12-06 23:57:24 -05:00
d0ef3d43bd
better handling of detecting markup format
2013-12-06 23:56:51 -05:00
f432b187a0
render shortcodes prior to converting to html
2013-12-06 23:32:00 -05:00
a45de56db1
adding support for shortcodes with opening and closing tags
2013-12-06 23:14:54 -05:00
44d57fdc0c
Reorganize helpers
2013-12-05 09:29:41 -05:00