Age | Commit message (Collapse) | Author |
|
See #1646
|
|
and provide wrappers in Hugo.
|
|
Still need to add some missing headers and an AUTHORS file.
See #1646
|
|
|
|
|
|
|
|
|
|
This allows default pygments settings to be used, if none are explictly set per shortcode.
Fixes #1260
|
|
|
|
|
|
|
|
|
|
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.
|
|
Fixes #1488
|
|
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
|
|
|
|
|
|
|
|
|
|
* 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
|
|
Fixes #1258.
|
|
It IS a func.
|
|
To prevent potential package cycles in /helpers.
|
|
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
|
|
|
|
Enabling this prevents lowercasing of the path/url.
Fixes #557
|
|
If needed outside helpers, create an exported file path (FilePathAndExt?) and/or a url version.
|
|
This reverts commit de7dd70bbc1ac533f137e5f788e1b337d6ba6b8c.
Broke the code fence feat.
|
|
|
|
Can be used in site config or per page front matter:
```
[blackfriday]
smartypants = false
```
|
|
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.
|
|
Fixes #1266
|
|
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
|
|
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.
|
|
Fixes #1220
|
|
Can be used in site config of per page front matter:
```
[blackfriday]
latexDashes = false
```
Fixes #1231
|
|
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?
|
|
|
|
And default off.
Fixes #1180
|
|
|
|
And log error on invalid regexp.
See #1189
|
|
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
|
|
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
|
|
Fixed #1174
|
|
|
|
|
|
|
|
|
|
They are of no use outside the helpers package.
See #1160
|
|
|