Age | Commit message (Collapse) | Author |
|
Started to increase coverage in helpers package, now at 74.9% of statements.
In the process, also a few minor changes have been applied to content.go.
* Content.go has undergone a formatting refactor regarding comments
* Unused function TruncateWords has been removed
* RenderingContext's "mmark" has been changed to use MmarkRender
* Content_test.go added to cover content.go's functionality
|
|
|
|
|
|
|
|
|
|
|
|
Prior to this commit the root url with uglyurls enabled is "/.xml".
This commit relates to #175.
|
|
ala GitHub repository markdown for both md files and non-md files
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
|
|
themesDir can be used to change the default
path of the themes folder.
Fixes 1556
|
|
|
|
especially when the given `--source` path is a relative directory.
Also, when `--source` is specified, make WorkingDir an absolute path
from the very beginning, to be consistent with the case when `--source`
is not given. Otherwise, the function name helpers.AbsPathify(), which
prepends WorkingDir to a relative path, does not really make sense.
Fixes #1721
|
|
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
|