brevno-suite/hugo
11 years agoAdding support for some primitive template math functions
spf13 [Wed, 22 Jan 2014 22:06:23 +0000 (17:06 -0500)]
Adding support for some primitive template math functions

11 years agoadd andrewcodispoti.com to hall-of-fame
Andrew Codispoti [Mon, 20 Jan 2014 21:24:47 +0000 (16:24 -0500)]
add andrewcodispoti.com to hall-of-fame

11 years agorenaming MinRead to ReadingTime and adding to documentation.
spf13 [Tue, 21 Jan 2014 22:12:59 +0000 (17:12 -0500)]
renaming MinRead to ReadingTime and adding to documentation.

11 years agoUpdating page variable documentation (for templates).
spf13 [Wed, 22 Jan 2014 01:05:26 +0000 (20:05 -0500)]
Updating page variable documentation (for templates).

11 years agofixed #171. RSSlink is now RSSLink (and matches existing docs).
spf13 [Sun, 19 Jan 2014 03:16:19 +0000 (22:16 -0500)]
fixed #171. RSSlink is now RSSLink (and matches existing docs).

Added backwards compatibility accessor for existing templates.

11 years agoFixing test which erroneously checked values and order, rather than just values.
spf13 [Sun, 19 Jan 2014 02:26:34 +0000 (21:26 -0500)]
Fixing test which erroneously checked values and order, rather than just values.

11 years agoExtending rss item limit to 50… can reduce further in template with ‘first N’ functio...
spf13 [Sun, 19 Jan 2014 02:18:54 +0000 (21:18 -0500)]
Extending rss item limit to 50… can reduce further in template with ‘first N’ functionality.

11 years agoHave travis build with latest go.
spf13 [Sat, 18 Jan 2014 16:02:56 +0000 (11:02 -0500)]
Have travis build with latest go.

11 years agoRSS improvements, now limit to 15 items and provide accurate date. fixed #172
spf13 [Sat, 18 Jan 2014 16:02:27 +0000 (11:02 -0500)]
RSS improvements, now limit to 15 items and provide accurate date. fixed #172

11 years agoAdding github button to docs homepage
spf13 [Sat, 18 Jan 2014 15:58:58 +0000 (10:58 -0500)]
Adding github button to docs homepage

11 years agoAdding Werker status to readme
Steve Francia [Wed, 15 Jan 2014 16:06:41 +0000 (11:06 -0500)]
Adding Werker status to readme

11 years agoCreate wercker.yml
Steve Francia [Wed, 15 Jan 2014 16:02:24 +0000 (11:02 -0500)]
Create wercker.yml

11 years agofeat(docs/hall-of-fame): add ifup
Brandon Philips [Mon, 13 Jan 2014 03:38:48 +0000 (19:38 -0800)]
feat(docs/hall-of-fame): add ifup

Add me! Thanks for hugo, working great.

11 years agoAdd `canonifyurls` config option.
Phil Pennock [Fri, 3 Jan 2014 23:36:53 +0000 (18:36 -0500)]
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.

11 years agoAdd highlighting of code in documentation and clean up a bunch of the docs.
spf13 [Sat, 11 Jan 2014 02:19:19 +0000 (21:19 -0500)]
Add highlighting of code in documentation and clean up a bunch of the docs.

11 years agoRewriting some homepage text
spf13 [Fri, 10 Jan 2014 17:52:43 +0000 (12:52 -0500)]
Rewriting some homepage text

11 years agoA bunch of style updates. Switching to bootstrap carousel.
spf13 [Fri, 10 Jan 2014 17:48:55 +0000 (12:48 -0500)]
A bunch of style updates. Switching to bootstrap carousel.

11 years agoReport error, but don’t fatally stop if pygments has error. Return original string...
spf13 [Fri, 10 Jan 2014 17:50:31 +0000 (12:50 -0500)]
Report error, but don’t fatally stop if pygments has error. Return original string. (+1 squashed commit)
Squashed commits:
[849a7af] if highlighting doesn’t work, just return original string

11 years agoAdding some embedded short codes (including code highlighting)
spf13 [Thu, 9 Jan 2014 22:33:20 +0000 (17:33 -0500)]
Adding some embedded short codes (including code highlighting)

11 years agoAdding support for embedded templates
spf13 [Thu, 9 Jan 2014 22:27:39 +0000 (17:27 -0500)]
Adding support for embedded templates

11 years agoRemoving Twitter js
spf13 [Wed, 8 Jan 2014 14:19:09 +0000 (09:19 -0500)]
Removing Twitter js

11 years agoNew Icon Font for Hugo
spf13 [Wed, 8 Jan 2014 14:18:42 +0000 (09:18 -0500)]
New Icon Font for Hugo

11 years agoAdding some analytics
Steve Francia [Fri, 3 Jan 2014 17:58:09 +0000 (12:58 -0500)]
Adding some analytics

11 years agoAdding chimeraarts.org to hall-of-fame
Dana Woodman [Tue, 31 Dec 2013 22:00:19 +0000 (14:00 -0800)]
Adding chimeraarts.org to hall-of-fame

I've added the website for the makerspace I founded into the hall of fame list as an example of what you can do with Hugo.

It's a work in progress (like everything) but should show people another example of using Hugo in the real world.

Hugo has made it much easier to update our website content without needing to use bloated or expensive tools.

Thanks!

11 years agoAdded append-port flag
Krisztián Szabó [Sat, 28 Dec 2013 19:37:44 +0000 (20:37 +0100)]
Added append-port flag

11 years agoIf baseurl is set then print that on the command line, else leave as default of localhost
William King [Mon, 16 Dec 2013 08:37:09 +0000 (00:37 -0800)]
If baseurl is set then print that on the command line, else leave as default of localhost

Conflicts:
commands/server.go

11 years agoExample of a multilingual site.
Egon Elbre [Sat, 23 Nov 2013 19:16:42 +0000 (21:16 +0200)]
Example of a multilingual site.

11 years agoAllowing empty files (ignored) so you can touch a new file while watching
spf13 [Sat, 28 Dec 2013 18:44:58 +0000 (13:44 -0500)]
Allowing empty files (ignored) so you can touch a new file while watching

11 years agoDon't shutdown hugo on an empty file.
Egon Elbre [Mon, 16 Dec 2013 08:34:26 +0000 (10:34 +0200)]
Don't shutdown hugo on an empty file.

11 years agoAdded batching behavior for page building.
Egon Elbre [Sun, 15 Dec 2013 15:19:22 +0000 (17:19 +0200)]
Added batching behavior for page building.

Quite often file watcher gets many changes and each change triggered a
build. One build per second should be sufficient. Also added tracking for
new folders.

11 years agoAvoid locking the files for an extended amount of time. Sublime Text
Egon Elbre [Sun, 15 Dec 2013 14:49:23 +0000 (16:49 +0200)]
Avoid locking the files for an extended amount of time. Sublime Text
doesn't like this and shows an error when modifying a file in rapid
succession.

11 years agoFix static file change detection on Windows.
Egon Elbre [Sun, 15 Dec 2013 14:31:29 +0000 (16:31 +0200)]
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".

11 years agoAdding page sorting by weight function (the default)
spf13 [Sat, 28 Dec 2013 17:56:12 +0000 (12:56 -0500)]
Adding page sorting by weight function (the default)

11 years agoAdded documentation on ordering indexes, content and content within indexes
spf13 [Fri, 20 Dec 2013 23:11:49 +0000 (18:11 -0500)]
Added documentation on ordering indexes, content and content within indexes

11 years agoComplete refactor of indexes, move (and rewrite) page sorting to page.go, add tests
spf13 [Fri, 20 Dec 2013 14:10:05 +0000 (09:10 -0500)]
Complete refactor of indexes, move (and rewrite) page sorting to page.go, add tests

11 years agoAdded PageSorter and PagesByDate
Henry [Sun, 24 Nov 2013 21:10:20 +0000 (22:10 +0100)]
Added PageSorter and PagesByDate

11 years agoSection in example was wrong for happiness.md
Ruben [Fri, 29 Nov 2013 14:12:39 +0000 (15:12 +0100)]
Section in example was wrong for happiness.md

11 years agoTestcases for multilevel structure were wrong
Ruben [Fri, 29 Nov 2013 07:22:44 +0000 (08:22 +0100)]
Testcases for multilevel structure were wrong

11 years agoFixes #141: Wrong section in multi level structure
Ruben [Thu, 28 Nov 2013 14:27:09 +0000 (15:27 +0100)]
Fixes #141: Wrong section in multi level structure

11 years agoGofmt
Caleb Spare [Sun, 24 Nov 2013 21:48:57 +0000 (13:48 -0800)]
Gofmt

Command: `gofmt -l -s -w .`

11 years agoproperly use non-localhost BaseUrl in server command
Matt Way [Fri, 22 Nov 2013 05:28:05 +0000 (00:28 -0500)]
properly use non-localhost BaseUrl in server command

11 years agoAdding better contribution guidelines from the read me to the contribution page.
spf13 [Wed, 11 Dec 2013 03:23:20 +0000 (22:23 -0500)]
Adding better contribution guidelines from the read me to the contribution page.

11 years agoAdding community section to the documentation
spf13 [Wed, 11 Dec 2013 00:38:52 +0000 (19:38 -0500)]
Adding community section to the documentation

11 years agoAdding selected tweets to the homepage
spf13 [Wed, 11 Dec 2013 00:38:03 +0000 (19:38 -0500)]
Adding selected tweets to the homepage

11 years agoAdding example short codes to the documentation
spf13 [Wed, 11 Dec 2013 00:36:44 +0000 (19:36 -0500)]
Adding example short codes to the documentation

11 years agoAdd go fmt to contribution guidelines
Noah Campbell [Sun, 8 Dec 2013 04:51:34 +0000 (20:51 -0800)]
Add go fmt to contribution guidelines

Also fixed up formatting.

11 years agoAdd Contribution Guidelines
Noah Campbell [Sun, 8 Dec 2013 04:48:17 +0000 (20:48 -0800)]
Add Contribution Guidelines

Fixes #122

11 years agoMoving processing short codes to the page
spf13 [Sat, 7 Dec 2013 04:57:24 +0000 (23:57 -0500)]
Moving processing short codes to the page

11 years agobetter handling of detecting markup format
spf13 [Sat, 7 Dec 2013 04:56:51 +0000 (23:56 -0500)]
better handling of detecting markup format

11 years agorender shortcodes prior to converting to html
spf13 [Sat, 7 Dec 2013 04:32:00 +0000 (23:32 -0500)]
render shortcodes prior to converting to html

11 years agoadding support for shortcodes with opening and closing tags
spf13 [Sat, 7 Dec 2013 04:14:54 +0000 (23:14 -0500)]
adding support for shortcodes with opening and closing tags

11 years agoAdding (source code) Highlight template helper
spf13 [Thu, 5 Dec 2013 14:43:49 +0000 (09:43 -0500)]
Adding (source code) Highlight template helper

11 years agoAdding Pygments helper
spf13 [Thu, 5 Dec 2013 14:42:29 +0000 (09:42 -0500)]
Adding Pygments helper

11 years agoReorganize helpers
spf13 [Thu, 5 Dec 2013 14:29:41 +0000 (09:29 -0500)]
Reorganize helpers

11 years agoCreate directories in publishdir with mode 0777.
David Arroyo [Mon, 2 Dec 2013 01:33:52 +0000 (20:33 -0500)]
Create directories in publishdir with mode 0777.

The previous permissions (0764), were unusable (directories must
be executable) when generating files for use by another uid. The
Right Thing™ is to use mode 0777. The OS will subtract the process
umask (usually 022) to the for the final permissions.

Signed-off-by: Noah Campbell <noahcampbell@gmail.com>
11 years agoTypo fix in docs.
David Gay [Sat, 23 Nov 2013 19:51:31 +0000 (14:51 -0500)]
Typo fix in docs.

Signed-off-by: Noah Campbell <noahcampbell@gmail.com>
11 years agoFix a minor typo in types.md
Valeri Karpov [Fri, 22 Nov 2013 22:59:47 +0000 (17:59 -0500)]
Fix a minor typo in types.md

Signed-off-by: Noah Campbell <noahcampbell@gmail.com>
11 years agoquickstart docs - fix flag needs arg error
Javed Khan [Sat, 23 Nov 2013 15:36:33 +0000 (21:06 +0530)]
quickstart docs - fix flag needs arg error

Signed-off-by: Noah Campbell <noahcampbell@gmail.com>
11 years agofixed trailing dir slash when using slug
Tim Esselens [Tue, 19 Nov 2013 13:10:03 +0000 (14:10 +0100)]
fixed trailing dir slash when using slug

See testcase, dir + slug contained double slash when dir had a trailing
slash.

Signed-off-by: Noah Campbell <noahcampbell@gmail.com>
11 years agoDocumentation updates, mostly for my bits
Phil Pennock [Mon, 18 Nov 2013 23:31:02 +0000 (18:31 -0500)]
Documentation updates, mostly for my bits

* extras/permalinks.md added, weighted to third in the extras menu
* examples added to layout/go-templates.md, using `.Site.Params`
* mention `.Site.Params` in layout/variables.md
* update meta/release-notes.md to mention `first` and the permalinks
* update overview/configuration.md to use reserved-for-documentation
  domains and with another example, nudging towards permalinks and site
  parameters, with three different data-types shown for the latter

Signed-off-by: Noah Campbell <noahcampbell@gmail.com>
11 years agoconfigurable permalinks support
Phil Pennock [Mon, 18 Nov 2013 09:35:56 +0000 (04:35 -0500)]
configurable permalinks support

A sample config.yaml for a site might contain:

```yaml
permalinks:
  post: /:year/:month/:title/
```

Then, any article in the `post` section, will have the canonical URL
formed via the permalink specification given.

Signed-off-by: Noah Campbell <noahcampbell@gmail.com>
11 years agoUpdated release notes. v0.9
spf13 [Sat, 16 Nov 2013 04:47:53 +0000 (23:47 -0500)]
Updated release notes.

11 years agoUpdating docs to include ‘first’ functionality for the homepage
spf13 [Sat, 16 Nov 2013 02:45:52 +0000 (21:45 -0500)]
Updating docs to include ‘first’ functionality for the homepage

11 years agoVersion bump 0.9
spf13 [Sat, 16 Nov 2013 02:43:46 +0000 (21:43 -0500)]
Version bump 0.9

11 years agoHomepage now has all content available, use sorting and first to control rendering
spf13 [Thu, 14 Nov 2013 14:37:58 +0000 (09:37 -0500)]
Homepage now has all content available, use sorting and first to control rendering

11 years agolowercase template function first to be consistent with all other template functions
spf13 [Thu, 14 Nov 2013 14:32:49 +0000 (09:32 -0500)]
lowercase template function first to be consistent with all other template functions

11 years agoremove initialization loop error from compile
Michael D. Johas Teener [Tue, 12 Nov 2013 23:36:23 +0000 (17:36 -0600)]
remove initialization loop error from compile

copied HugoCmd to a local var, initialize that variable in the init
func, and then use the local var in the InitializeConfig func.

11 years agoTruncated; .Site.Params; First function
Phil Pennock [Sun, 10 Nov 2013 20:04:51 +0000 (12:04 -0800)]
Truncated; .Site.Params; First function

* Add `.Truncated` bool to each page; will be set true if the
  `.Summary` is truncated and it's worth showing a "more" link of some
  kind.
* Add `Params` to the site config, defining `.Site.Params` accessible
  to each page; this lets the site maintainer associate arbitrary data
  with names, on a site-wide basis.
* Provide a `First` function to templates:
  * Use-case: `{{range First 5 .Site.Recent}}` or anything else which
    is a simple iterable provided by hugolib
* Tests by me for `.Truncated` and `First`

Also @noahcampbell contributed towards this:

* Add UnitTest for `.Site.Params`:
> Digging into this test case a bit more, I'm realizing that we need
> to create a param test case to ensure that for each type we render
> (page, index, homepage, rss, etc.) that the proper fields are
> represented.  This will help us refactor without fear in the
> future.

Sample config.yaml:

```yaml
title: "Test site"
params:
  Subtitle: "More tests always good"
  AuthorName: "John Doe"
  SidebarRecentLimit: 5
```

Signed-off-by: Noah Campbell <noahcampbell@gmail.com>
11 years agorestored behavior of respecting config values unless set by command flags. fixed...
spf13 [Tue, 12 Nov 2013 14:38:43 +0000 (09:38 -0500)]
restored behavior of respecting config values unless set by command flags. fixed #116

11 years agoHandle schema-less urls when apply absurl
Noah Campbell [Sat, 9 Nov 2013 14:35:09 +0000 (14:35 +0000)]
Handle schema-less urls when apply absurl

Fixes #114

11 years agofixing double slash during absurlify
spf13 [Sat, 9 Nov 2013 06:33:00 +0000 (01:33 -0500)]
fixing double slash during absurlify

11 years agoMerge branch 'master' of github.com:spf13/hugo
spf13 [Sat, 9 Nov 2013 06:17:40 +0000 (01:17 -0500)]
Merge branch 'master' of github.com:spf13/hugo

11 years agoSome mobile and other fixes for docs
spf13 [Sat, 9 Nov 2013 06:16:34 +0000 (01:16 -0500)]
Some mobile and other fixes for docs

11 years agoMerge pull request #113 from oyvindsk/master
Steve Francia [Fri, 8 Nov 2013 00:33:06 +0000 (16:33 -0800)]
Merge pull request #113 from oyvindsk/master

minor documentation fix

11 years agominor documentation fix
Øyvind Skaar [Thu, 7 Nov 2013 18:47:42 +0000 (19:47 +0100)]
minor documentation fix

11 years agoAdding baseline
Noah Campbell [Tue, 5 Nov 2013 22:51:40 +0000 (22:51 +0000)]
Adding baseline

11 years agoRemove the hugo-nav function
Noah Campbell [Tue, 5 Nov 2013 22:28:06 +0000 (22:28 +0000)]
Remove the hugo-nav function

Remove the hugo-nav since it relied on a slow library.  The current
build reimplements the absurl functionality based on string replace.
Discovered that my prior implementation missed the requirement for
making absolute paths (/path) absolute with the host, whereas a relative
path is left untouched.  Updated the test cases to support this if this
is reimplemented.

11 years agoAdding RSS test case.
Noah Campbell [Tue, 5 Nov 2013 05:29:37 +0000 (05:29 +0000)]
Adding RSS test case.

Checks to make sure the xml document starts with <?xml.  Previously, the
html translate package would write additional details into the document
that caused it to fail.

11 years agoFix Test Name
Noah Campbell [Tue, 5 Nov 2013 04:32:13 +0000 (04:32 +0000)]
Fix Test Name

11 years agoBuffers instead of pipes
spf13 [Tue, 5 Nov 2013 05:28:08 +0000 (00:28 -0500)]
Buffers instead of pipes

11 years agoUpdated release notes
spf13 [Tue, 5 Nov 2013 05:24:04 +0000 (00:24 -0500)]
Updated release notes

11 years agoFix benchmark panic
Noah Campbell [Sat, 2 Nov 2013 03:36:11 +0000 (20:36 -0700)]
Fix benchmark panic

Need to initialize the Config with InitializeConfig().

11 years agoHugo updated to work with latest cobra
spf13 [Fri, 1 Nov 2013 22:43:41 +0000 (18:43 -0400)]
Hugo updated to work with latest cobra

11 years agoImprove rendering time
Noah Campbell [Fri, 1 Nov 2013 05:14:11 +0000 (22:14 -0700)]
Improve rendering time

50% speedup.  Fix #91

to run the benchmark:

go test -test.run=NONE -bench=".*" -test.benchmem=true ./transform/ > new.txt

to compare the results:

/usr/local/go/misc/benchcmp baseline.txt new.txt

Speedup and memory improvements

benchmark             old ns/op    new ns/op    delta
BenchmarkChain           101219        50453  -50.15%
BenchmarkTransform        51625        45531  -11.80%

benchmark            old allocs   new allocs    delta
BenchmarkChain              222          103  -53.60%
BenchmarkTransform          135          106  -21.48%

benchmark             old bytes    new bytes    delta
BenchmarkChain            23919        10998  -54.02%
BenchmarkTransform        11858        10665  -10.06%

11 years agoAdding benchmark for transformation module.
Noah Campbell [Wed, 30 Oct 2013 03:24:29 +0000 (20:24 -0700)]
Adding benchmark for transformation module.

11 years agoRemoving check for directory: static, layouts
Noah Campbell [Thu, 31 Oct 2013 22:46:55 +0000 (15:46 -0700)]
Removing check for directory: static, layouts

Removed these checks so a single file in content can generate a site.

For example, given a site with a content directory and an index.html,
running hugo -s dir will generate a project without any more input.

11 years agoSmall tweaks to Homepage and CSS
spf13 [Thu, 31 Oct 2013 13:51:42 +0000 (09:51 -0400)]
Small tweaks to Homepage and CSS

11 years agoAddition of an indexes section to the docs. Updated most of the existing index content.
spf13 [Thu, 31 Oct 2013 13:51:13 +0000 (09:51 -0400)]
Addition of an indexes section to the docs. Updated most of the existing index content.

11 years agoMore work on indexes
spf13 [Thu, 31 Oct 2013 13:49:29 +0000 (09:49 -0400)]
More work on indexes

11 years agoBetter mobile support on docs site
spf13 [Sat, 26 Oct 2013 06:28:25 +0000 (02:28 -0400)]
Better mobile support on docs site

11 years agoBig visual overhaul of the docs. Docs now using indexes for all menu generation.
spf13 [Sat, 26 Oct 2013 06:18:14 +0000 (02:18 -0400)]
Big visual overhaul of the docs. Docs now using indexes for all menu generation.

11 years agoFlipping around weight order. higher weight at the bottom. use negative to pin to...
spf13 [Sat, 26 Oct 2013 04:20:48 +0000 (00:20 -0400)]
Flipping around weight order. higher weight at the bottom. use negative to pin to top.

11 years agoDocs menu now powered by indexes.. converting some of the content to use this.
spf13 [Fri, 25 Oct 2013 22:42:46 +0000 (18:42 -0400)]
Docs menu now powered by indexes.. converting some of the content to use this.

11 years agoBig index overhaul. Now supporting ordering tokens by count or alphabetically. Also...
spf13 [Fri, 25 Oct 2013 22:40:55 +0000 (18:40 -0400)]
Big index overhaul. Now supporting ordering tokens by count or alphabetically. Also made full indexes available to the Site variable.

11 years agoAdding support for linkTitles
spf13 [Fri, 25 Oct 2013 22:37:53 +0000 (18:37 -0400)]
Adding support for linkTitles

11 years agoBetter error handling when rendering error found when in watch mode
spf13 [Fri, 25 Oct 2013 22:03:14 +0000 (18:03 -0400)]
Better error handling when rendering error found when in watch mode
In watch mode it should continue to watch for changes, in any other mode it should exit with a -1 error code so can check for success when scripting

11 years agoUpdate homepage
spf13 [Thu, 24 Oct 2013 23:49:17 +0000 (16:49 -0700)]
Update homepage

11 years agoMigrate docs to Bootstrap 3.0
spf13 [Thu, 24 Oct 2013 23:49:01 +0000 (16:49 -0700)]
Migrate docs to Bootstrap 3.0

11 years agoWatching doesn't built site 2x on write (ignores rename events). Also ignores tempora...
spf13 [Thu, 24 Oct 2013 23:45:24 +0000 (16:45 -0700)]
Watching doesn't built site 2x on write (ignores rename events). Also ignores temporary files written by editors.

11 years agoAdding support for ordering content in indexes by other than date (weighted indexes)
spf13 [Thu, 24 Oct 2013 22:24:47 +0000 (15:24 -0700)]
Adding support for ordering content in indexes by other than date (weighted indexes)