Joel Scoble [Wed, 15 Oct 2014 22:59:43 +0000 (17:59 -0500)]
#463 add summary.md page
spf13 [Sat, 1 Nov 2014 16:05:37 +0000 (12:05 -0400)]
Handler WIP
spf13 [Sat, 1 Nov 2014 15:57:29 +0000 (11:57 -0400)]
Migrating Hugo to Afero for filesystem calls.
spf13 [Tue, 21 Oct 2014 00:15:33 +0000 (20:15 -0400)]
Handlers WIP - Convert now working
spf13 [Mon, 20 Oct 2014 21:51:53 +0000 (17:51 -0400)]
Handlers WIP (builds)
spf13 [Mon, 20 Oct 2014 21:42:16 +0000 (17:42 -0400)]
Handlers WIP
spf13 [Fri, 17 Oct 2014 20:57:48 +0000 (16:57 -0400)]
Initial Handler Architecture WIP
spf13 [Fri, 17 Oct 2014 00:20:39 +0000 (20:20 -0400)]
Improved error message when config file not found.
spf13 [Fri, 17 Oct 2014 00:20:09 +0000 (20:20 -0400)]
Big refactor of how source files are used. Also added default destination extension option.
bep [Wed, 15 Oct 2014 11:26:21 +0000 (13:26 +0200)]
Set Content-Type for livereload.js
The Content-Type was not set for livereload.js and was interpreteted by the browser as text/plain.
This commit sets it to application/javascript.
Fixes #562
bep [Sun, 12 Oct 2014 13:57:00 +0000 (15:57 +0200)]
Copy content from archetype
Prior to this commit only metadata were copied from archetype on content creation.
This commit includes the content if set in archetype. This is useful in situations with similar page structure.
Fixes #556
bep [Thu, 9 Oct 2014 22:57:57 +0000 (00:57 +0200)]
Make First accept any int
TOML and YAML handles integers differently, creating issues when using integer values from configuration or front matter in the First template function.
This currently works in YAML (parses into int), but not in TOML (parses into int64).
This commit modifies First so it accepts any int.
Fixes #551
Jian Zhou [Wed, 8 Oct 2014 20:02:53 +0000 (16:02 -0400)]
Fix spf13/hugo#467. RSSLink now point to index.xml
bep [Wed, 8 Oct 2014 17:56:00 +0000 (19:56 +0200)]
Add nil-check to Intersect
The Intersect template-method would fail if one or both of the lists were nil (post vs page; post has tags, page has not).
This commit adds a nil-check and returns an empty result if any of the inputs are nil.
See #537
Will Stevens [Wed, 8 Oct 2014 16:05:22 +0000 (12:05 -0400)]
added docs for 'intersect' and 'in' template functions
Anthony Fok [Tue, 7 Oct 2014 23:52:58 +0000 (17:52 -0600)]
Minor proofreading corrections to Hugo docs
- Add backticks and commas where necessary
- Remove some trailing whitespace
- Add front matter example in TOML
- Fix typo in one of the tags in Showcase
- Add 多说 (Duoshuo) as an alternative to Disqus
- Use internal links (i.e. without gohugo.io) where possible
- Use a colon to set off an example
- Change "it's" to "its" where appropriate
- Use typographical (i.e. curly) apostrophe on the front page
where appropriate
- Capitalize "Github" as "GitHub"
bep [Thu, 9 Oct 2014 20:41:14 +0000 (22:41 +0200)]
Document manual breakpoint of .Summary
The use of <!--more--> to set the breakpoint for the generated page summary is mentioned in a release note, but not in the doc itself.
Very useful - and it leaves the formatting in place.
Raphael Estrada [Wed, 8 Oct 2014 14:54:50 +0000 (15:54 +0100)]
add 'width' parameter to 'figure' shortcode
Mantas [Mon, 6 Oct 2014 09:50:44 +0000 (12:50 +0300)]
handle https prefixes in baseUrl
Oscar Bolmsten [Sun, 5 Oct 2014 07:41:54 +0000 (09:41 +0200)]
Minor fix to error message when copying static files
Joel Scoble [Thu, 2 Oct 2014 22:25:52 +0000 (17:25 -0500)]
#462 fix, remove leading and trailing dashes from urlized slug. includes test changes
Joel Scoble [Thu, 2 Oct 2014 21:28:24 +0000 (16:28 -0500)]
Feed the titleized taxonomy key through string replace to replace '-' with ' ' for proper display of the taxonmy title
Will Stevens [Thu, 2 Oct 2014 14:15:54 +0000 (10:15 -0400)]
added In and Intersect template functions
Austin Ziegler [Wed, 1 Oct 2014 18:26:43 +0000 (14:26 -0400)]
Use md5 against the file path for uniqueness.
Austin Ziegler [Mon, 29 Sep 2014 14:02:45 +0000 (10:02 -0400)]
Make each generated page’s footnotes unique.
If content pages are fully rendered in a list page, footnotes that use
the same reference (`[^fn]`) will have duplicated anchors. This change
builds on #526 to put the page filename (`Page.File.Name`) as part of
the anchor for a footnote.
This would fix discussion [116](http://discuss.gohugo.io/t/footnote-references-are-duplicated-on-list-pages/116).
Austin Ziegler [Sat, 27 Sep 2014 03:44:09 +0000 (23:44 -0400)]
Configure footnote rendering.
- The config file can provide FootnoteAnchorPrefix, which will be used
by blackfriday when rendering to HTML. A value of `q:` has the effect
of making the anchor for a footnote `[^footie]` be `fn:q:footie`. The
default is `""`.
- The config file can provide FootnoteReturnLinkContents, which will be
used by blackfriday when rendering to HTML. A value of `^` has the
effect of making the return link be `^` instead of `[return]`.
Jorin Vogel [Wed, 1 Oct 2014 07:51:25 +0000 (14:51 +0700)]
Mention .Params and .Page variables in shortcode docs. Also `highlight` variables.
Kartik Singhal [Sun, 28 Sep 2014 04:52:15 +0000 (10:22 +0530)]
Correct desc for hugo new command
Aurelius Prochazka [Sun, 28 Sep 2014 00:21:06 +0000 (17:21 -0700)]
Removed text from code block.
Kartik Singhal [Sat, 27 Sep 2014 07:35:42 +0000 (13:05 +0530)]
Switch to new hompage
spf13 [Thu, 2 Oct 2014 17:37:38 +0000 (13:37 -0400)]
better error messages for template errors
Nate Finch [Mon, 29 Sep 2014 13:19:39 +0000 (09:19 -0400)]
add some information to rendering errors so it's easier to tell what's failing.
Austin Ziegler [Wed, 24 Sep 2014 01:34:13 +0000 (21:34 -0400)]
Make taxonomy documentation match the example.
Kartik Singhal [Tue, 23 Sep 2014 14:09:40 +0000 (19:39 +0530)]
Make highlight.js example clearer
Provide the missing step to actually use the library. Should be helpful for a newbie.
spf13 [Tue, 23 Sep 2014 02:08:08 +0000 (22:08 -0400)]
Making the install on the homepage a bit more clear
Alex Dunn [Mon, 22 Sep 2014 23:58:30 +0000 (16:58 -0700)]
instructions for Homebrew installation
updated installation page of documentation, and changed "Download" button on index.html to scroll to bottom where multiple installation options are featured
getting the scrolldown to work required removing the fixed positioning on #action and on the footer
spf13 [Mon, 22 Sep 2014 13:45:05 +0000 (09:45 -0400)]
adding memstat option to server
Tatsushi Demachi [Fri, 19 Sep 2014 16:33:02 +0000 (01:33 +0900)]
Extend template's basic math functions to accept float, uint and string values
spf13 [Fri, 19 Sep 2014 12:32:25 +0000 (08:32 -0400)]
Adding a community link to the homepage
spf13 [Fri, 19 Sep 2014 01:22:04 +0000 (21:22 -0400)]
switching website to gohugo.io & adding links to discuss
rybi [Wed, 17 Sep 2014 19:59:18 +0000 (21:59 +0200)]
Update urls.md
Corrected the --uglyUrls flag, wouldn't work if lowercase.
Nate Finch [Sun, 14 Sep 2014 11:23:03 +0000 (07:23 -0400)]
limit the number of goroutines used in taxonomy rendering to gomaxprocs*4
Nate Finch [Sun, 14 Sep 2014 11:01:40 +0000 (07:01 -0400)]
limit the number of goroutines we use for page rendering to gomaxprocs*4
Nate Finch [Thu, 11 Sep 2014 02:06:46 +0000 (22:06 -0400)]
remove unused field
Nate Finch [Thu, 11 Sep 2014 02:34:00 +0000 (22:34 -0400)]
make the value of the BuildDrafts flag available to templates.This can be useful for if you only want to show some specific information on your local machine and/or when showing drafts.
Nate Finch [Wed, 10 Sep 2014 19:33:49 +0000 (15:33 -0400)]
Sort by title if dates are the same
Alex Dunn [Wed, 10 Sep 2014 16:42:58 +0000 (09:42 -0700)]
more examples and explanation of go templating
Emphasizing to people (like me) who aren't familiar with Go that just because something's not mentioned in the Hugo docs doesn't mean it's not possible
Joel Scoble [Tue, 9 Sep 2014 21:57:14 +0000 (16:57 -0500)]
refactor handling of amber to AddTemplateFile as the TODO note stated. Used switch statement to make it easier to add other template support
Joel Scoble [Tue, 9 Sep 2014 20:58:02 +0000 (15:58 -0500)]
fix tags not being in lowercase, #491
Daniel Fairhead [Tue, 9 Sep 2014 13:26:51 +0000 (14:26 +0100)]
added "eq" function to docs.
bep [Wed, 10 Sep 2014 10:21:22 +0000 (12:21 +0200)]
Enable soft livereload of CSS and images
Prior to this commit a dummy JavaScript filename was sent to LiveReload when changing a static file (CSS, image etc.), forcing a full browser reload of the page.
This commit fixes this by sending the relative file path of the changed static resource, enabling partial live reloading for CSS- and image-changes. If more than one static file happens to end up in the same changeevent-batch, it will fall back to do a full refresh. To enable this logic, the change events with names ending with ".goutputstream*" is now filtered out as temporary.
Changes in dynamic content behaves like before.
Issue #490
Nate Finch [Tue, 9 Sep 2014 09:59:47 +0000 (05:59 -0400)]
Change all uses of sort.Sort to sort.Stable.Using sort.Stable ensures that even if the sort keys are the same, the order of the sort will not randomly change. Using the old sort.Sort, if you had pages with no date, the lists of those pages would randomly reorder every time you regenerate the list, causing spurious changes to the output. Now they'll always get ordered in the same way.
Tatsushi Demachi [Sat, 6 Sep 2014 01:38:36 +0000 (10:38 +0900)]
More error messages at syncing static contents
Nate Finch [Sat, 6 Sep 2014 12:03:03 +0000 (08:03 -0400)]
fix zero date
Tim Dumol [Sat, 6 Sep 2014 02:51:27 +0000 (10:51 +0800)]
Fix typo in Archetypes documentation.
Archetype was spelled archtype in one of the headers.
Nate Finch [Fri, 5 Sep 2014 10:57:32 +0000 (06:57 -0400)]
Add Node.Site.Pages to all nodes and ensure all pages from the site exist in the list before processing shortcodes.
Node.Site.Recent is not really just recent pages, but all pages, so I figured it was better to add a new parameter with a more informative name.
I also changed the code slightly so that all pages are added to the list of pages before we start rendering shortcodes... this way you can use a shortcode to refer to another page. Previosuly, this had been broken, because the list ofg pages would not be fully populated while the shortcodes were being processed. The code that does this is not reading from disk or doing any rendering, so it shouldn't take any more time to do.
Nate Finch [Thu, 4 Sep 2014 17:56:29 +0000 (13:56 -0400)]
add Name to File, which is the filename minus the extension
Jakub Turski [Wed, 3 Sep 2014 19:05:44 +0000 (20:05 +0100)]
Go back to lowercase slugs. Also, use MakePathToLower in TestMakeToLower.
go fmt
Anthony Fok [Wed, 3 Sep 2014 04:12:26 +0000 (22:12 -0600)]
More proofreading and minor revisions to Hugo docs
Among the various changes, most instances of
{{ template "partials/FILE.html" . }}
were changed to
{{ partial "FILE.html" . }}
Also, in main.go, change "2013" to "2013-14".
Anthony Fok [Wed, 3 Sep 2014 00:10:19 +0000 (18:10 -0600)]
A small fix and update to the multilingual example
Enclose `{{ .Content }}` with a `{{ if .IsPage }}` test to avoid
the "Content is not a field of struct type *hugolib.Node" error.
Thanks to @spf13 for the tip! Fixes #366.
Also update example to Hugo v0.12 conventions:
- Convert config.yaml to config.toml to follow what
`hugo new site /path/to/site` generates
- Rename layouts/chrome to layouts/partials
- Convert `template` calls to `partial` calls
- Add .gitignore to ignore the `public` directory
- Add README.md with pointers to discussions in issues
to help bring newcomers up to speed with this multilingual example
spf13 [Fri, 5 Sep 2014 13:29:01 +0000 (09:29 -0400)]
Taxonomies can now be provided as a single string value if there is only one in frontmatter (tag = "val" vs tag = ["val"])
spf13 [Wed, 3 Sep 2014 15:30:08 +0000 (11:30 -0400)]
Making partials context optional for compatibility with template.
If not provided, context is nil.
spf13 [Wed, 3 Sep 2014 15:28:40 +0000 (11:28 -0400)]
Bumping Version to 0.13-DEV
Anthony Fok [Tue, 2 Sep 2014 19:05:20 +0000 (13:05 -0600)]
Update example blog to Hugo v0.12 conventions
- Convert config.yaml to config.toml to follow what
"hugo new site /path/to/site" generates
- Rename layouts/chrome to layouts/partials
- Convert "template" calls to "partial" calls
- Minor revisions to the text in example content
- Upgrade Bootswatch Yeti theme (3.1.1+1 → to 3.2.0+3)
- Upgrade Font Awesome (4.0.3 → 4.2.0)
- Upgrade jQuery (1.11.0 → 1.11.1)
spf13 [Tue, 2 Sep 2014 21:09:56 +0000 (17:09 -0400)]
Fixing typo in ordering.md fixed #401
spf13 [Mon, 1 Sep 2014 14:05:05 +0000 (10:05 -0400)]
Bumping Version
spf13 [Mon, 1 Sep 2014 14:00:45 +0000 (10:00 -0400)]
Adding V0.12 release notes
spf13 [Mon, 1 Sep 2014 14:00:06 +0000 (10:00 -0400)]
Adding a bunch of new quotes to the front page and switching to Owl Carousel
Anthony Fok [Sun, 31 Aug 2014 09:43:25 +0000 (03:43 -0600)]
Fix loading of Lato font in style.css for docs
The "@import url()" statement for loading Lato from Google Fonts
was ignored because "@import are not allowed after any valid statement
other than @charset and @import" according to the W3C CSS Validator.
Also remove the line for importing line-icons.css which no longer
exists.
Anthony Fok [Sun, 31 Aug 2014 11:08:36 +0000 (05:08 -0600)]
Minor proofreading corrections to Hugo docs
Dato Simó [Sun, 31 Aug 2014 01:53:14 +0000 (02:53 +0100)]
Use typographic quote chars in the carousel quotes section
At big font sizes, quotes really become more beautiful with them.
Dave Johnston [Sat, 30 Aug 2014 08:25:20 +0000 (08:25 +0000)]
Enable header id blackfriday extension
Anthony Fok [Fri, 29 Aug 2014 23:38:32 +0000 (17:38 -0600)]
quickstart.md: Put long options inside backticks
Also minor adjustment to blank lines.
spf13 [Sat, 30 Aug 2014 05:15:20 +0000 (01:15 -0400)]
Adjusting the number of go routines to build the pages in to 4*GOMAXPROCS (from 2) for faster rendering.
Nate Finch [Fri, 29 Aug 2014 17:40:21 +0000 (13:40 -0400)]
Fix CreatePages
This fixes #450. There are two problems:
1.) We're creating a new goroutine for every page.
2.) We're calling s.Pages = append(s.Pages, page) inside each goroutine.
1 is a problem if in that if you have a ton of pages, that's a ton of goroutines. It's not really useful to have more than a few goroutines at a time, and lots can actually make your code much slower, and, evidently, crash.
2 is a problem in that append is not thread safe. Sometimes it returns a new slice with a larger capacity, when the original slice isn't large enough. This can cause problems if two goroutines do this at the same time.
The solution for 1 is to use a limited number of workers (I chose 2*GOMAXPROCS as a nice guess).
The solution for 2 is to serialize access to s.Pages, which I did by doing it in a single goroutine.
spf13 [Sat, 30 Aug 2014 04:57:38 +0000 (00:57 -0400)]
Adding documentation about 'where' and cleaning up docs around first.
spf13 [Sat, 30 Aug 2014 04:20:53 +0000 (00:20 -0400)]
Added more examples and cleaned up the GroupBy functionality documentation
spf13 [Sat, 30 Aug 2014 03:51:29 +0000 (23:51 -0400)]
Making direction optional (and setting defaults) for GroupBy Pages functionality.
spf13 [Sat, 30 Aug 2014 03:50:25 +0000 (23:50 -0400)]
Adding .Reverse() to PagesGroup
spf13 [Sat, 30 Aug 2014 03:48:24 +0000 (23:48 -0400)]
Switch .Data to .Pages in the PageGroup functionality for increased consistency.
spf13 [Sat, 30 Aug 2014 03:44:39 +0000 (23:44 -0400)]
Making the term "Term" more consistent with Taxonomy usage.
spf13 [Sat, 30 Aug 2014 03:43:38 +0000 (23:43 -0400)]
Making the Pages Sorting methods available within a taxonomy term.
spf13 [Sat, 30 Aug 2014 03:42:26 +0000 (23:42 -0400)]
Adding a page listing the different methods available to Taxonomies.
spf13 [Sat, 30 Aug 2014 03:41:53 +0000 (23:41 -0400)]
More taxonomy examples in templates.
spf13 [Sat, 30 Aug 2014 03:39:55 +0000 (23:39 -0400)]
Fixing the taxonomy example. Fixed #318.
Jakub Turski [Wed, 27 Aug 2014 00:34:54 +0000 (01:34 +0100)]
Be more specific about .Params content
I'm not sure whether this is *always* the case, but it's definitely have been my experience so far. :)
Jakub Turski [Wed, 27 Aug 2014 09:36:26 +0000 (10:36 +0100)]
Shortcodes are content files specific.
This fixes spf13/hugo#440.
Tatsushi Demachi [Wed, 27 Aug 2014 13:50:06 +0000 (22:50 +0900)]
Add document about page grouping functions
spf13 [Thu, 28 Aug 2014 16:48:31 +0000 (12:48 -0400)]
Inner Shortcodes now treated as markdown. fixed #185
spf13 [Wed, 27 Aug 2014 15:47:12 +0000 (11:47 -0400)]
More press additions
spf13 [Tue, 26 Aug 2014 18:37:34 +0000 (14:37 -0400)]
Compressed showcase thumbnails further
spf13 [Tue, 26 Aug 2014 18:37:12 +0000 (14:37 -0400)]
Added ucsb to showcase
spf13 [Tue, 26 Aug 2014 18:36:38 +0000 (14:36 -0400)]
More Press
spf13 [Tue, 26 Aug 2014 17:16:45 +0000 (13:16 -0400)]
fixed #389 . Added alias for missing page.
spf13 [Tue, 26 Aug 2014 16:30:28 +0000 (12:30 -0400)]
small tweaks to the hover effect
spf13 [Tue, 26 Aug 2014 16:27:43 +0000 (12:27 -0400)]
Creating a showcase archetype to make for easier showcase additions
spf13 [Tue, 26 Aug 2014 16:27:25 +0000 (12:27 -0400)]
Adding a bunch of new sites to the showcase
spf13 [Tue, 26 Aug 2014 16:26:29 +0000 (12:26 -0400)]
Adding a bunch of new press to the Press page.
spf13 [Mon, 25 Aug 2014 19:52:43 +0000 (15:52 -0400)]
Prettier link hover state
spf13 [Mon, 25 Aug 2014 19:18:53 +0000 (15:18 -0400)]
Bumping Travis to test Go 1.2 & tip (1.3)