brevno-suite/hugo
9 years agoBump min_version to 0.15 for `hugo new theme`
Anthony Fok [Tue, 1 Dec 2015 17:25:56 +0000 (10:25 -0700)]
Bump min_version to 0.15 for `hugo new theme`

9 years agoMake noTimes command flag work
Tatsushi Demachi [Tue, 1 Dec 2015 16:48:52 +0000 (01:48 +0900)]
Make noTimes command flag work

Hugo command provides "noTimes" flag but it doesn't affect synced files
timestamp regardless of whether the flag is specified or not.

This fixes it by adding a flag check and overwriting configuration if it
is specified.

Fix #1583

9 years agoCopy static dir files without theme's static dir
Tatsushi Demachi [Tue, 1 Dec 2015 14:53:27 +0000 (23:53 +0900)]
Copy static dir files without theme's static dir

Hugo command doesn't copy site's "static" directory files to "public"
directory if a specified theme doesn't have "static" directory because
theme's "static" directory checking always returns an error.

This fixes it by just showing a warning message about theme's "static"
directory absence and not skipping following processes.

Fix #1655

9 years agoFix typo in "Creating a New Theme"
Takeru Naito [Tue, 1 Dec 2015 07:07:43 +0000 (16:07 +0900)]
Fix typo in "Creating a New Theme"

the the skeleton's ->
the theme skeleton's

9 years agoAdd Draft page variable to docs
David Oliver [Sat, 28 Nov 2015 19:26:01 +0000 (20:26 +0100)]
Add Draft page variable to docs

Also tweaks language used in page params sentence.

9 years agoUse .Site.Pages in the documentation examples instead of .Site.Recent
Gustav Näslund [Mon, 30 Nov 2015 19:52:30 +0000 (20:52 +0100)]
Use .Site.Pages in the documentation examples instead of .Site.Recent

9 years agoAdd Camunda blog and docs showcases
Valentin Vago [Mon, 30 Nov 2015 09:41:19 +0000 (10:41 +0100)]
Add Camunda blog and docs showcases

9 years agoChange plainIdAnchors to plainIDAnchors in docs
Anthony Fok [Mon, 30 Nov 2015 07:19:04 +0000 (00:19 -0700)]
Change plainIdAnchors to plainIDAnchors in docs

Also add a note saying that these blackfriday flags are
very case-sensitive as of Hugo v0.15.

Thanks to @ryanclarke for noticing the change in behaviour.

See also spf13/hugo@5838420

9 years agoCopyedit the shortcodes documentation some more
Anthony Fok [Mon, 30 Nov 2015 06:23:25 +0000 (23:23 -0700)]
Copyedit the shortcodes documentation some more

9 years agoDocs: improve shortcodes page
digitalcraftsman [Tue, 24 Nov 2015 21:22:58 +0000 (22:22 +0100)]
Docs: improve shortcodes page

See #1613

9 years agoRemove an erroneous "$" prompt in quickstart guide
Anthony Fok [Mon, 30 Nov 2015 04:43:49 +0000 (21:43 -0700)]
Remove an erroneous "$" prompt in quickstart guide

9 years agoAdded the command in the documentation.
Doug Horner [Mon, 30 Nov 2015 02:40:16 +0000 (21:40 -0500)]
Added the command in the documentation.

It was confusing that the command was not in step 5, while it is in step 6.

9 years agoSupport setting target directory in `hugo gen man`
Anthony Fok [Sat, 28 Nov 2015 14:32:02 +0000 (07:32 -0700)]
Support setting target directory in `hugo gen man`

Fixes #1627

9 years agoUpdate for version 0.16
Michael Henderson [Sat, 28 Nov 2015 04:44:10 +0000 (22:44 -0600)]
Update for version 0.16

Updated output of commands. Removed unneeded flags such as
--watch. Didn't resist the temptation to reword some parts.

9 years agoDocs: remove note about config changes and manual livereload
digitalcraftsman [Fri, 27 Nov 2015 14:33:16 +0000 (15:33 +0100)]
Docs: remove note about config changes and manual livereload

9 years agoDocs: improve usage.md
digitalcraftsman [Fri, 27 Nov 2015 14:30:16 +0000 (15:30 +0100)]
Docs: improve usage.md

9 years agoDocs: improve quickstart guide
digitalcraftsman [Fri, 27 Nov 2015 14:21:22 +0000 (15:21 +0100)]
Docs: improve quickstart guide

Fixes #1553

9 years agoUpdate press.md
ChristophFloat [Tue, 24 Nov 2015 11:10:36 +0000 (12:10 +0100)]
Update press.md

Include my Blogpost about using Hugo together with git to automatically
generate the site when you push it into your Repo using a Git Hook (German).

9 years agoAdd note in doc about Jekyll import
Bjørn Erik Pedersen [Wed, 25 Nov 2015 22:18:20 +0000 (23:18 +0100)]
Add note in doc about Jekyll import

9 years agoRegenerate the commands section of doc
Bjørn Erik Pedersen [Wed, 25 Nov 2015 22:11:16 +0000 (23:11 +0100)]
Regenerate the commands section of doc

9 years agoVersion bump to 0.16-DEV
Steve Francia [Wed, 25 Nov 2015 14:49:03 +0000 (09:49 -0500)]
Version bump to 0.16-DEV

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