-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from xoxys/add-anchor-copy
Add anchor copy
- Loading branch information
Showing
7 changed files
with
31 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
* FEATURE | ||
* Add option to move anchor links to the left site of headlines | ||
* add optional clipboard.js to copy anchor links on click |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,5 @@ | |
</div> | ||
</body> | ||
|
||
{{ partial "foot" . }} | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{{ if default true .Site.Params.GeekdocSearch }} | ||
{{ .Scratch.Set "geekdocSearchConfig" .Site.Params.GeekdocSearchConfig }} | ||
<!-- Remove after https://github.com/gohugoio/hugo/issues/6331 --> | ||
{{ $searchJSFile := printf "js/%s.search.js" .Language.Lang }} | ||
{{ $searchJS := resources.Get "js/search.js" | resources.ExecuteAsTemplate $searchJSFile . | resources.Minify }} | ||
<script defer src="{{ $searchJS.RelPermalink }}"></script> | ||
{{ end }} | ||
|
||
{{ if default true .Site.Params.GeekdocAnchorCopy }} | ||
<script src="{{ "js/clipboard.min.js" | relURL }}"></script> | ||
<script> | ||
var clipboard = new ClipboardJS('.clip'); | ||
</script> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.