Commit Graph
5591 Commits
Author SHA1 Message Date
Bjørn Erik Pedersen 41857d036d utils: Use local logger 2017-02-21 09:41:56 +01:00
Ryan Watters d04a24578e Add tree.txt 2017-02-21 02:22:06 -06:00
Ryan Watters 03d0a338a7 Update functions content footer and added new funcs for menus 2017-02-21 01:55:58 -06:00
Bjørn Erik Pedersen 75d855c086 hugolib: Add check for p.Markup == "org"
To be improved.
2017-02-21 08:49:04 +01:00
Chase Adams 4aec77ff51 all: Add org-mode support
Fixes #1483 
See #936
2017-02-21 08:46:03 +01:00
Chase Adams 86e8dd62f0 all: Add org-mode support
Fixes #1483 
See #936
2017-02-21 08:46:03 +01:00
Ryan Watters d2f2d9a3f0 Update temp command section and reverted to old favicon 2017-02-21 01:09:56 -06:00
Ryan Watters e34a358e39 Add first part of command section 2017-02-20 23:57:11 -06:00
Ryan Watters 1645c50123 Add review badge on incomplete pages 2017-02-20 17:15:05 -06:00
Bjørn Erik Pedersen a3af4fe46e hugolib: Finish menu vs section content pages
This commit also fixes the default menu sort when the weight is 0.

Closes #2974
2017-02-20 22:20:02 +01:00
Abdo Roig-Maranges 2a6b26a7a5 hugolib: Improve menu generation for section pages with content
When using the lazy blogger setting to automatically generate menu
entries from section pages, we now recognize section pages that have
content, and use the weight and linktitle configured in the frontmatter.

This way, we can use the lazy blogger automatic generation, and
influence menu order and translations, directly from the frontmatter.

Updates #2974
2017-02-20 22:20:02 +01:00
Ryan Watters 782004bafa Update with aerobatic article on password protected sites 2017-02-20 03:19:58 -06:00
Ryan Watters 807b2a9cb9 Remove redundant press and articles page 2017-02-20 03:17:00 -06:00
Ryan Watters f3e48405a4 Change all overviews back to section titles on section list pages 2017-02-20 03:07:18 -06:00
Ryan Watters 170e9616b2 Finish though in create-your-own-theme admonishment 2017-02-20 02:52:47 -06:00
Ryan Watters 49f468e6a9 Update more content management files 2017-02-20 02:47:49 -06:00
Ryan Watters 370d66869f Add list-icon to overview/section list pages 2017-02-20 02:39:10 -06:00
Ryan Watters 5860bf1bcf Revise order of variables pages in site navigation 2017-02-20 02:28:32 -06:00
Ryan Watters c184c68540 Add more content to getting started pages 2017-02-20 02:13:48 -06:00
Bjørn Erik Pedersen fe9fd0acf4 hugolib: Cache the value of Page's RelPermalink 2017-02-20 09:05:35 +01:00
Ryan Watters 840c71bec6 Add all variables and params pages 2017-02-20 02:00:16 -06:00
bogem 7e0fa13faa Get rid of some viper.Get* calls
Enforce usage of PathSpec

Fixes #3060
Updates #2728
2017-02-20 08:10:13 +01:00
Ryan Watters b4cd9e6338 Finish up last of hosting-and-deployment transfer from old site 2017-02-20 00:48:36 -06:00
Ryan Watters 0a76c785b6 Add finished Quick Start 2017-02-20 00:10:41 -06:00
Ryan Watters 9acdc1bb4a Remove breaking relrefs in quickstart 2017-02-19 19:05:24 -06:00
Ryan Watters fb1911e071 Consolidate all install pages into single page 2017-02-19 18:57:53 -06:00
Ryan Watters d40ebc681f Add mac install guide 2017-02-19 17:40:32 -06:00
Ryan Watters 3483642a9b Remove wercker yml validation ref - 404 2017-02-19 16:54:03 -06:00
Ryan Watters 16513c9a62 Add wercker tutorial as example for reviewers 2017-02-19 16:45:08 -06:00
Bjørn Erik Pedersen 3d4e99ed50 config: Remove unused var 2017-02-19 20:08:36 +01:00
Abdó Roig-Maranges 02b120d1bd hugolib: Discard current language based on .Lang()
Otherwise we fail to skip the current language in translations
for paginated pages.

Fixes #2972
2017-02-19 15:00:18 +01:00
Bjørn Erik Pedersen 6809ea1e7c hugolib: Fix .Site.LastChange
This commit makes sure that the `.Site.LastChange` is fetched from the latest page modification date.

Previously, this value was fetched from the last page in the default page sort, which may not be the last by date
if weight is set.

Fixes #2909
Closes #2910
2017-02-19 13:48:21 +01:00
Bjørn Erik Pedersen a0b3d9db16 hugolib: Add temporary date parse test
To debug the irregular Windows test failure.

See #3059
2017-02-19 13:19:15 +01:00
Bjørn Erik Pedersen 2ea242d5fe hugolib: Minor Go vet fix 2017-02-19 10:33:28 +01:00
Anton Staaf 07e8588b0d hugolib: Fix regression of .Truncated evaluation in manual summaries
This fixes the behavior of .Truncated that was introduced with commit
bef496b97e which was later broken.  The
desired behavior is that .Truncated would evaluate to false when there
was nothing after the user defined summary marker.

This also adds a simple unit test to ensure that this feature isn't
broken again.  The check for content after the user defined summary
marker is done on the raw content instead of the working copy because
some of the markup renderers add elements after the marker, making it
difficult to determine if there is actually any content.

The behavior (evaluating to false when there is no content, just
summary) is also now documented.
2017-02-19 10:11:49 +01:00
Anton Staaf 99fbc75e7a hugolib: Fix regression of .Truncated evaluation in manual summaries
This fixes the behavior of .Truncated that was introduced with commit
bef496b97e which was later broken.  The
desired behavior is that .Truncated would evaluate to false when there
was nothing after the user defined summary marker.

This also adds a simple unit test to ensure that this feature isn't
broken again.  The check for content after the user defined summary
marker is done on the raw content instead of the working copy because
some of the markup renderers add elements after the marker, making it
difficult to determine if there is actually any content.

The behavior (evaluating to false when there is no content, just
summary) is also now documented.
2017-02-19 10:11:49 +01:00
Ryan Watters ec3c19975d Fix broken links in features page 2017-02-19 02:38:25 -06:00
Ryan Watters 2b06eb88c0 Fix odd syntax highlighting in cross references doc 2017-02-19 02:28:23 -06:00
Ryan Watters ce58bedeb8 Fix local files shortcode 2017-02-19 02:23:37 -06:00
Ryan Watters 1890155a0a Add shortcode from live site for readfile example in local files template 2017-02-19 02:17:46 -06:00
Ryan Watters b8fba275b3 Add shortcode from live site for readfile example in local files template 2017-02-19 02:15:42 -06:00
Bjørn Erik Pedersen 9416fdd334 hugolib: Add missing page kind to allKinds 2017-02-19 09:15:30 +01:00
Ryan Watters ed70c14a2b Add shortcode from live site for readfile example in local files template 2017-02-19 02:12:33 -06:00
Ryan Watters 4e159ed50c Fix featherlight to avoid icon images 2017-02-19 01:57:49 -06:00
Ryan Watters 3bedf1e23d Add featherlight for body copy images 2017-02-19 01:51:29 -06:00
John Feminella 6791d75c7d hugolib: Enhance .Param to permit arbitrarily nested parameter references
The Param method currently assumes that its argument is a single,
distinct, top-level key to look up in the Params map. This enhances the
Param method; it will now also attempt to see if the key can be
interpreted as a nested chain of keys to look up in Params.

Fixes #2598
2017-02-19 08:50:08 +01:00
John Feminella b2e3748a4e hugolib: Enhance .Param to permit arbitrarily nested parameter references
The Param method currently assumes that its argument is a single,
distinct, top-level key to look up in the Params map. This enhances the
Param method; it will now also attempt to see if the key can be
interpreted as a nested chain of keys to look up in Params.

Fixes #2598
2017-02-19 08:50:08 +01:00
Ryan Watters 44e00b623c Fix broken images originally used in how to contribute tutorial 2017-02-19 01:38:28 -06:00
Ryan Watters e028978d8c Update broken links 2017-02-19 01:32:39 -06:00
Ryan Watters 55aae645d6 Fix shortcode language in local file templates that was breaking Netlify build 2017-02-19 01:26:47 -06:00