brevno-suite/hugo
9 years agoversion bump to v0.15 v0.15
Steve Francia [Wed, 25 Nov 2015 14:33:53 +0000 (09:33 -0500)]
version bump to v0.15

9 years agoUpdate license file in the docs/website to apache
Steve Francia [Wed, 25 Nov 2015 13:33:38 +0000 (08:33 -0500)]
Update license file in the docs/website to apache

9 years agoUpdate release notes with additional new features
Cameron Moore [Wed, 25 Nov 2015 00:30:05 +0000 (18:30 -0600)]
Update release notes with additional new features

9 years agoUpdate and reorganize 0.15 release notes
Steve Francia [Tue, 24 Nov 2015 21:51:01 +0000 (16:51 -0500)]
Update and reorganize 0.15 release notes

9 years agoMake the release note about renderToDisk more consise
Bjørn Erik Pedersen [Tue, 24 Nov 2015 20:13:02 +0000 (21:13 +0100)]
Make the release note about renderToDisk more consise

See #1611

9 years agoUpdate release notes
digitalcraftsman [Tue, 24 Nov 2015 19:45:54 +0000 (20:45 +0100)]
Update release notes

9 years agoAdd IsNamedParams property in shortcodes
digitalcraftsman [Mon, 23 Nov 2015 18:32:03 +0000 (19:32 +0100)]
Add IsNamedParams property in shortcodes

9 years agoAdd documentation for built-in shortcodes
digitalcraftsman [Fri, 20 Nov 2015 19:31:57 +0000 (20:31 +0100)]
Add documentation for built-in shortcodes

Fixes #1576

9 years agoAdd shortcode for tweets
digitalcraftsman [Fri, 20 Nov 2015 18:44:05 +0000 (19:44 +0100)]
Add shortcode for tweets

9 years agoAdd shortcode for github gists
digitalcraftsman [Fri, 20 Nov 2015 17:38:56 +0000 (18:38 +0100)]
Add shortcode for github gists

9 years agoAdd shortcode for vimeo
digitalcraftsman [Fri, 20 Nov 2015 17:33:46 +0000 (18:33 +0100)]
Add shortcode for vimeo

9 years agoAdd shortcode for youtube
digitalcraftsman [Fri, 20 Nov 2015 17:31:37 +0000 (18:31 +0100)]
Add shortcode for youtube

9 years agoAdd shortcode for speakerdeck
digitalcraftsman [Fri, 20 Nov 2015 17:13:43 +0000 (18:13 +0100)]
Add shortcode for speakerdeck

9 years agoUpdate shortcode docs with .IsNamedParams
Cameron Moore [Tue, 24 Nov 2015 05:02:33 +0000 (23:02 -0600)]
Update shortcode docs with .IsNamedParams

There are some minor cleanups included here as well.

Fixes #1607

9 years agoChange the license to Apache 2.0
Steve Francia [Tue, 24 Nov 2015 03:16:36 +0000 (22:16 -0500)]
Change the license to Apache 2.0

9 years agoSimplify ExtractRootPaths
Bjørn Erik Pedersen [Mon, 23 Nov 2015 21:35:54 +0000 (22:35 +0100)]
Simplify ExtractRootPaths

9 years agoAdd PygmentsOptions option
Andrew Brampton [Thu, 9 Jul 2015 01:51:54 +0000 (18:51 -0700)]
Add PygmentsOptions option

This allows default pygments settings to be used, if none are explictly set per shortcode.

Fixes #1260

9 years agoPermalink on Node and Page should be of string
Kato Kazuyoshi [Sat, 17 Oct 2015 03:45:49 +0000 (20:45 -0700)]
Permalink on Node and Page should be of string

This change fixes #1384.

9 years agoMove blackfriday site-wide config loading to NewBlackFriday()
Marek Janda [Tue, 3 Nov 2015 19:09:34 +0000 (20:09 +0100)]
Move blackfriday site-wide config loading to NewBlackFriday()

9 years agoAdd shortcode IsNamedParams property
Cameron Moore [Sat, 21 Nov 2015 00:59:54 +0000 (18:59 -0600)]
Add shortcode IsNamedParams property

It would be helpful to know whether a shortcode was called with positional or
named parameters.  This commit adds a boolean `IsNamedParams` property to the
`ShortcodeWithPage` struct.

9 years agoRestructure the gen commands
Bjørn Erik Pedersen [Mon, 23 Nov 2015 15:51:12 +0000 (16:51 +0100)]
Restructure the gen commands

Fixes #1603

9 years agoImprove "watching for ..." logging
Bjørn Erik Pedersen [Mon, 23 Nov 2015 15:32:06 +0000 (16:32 +0100)]
Improve "watching for ..." logging

9 years agoAdd commands/genman.go to autogenerate man pages
Anthony Fok [Sun, 22 Nov 2015 16:19:54 +0000 (09:19 -0700)]
Add commands/genman.go to autogenerate man pages

Fixes #1369

9 years agoFix missing word in code comment (my own fault)
Anthony Fok [Sun, 22 Nov 2015 16:40:22 +0000 (09:40 -0700)]
Fix missing word in code comment (my own fault)

9 years agoAvoid multiple locks for shortcode template
Bjørn Erik Pedersen [Sat, 21 Nov 2015 22:29:58 +0000 (23:29 +0100)]
Avoid multiple locks for shortcode template

Fixes #1600

9 years agoImprove RW-locking of template in shortcode handling
Bjørn Erik Pedersen [Sat, 21 Nov 2015 20:57:26 +0000 (21:57 +0100)]
Improve RW-locking of template in shortcode handling

See #1599

9 years agoFix recently introduced new data race in the shortcode handling
Bjørn Erik Pedersen [Sat, 21 Nov 2015 19:03:18 +0000 (20:03 +0100)]
Fix recently introduced new data race in the shortcode handling

Fixes #1599

9 years agoCopyedit long help message in commands/server.go
Anthony Fok [Sat, 21 Nov 2015 13:31:10 +0000 (06:31 -0700)]
Copyedit long help message in commands/server.go

9 years agoAdd RSSLink to SiteInfo
Cameron Moore [Wed, 11 Nov 2015 03:31:52 +0000 (21:31 -0600)]
Add RSSLink to SiteInfo

9 years agoApply absURL on social tag urls
Marek Janda [Mon, 2 Nov 2015 19:49:15 +0000 (20:49 +0100)]
Apply absURL on social tag urls

9 years agoReturn error if shortcode template.Tree is nil
Cameron Moore [Sun, 15 Nov 2015 19:53:12 +0000 (13:53 -0600)]
Return error if shortcode template.Tree is nil

If a shortcode template fails to compile, the template will be non-nil, but
template.Tree will be nil which caused a panic.

9 years agodocs: Change "Github" to "GitHub"
Anthony Fok [Fri, 20 Nov 2015 21:24:22 +0000 (14:24 -0700)]
docs: Change "Github" to "GitHub"

9 years agodocs: Optimize a few large showcase thumbnail PNGs
Anthony Fok [Fri, 20 Nov 2015 21:02:07 +0000 (14:02 -0700)]
docs: Optimize a few large showcase thumbnail PNGs

using pngquant and OptiPNG.  Result:

    arresteddevops-tn.png   154734 bytes → 47184 bytes
    maximeguitare-tn.png     95571 bytes → 24183 bytes
    ridingbytes-tn.png      262222 bytes → 66491 bytes

And a small one to an even smaller one too:

    goin5minutes-tn.png      26220 bytes →  9297 bytes

9 years agoAdd Go in 5 minutes to the showcases
digitalcraftsman [Fri, 20 Nov 2015 19:53:05 +0000 (20:53 +0100)]
Add Go in 5 minutes to the showcases

9 years agoDocs: fix typo in template function section
digitalcraftsman [Fri, 20 Nov 2015 19:41:16 +0000 (20:41 +0100)]
Docs: fix typo in template function section

9 years agoAdd SafeJS template function
Cameron Moore [Sun, 15 Nov 2015 20:30:57 +0000 (14:30 -0600)]
Add SafeJS template function

This commit adds a SafeJS template function.  Tests and documentation are
included.

Fixes #1579

9 years agoAdd increased time.Time support to the 0.15 release notes
Bjørn Erik Pedersen [Fri, 20 Nov 2015 18:18:38 +0000 (19:18 +0100)]
Add increased time.Time support to the 0.15 release notes

9 years agoUpdate Travis 1.4.2 > 1.4.3
Bjørn Erik Pedersen [Fri, 20 Nov 2015 18:16:13 +0000 (19:16 +0100)]
Update Travis 1.4.2 > 1.4.3

9 years agofix broken image in showcase
Steve Francia [Fri, 20 Nov 2015 15:26:21 +0000 (10:26 -0500)]
fix broken image in showcase

9 years agofixed documentation link
kmonsoor [Thu, 19 Nov 2015 23:24:41 +0000 (05:24 +0600)]
fixed documentation link

9 years agoAdd Arrested DevOps site to Showcase
Matt Stratton [Fri, 20 Nov 2015 07:49:09 +0000 (01:49 -0600)]
Add Arrested DevOps site to Showcase

9 years agoHugo server watch by default
Steve Francia [Fri, 20 Nov 2015 15:13:03 +0000 (10:13 -0500)]
Hugo server watch by default

9 years agoAdd time.Time support in ge, gt, le, lt
Bjørn Erik Pedersen [Fri, 20 Nov 2015 10:53:25 +0000 (11:53 +0100)]
Add time.Time support in ge, gt, le, lt

Fixes #1593

9 years agoRemove some superficial tests
Bjørn Erik Pedersen [Thu, 19 Nov 2015 19:27:02 +0000 (20:27 +0100)]
Remove some superficial tests

9 years agoRevert "Disable render-to-memory on Windows"
Bjørn Erik Pedersen [Thu, 19 Nov 2015 18:48:40 +0000 (19:48 +0100)]
Revert "Disable render-to-memory on Windows"

This reverts commit 91e0c2b1feb2a7a1b074784a41249139b2fae975.

This should now work.

9 years agoDisable render-to-memory on Windows
Bjørn Erik Pedersen [Wed, 18 Nov 2015 22:10:56 +0000 (23:10 +0100)]
Disable render-to-memory on Windows

See #1586

9 years agoDo not rebuild on extra Spotlight filesystem events
Bjørn Erik Pedersen [Wed, 18 Nov 2015 21:59:32 +0000 (22:59 +0100)]
Do not rebuild on extra Spotlight filesystem events

Write and rename operations are often followed by CHMOD.
There may be valid use cases for rebuilding the site on CHMOD,
but that will require more complex logic than this simple conditional.

On OS X this seems to be related to Spotlight, see:
https://github.com/go-fsnotify/fsnotify/issues/15

A workaround is to put your site(s) on the Spotlight exception list,
but that may be a little mysterious for most end users.

So, for now, we skip reload on CHMOD.

This small commit will be a 100% improvement for most OS X-users.

Fixes #1587

9 years agoMake replaceShortcodeTokens rewrite the input slice
Bjørn Erik Pedersen [Tue, 20 Oct 2015 18:35:12 +0000 (20:35 +0200)]
Make replaceShortcodeTokens rewrite the input slice

Currently a `[]byte` copy is returned. In most cases this is the safe thing to do, but we should just modify/grow the slice as needed.

This is faster and consumes less memory:

```
benchmark                             old ns/op     new ns/op     delta
BenchmarkReplaceShortcodeTokens-4     7350          4419          -39.88%

benchmark                             old allocs     new allocs     delta
BenchmarkReplaceShortcodeTokens-4     5              1              -80.00%

benchmark                             old bytes     new bytes     delta
BenchmarkReplaceShortcodeTokens-4     4816          1152          -76.08%
```

This commit is aso a small spring cleaning of duplicated code in the different `PageConvert` methods.

Fixes #1516

9 years agoAdd latest review from Smashing Magazine to Press page
Anthony Fok [Tue, 17 Nov 2015 05:54:15 +0000 (22:54 -0700)]
Add latest review from Smashing Magazine to Press page

9 years agoHugo server renders and serves from memory by default (30%+ improvement)
spf13 [Tue, 17 Nov 2015 02:55:18 +0000 (21:55 -0500)]
Hugo server renders and serves from memory by default (30%+ improvement)

9 years agopermit the notimes flag on hugo server
spf13 [Tue, 17 Nov 2015 02:54:21 +0000 (21:54 -0500)]
permit the notimes flag on hugo server

9 years agoNo double slash when destination set to '/'
spf13 [Tue, 17 Nov 2015 02:53:05 +0000 (21:53 -0500)]
No double slash when destination set to '/'

9 years agoHandle sync (file copy) errors better)
spf13 [Tue, 17 Nov 2015 02:52:37 +0000 (21:52 -0500)]
Handle sync (file copy) errors better)

9 years agoFix trivial typos in code
Anthony Fok [Mon, 16 Nov 2015 14:15:17 +0000 (07:15 -0700)]
Fix trivial typos in code

9 years agoCopyedit docs/content/tools/index.md
Anthony Fok [Mon, 16 Nov 2015 13:59:14 +0000 (06:59 -0700)]
Copyedit docs/content/tools/index.md

9 years agoAdd @wicast’s "Hugo is cool" post to Press page
Anthony Fok [Mon, 16 Nov 2015 13:51:57 +0000 (06:51 -0700)]
Add @wicast’s "Hugo is cool" post to Press page

9 years agoAdd docs/data/titles.toml to set title "Site Showcase"
Anthony Fok [Mon, 16 Nov 2015 13:48:20 +0000 (06:48 -0700)]
Add docs/data/titles.toml to set title "Site Showcase"

Idea from https://discuss.gohugo.io/t/how-to-name-list-templates/949

9 years agoAdd ReadText project to Site Showcase
tuxy [Mon, 16 Nov 2015 08:51:12 +0000 (01:51 -0700)]
Add ReadText project to Site Showcase

9 years agoAdding LosslessLife blog to showcase.
Richard Sumilang [Sun, 15 Nov 2015 19:37:31 +0000 (11:37 -0800)]
Adding LosslessLife blog to showcase.

9 years agoEmphasize that commit message titles should start with a capital letter
Bjørn Erik Pedersen [Sun, 15 Nov 2015 16:49:30 +0000 (17:49 +0100)]
Emphasize that commit message titles should start with a capital letter

9 years agore-simplify SafeHTML function
spf13 [Sun, 15 Nov 2015 16:10:35 +0000 (11:10 -0500)]
re-simplify SafeHTML function

9 years agoDocs: add hugofy to tools
digitalcraftsman [Wed, 11 Nov 2015 12:56:13 +0000 (13:56 +0100)]
Docs: add hugofy to tools

9 years agosimplify rssuri logic
spf13 [Thu, 12 Nov 2015 16:09:20 +0000 (11:09 -0500)]
simplify rssuri logic

9 years agorewrite safeHTML function
spf13 [Thu, 12 Nov 2015 15:53:21 +0000 (10:53 -0500)]
rewrite safeHTML function

9 years agoRevert "Update Go release version to 1.5.2 in Travis config"
Bjørn Erik Pedersen [Sat, 14 Nov 2015 15:59:45 +0000 (16:59 +0100)]
Revert "Update Go release version to 1.5.2 in Travis config"

This reverts commit 30ebf6b82354fc1eb7a15aa0ff610b24a690724c.

There is no Go 1.5.2... Where did I get that info!?

9 years agoGet rid of allocation in the BenchmarkReplaceShortcodeTokens itself
Bjørn Erik Pedersen [Fri, 13 Nov 2015 20:21:03 +0000 (21:21 +0100)]
Get rid of allocation in the BenchmarkReplaceShortcodeTokens itself

So we can see the real numbers.

See #1516

9 years agoDocs: fix typo in tools section
digitalcraftsman [Fri, 13 Nov 2015 12:13:27 +0000 (13:13 +0100)]
Docs: fix typo in tools section

9 years agoDocs: add hugofy to tools
digitalcraftsman [Wed, 11 Nov 2015 12:56:13 +0000 (13:56 +0100)]
Docs: add hugofy to tools

9 years agoUpdate release notes
digitalcraftsman [Wed, 11 Nov 2015 12:40:12 +0000 (13:40 +0100)]
Update release notes

Note the new built-in Google Analytics template.

9 years agoAdding article about moving to hugo
Coders Digest [Wed, 11 Nov 2015 06:25:06 +0000 (14:25 +0800)]
Adding article about moving to hugo

9 years agoImprove the server usage output
spf13 [Thu, 12 Nov 2015 15:23:41 +0000 (10:23 -0500)]
Improve the server usage output

9 years agoPrint parse errors from Viper
Bjørn Erik Pedersen [Wed, 11 Nov 2015 21:47:09 +0000 (22:47 +0100)]
Print parse errors from Viper

9 years agodoc: Add new article by Fabiano Frizzo to Press
Fabiano Frizzo [Tue, 10 Nov 2015 00:08:40 +0000 (22:08 -0200)]
doc: Add new article by Fabiano Frizzo to Press

9 years agoUpdate Go release version to 1.5.2 in Travis config
Bjørn Erik Pedersen [Tue, 10 Nov 2015 20:41:47 +0000 (21:41 +0100)]
Update Go release version to 1.5.2 in Travis config

9 years agoFix GroupByParam to return original param string
Tatsushi Demachi [Tue, 10 Nov 2015 13:02:45 +0000 (22:02 +0900)]
Fix GroupByParam to return original param string

Page.GroupByParam function internally uses Page.GetParam to get a
parameter value for a key of a page group but now Page.GetParam returns
a lowercase character string every time. It has no need to using
lowercase character string as a group key value and it confuse a
function user.

This fixes it to keep and return an original parameter string as a group
key value.

Fix #1564

9 years agoAdd support for dynamic reloading of config file when watching
spf13 [Tue, 10 Nov 2015 04:31:52 +0000 (23:31 -0500)]
Add support for dynamic reloading of config file when watching

9 years agoAdd hugo theme site to the sidebar
spf13 [Tue, 10 Nov 2015 04:23:39 +0000 (23:23 -0500)]
Add hugo theme site to the sidebar

Also reorder the menu a bit and clarify a couple items.

9 years agoUse Identifier as last sort resort for default menu sort
Bjørn Erik Pedersen [Mon, 9 Nov 2015 20:01:36 +0000 (21:01 +0100)]
Use Identifier as last sort resort for default menu sort

Fixes #1562

9 years agoSmall Doc Changes
Billy Burrows [Thu, 5 Nov 2015 10:52:53 +0000 (10:52 +0000)]
Small Doc Changes

9 years agoCosmetic change in README to trigger new build
Bjørn Erik Pedersen [Sat, 7 Nov 2015 00:39:10 +0000 (01:39 +0100)]
Cosmetic change in README to trigger new build

9 years agoDocs: fix broken links
digitalcraftsman [Wed, 4 Nov 2015 23:33:03 +0000 (00:33 +0100)]
Docs: fix broken links

9 years agoAdd internal Google Analytics template
digitalcraftsman [Mon, 19 Oct 2015 11:31:03 +0000 (13:31 +0200)]
Add internal Google Analytics template

This commits also adds the GoogleAnalytics
variable to insert the tracking code.

Fixes #1424.

9 years agoImprovements to Automated Deployments tutorial
Arjen Schwarz [Sun, 1 Nov 2015 06:57:57 +0000 (17:57 +1100)]
Improvements to Automated Deployments tutorial

Prevent some frequently occurring problems

* Ensure version number is between quotes
* Ensure git and SSH are installed for the deployment step
* Focus extra attention on the wercker.yml verification site

9 years agoExport Page.Layout
Bjørn Erik Pedersen [Mon, 2 Nov 2015 16:24:50 +0000 (17:24 +0100)]
Export Page.Layout

And at the same time rename and unexport the badly named `Layout()` func. That method is not very usable outside the package.

Fixes #1539

9 years agodoc: Add new article by Thomas Peham to Press
Anthony Fok [Sat, 31 Oct 2015 16:54:55 +0000 (10:54 -0600)]
doc: Add new article by Thomas Peham to Press

9 years agoUpdate link to S3 deploy instructions
Timothy Hopper [Wed, 28 Oct 2015 14:52:28 +0000 (10:52 -0400)]
Update link to S3 deploy instructions

Previous link goes to page with warning "This article is outdated"

9 years agoFix doc render on Firefox
Fabiano Frizzo [Wed, 28 Oct 2015 01:14:36 +0000 (23:14 -0200)]
Fix doc render on Firefox

Fix #1523

9 years agoFixed link to Google Prettify
Sergey Mudrik [Tue, 27 Oct 2015 21:36:00 +0000 (23:36 +0200)]
Fixed link to Google Prettify

Google Prettify has been moved to github

9 years agoadd bugtrackers.io to hugo docs showcases
Robert Aistleitner [Tue, 27 Oct 2015 08:23:57 +0000 (09:23 +0100)]
add bugtrackers.io to hugo docs showcases

9 years agoFix spell mistake in variables.md
Arun Sori [Sat, 24 Oct 2015 14:28:55 +0000 (19:58 +0530)]
Fix spell mistake in variables.md

9 years agoadd ninjaducks.in to showcase
Shivanshu Agrawal [Sat, 24 Oct 2015 08:47:22 +0000 (14:17 +0530)]
add ninjaducks.in to showcase

9 years agoDisable directory listing for Hugo file server
Arun Sori [Fri, 23 Oct 2015 16:21:37 +0000 (21:51 +0530)]
Disable directory listing for Hugo file server

Fix #1400

9 years agoRemove dots from snippets.
Shai Efrati [Fri, 23 Oct 2015 11:04:12 +0000 (14:04 +0300)]
Remove dots from snippets.

See confusing issue #1513.

9 years agoDocs: fix typo under tools section
digitalcraftsman [Mon, 19 Oct 2015 11:50:48 +0000 (13:50 +0200)]
Docs: fix typo under tools section

9 years agoFix missing "]" in README.md in commit 2242712
Anthony Fok [Fri, 30 Oct 2015 20:12:01 +0000 (14:12 -0600)]
Fix missing "]" in README.md in commit 2242712

9 years agoAdd CircleCI status badge to README.md
Anthony Fok [Fri, 30 Oct 2015 20:08:21 +0000 (14:08 -0600)]
Add CircleCI status badge to README.md

Also, following the example of title="wercker status",
add "title" attribute to the other status badges
in order to show tooltips.

9 years agoAdd smartDashes flag for Blackfriday
Anthony Fok [Wed, 5 Aug 2015 22:39:29 +0000 (16:39 -0600)]
Add smartDashes flag for Blackfriday

To allow the end users to disable any form of smart dashes
(LaTeX-style or not) while keeping the rest of Blackfriday
SmartyPants features.

Depends on https://github.com/russross/blackfriday/pull/190
"Add HTML_SMARTYPANTS_DASHES for toggling smart dashes"
to be accepted by Blackfriday developers.

9 years agoRemove anchor from fork link in README
Bjørn Erik Pedersen [Wed, 21 Oct 2015 08:48:16 +0000 (10:48 +0200)]
Remove anchor from fork link in README

9 years agoTurn all README headlines into imperative mode
Bjørn Erik Pedersen [Tue, 20 Oct 2015 21:16:21 +0000 (23:16 +0200)]
Turn all README headlines into imperative mode

This also matches the commit guidelines.

9 years agoTrim down 'Adding Compile Information to Hugo' in README
Bjørn Erik Pedersen [Tue, 20 Oct 2015 19:25:27 +0000 (21:25 +0200)]
Trim down 'Adding Compile Information to Hugo' in README