summaryrefslogtreecommitdiffstats
path: root/helpers
AgeCommit message (Collapse)Author
2015-12-10Add copyright header to that source files that don’t have one.Anthony Fok
See #1646
2015-12-08move some of the path helper utilities to aferoSteve Francia
and provide wrappers in Hugo.
2015-12-07Fix copyright headers in source filesBjørn Erik Pedersen
Still need to add some missing headers and an AUTHORS file. See #1646
2015-11-25Version bump to 0.16-DEVSteve Francia
2015-11-25version bump to v0.15v0.15Steve Francia
2015-11-23Change the license to Apache 2.0Steve Francia
2015-11-23Simplify ExtractRootPathsBjørn Erik Pedersen
2015-11-23Add PygmentsOptions optionAndrew Brampton
This allows default pygments settings to be used, if none are explictly set per shortcode. Fixes #1260
2015-11-23Move blackfriday site-wide config loading to NewBlackFriday()Marek Janda
2015-11-23Improve "watching for ..." loggingBjørn Erik Pedersen
2015-11-22Fix missing word in code comment (my own fault)Anthony Fok
2015-11-19Remove some superficial testsBjørn Erik Pedersen
2015-10-30Add smartDashes flag for BlackfridayAnthony Fok
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.
2015-10-18Preserve Unicode marks in MakePathBjørn Erik Pedersen
Fixes #1488
2015-10-15Insert code tag for server-side syntax highlightingNathan Youngman
Inserts a code tag into Pygments output with the language-info that is present when using client-side highlighting (useful for CSS hooks) ```html <code class="language-go" data-lang="go"> ``` closes #1490
2015-10-15Rename prettiyPath to prettifyPathBjørn Erik Pedersen
2015-10-14Unexport internal path helperBjørn Erik Pedersen
2015-10-12Apply project wide go fmtBjørn Erik Pedersen
2015-10-07Fix comment for NormalizeHugoFlagsAlexander Morozov
2015-10-07WordCount and Summary support CJK Languagecoderzh
* add global `hasCJKLanguage` flag, if true, turn on auto-detecting CJKLanguage * add `isCJKLanguage` frontmatter to force specify whether is CJKLanguage or not * For .Summary: If isCJKLanguage is true, use the runes as basis for truncation, else keep as today. * For WordCount: If isCJKLanguage is true, use the runes as basis for calculation, else keep as today. * Unexport RuneCount Fixes #1377
2015-10-05Add GitHub style code fence support to mmarkAndrew Brampton
Fixes #1258.
2015-10-02Rename NormalizeHugoFlagsFunc to NormalizeHugoFlagsBjørn Erik Pedersen
It IS a func.
2015-09-14Move isThemeVsHugoVersionMismatch to /commandsBjørn Erik Pedersen
To prevent potential package cycles in /helpers.
2015-09-13Add helpers.NormalizeHugoFlagsFunc() to handle flag name changesAnthony Fok
It currently handles --baseUrl to --baseURL, and --uglyUrls to --uglyURLs. Special thanks to Eric Paris (@eparis) for writing the "normalized name" support in Cobra, and for showing us how it is used in Kubernetes. See Issue #959
2015-09-12WordCount Summary support UTF-8 stringcoderzh
2015-09-01Add config option "disablePathToLower"chrongzhang
Enabling this prevents lowercasing of the path/url. Fixes #557
2015-08-26Unexport FileAndExtBjørn Erik Pedersen
If needed outside helpers, create an exported file path (FilePathAndExt?) and/or a url version.
2015-08-07Revert "Fix some Go code doc issues"Bjørn Erik Pedersen
This reverts commit de7dd70bbc1ac533f137e5f788e1b337d6ba6b8c. Broke the code fence feat.
2015-08-06Fix some Go code doc issuesBjørn Erik Pedersen
2015-08-04Add option to disable Blackfriday SmartypantsAnthony Fok
Can be used in site config or per page front matter: ``` [blackfriday] smartypants = false ```
2015-07-29Asciidoc[tor]: use --no-header-footer optionBaptiste Mathus
This simplifies the retrieval of the HTML (no more need to extract the part within body) and also removes the unwanted "Last Updated" part in the article.
2015-07-12Add RuneCount to PageBjørn Erik Pedersen
Fixes #1266
2015-07-08Add support for GitHub-flavoured markdown code fences for highlightingAndrew Brampton
This commit adds a new PygmentsCodeFences config option (default false), which if true will allow GitHub style backtick code fences around code, which will then be rendered by Pygments. For example: ``` language your code ``` can be used instead of {{< highlight language >}}your code {{< /highlight >}}. Fixes #362
2015-07-08If no language is provided to Pygments, then try and guess itAndrew Brampton
Previously if no language was specified, then illegal args would be passed to pygments, for example `pygments -l -fhtml`, which would result in pygments printing an error.
2015-06-28Add config option for Blackfriday HTML_HREF_TARGET_BLANKBjørn Erik Pedersen
Fixes #1220
2015-06-28Add option to disable Blackfriday LaTeX style dashesBjørn Erik Pedersen
Can be used in site config of per page front matter: ``` [blackfriday] latexDashes = false ``` Fixes #1231
2015-06-25Refactor theme path helper functions.Jonathan Anderson
Reduce duplication (`x + FilePathSeparator + y` a few lines away from `filepath.Join(x, y)`) and add a `GetThemeDir()` function to get the current theme's directory. Also add a comment complaining about the `GetThemesDirPath()` function, which doesn't seem to do what its name would suggest. This might be a candidate for deprecation?
2015-06-16Remove superfluous returnBjørn Erik Pedersen
2015-06-16Make removal of accents in taxonomy and section paths optionalBjørn Erik Pedersen
And default off. Fixes #1180
2015-06-15Add Blackfriday definition lists extension supportVincent Batoufflet
2015-06-03Add some tests for IgnoreFilesbep
And log error on invalid regexp. See #1189
2015-05-31Remove accents in URLsbep
So the taxonomy `Gérard Depardieu` gives paths on the form `gerard-depardieu`. Unfortunately this introduces two imports from the `golang.org/`, but Unicode-normalization isn't something we'd want to write from scratch. See https://blog.golang.org/normalization See #1180
2015-05-28Support `Fish and Chips` sectionbep
Section names are also used as the title of the list pages, but naming section folders as `Fish and Chips` and similar didn't work very well. This commit fixes that. This commit also changes the title casing of the section titles. Some may argue that this is a breaking change, but the old behaviour was also pretty broken, even for languages that use title capitalizations, as it didn't follow any particular style guide, `fish and chips` became `Fish And Chips` etc. Now it just turns the first letter into upper case, so `Fish and Chips` will be left as `Fish and Chips`. People wanting the good old behaviour can use the `title` template func. Fixes #1176
2015-05-27Never remove trailing slash in RelPermalinkbep
Fixed #1174
2015-05-26Make deprecated warning for this release more alertbep
2015-05-26Hyphenate DEV versionbep
2015-05-25bumping master version to v0.15-DEVspf13
2015-05-25Bump version to Hugo v0.14.0v0.14spf13
2015-05-25Unexport filepath/path bridge typesbep
They are of no use outside the helpers package. See #1160
2015-05-25Pass RenderingContext by reference in Mmarkbep