mirror of
https://github.com/imfing/hextra.git
synced 2025-09-14 07:16:51 -04:00
chore(docs): rename exampleSite
to docs
and create examples
(#813)
* chore(docs): rename `exampleSite` to `docs` and create `examples` * chore(build): update build script to support new version format and source directories; add v0.10 to documentation menu
This commit is contained in:
6
docs/layouts/_partials/custom/head-end.html
Normal file
6
docs/layouts/_partials/custom/head-end.html
Normal file
@@ -0,0 +1,6 @@
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/quicklink@3.0.1/dist/quicklink.umd.js"></script>
|
||||
<script>
|
||||
window.addEventListener('load', () => {
|
||||
quicklink.listen();
|
||||
});
|
||||
</script>
|
11
docs/layouts/_shortcodes/new-feature.html
Normal file
11
docs/layouts/_shortcodes/new-feature.html
Normal file
@@ -0,0 +1,11 @@
|
||||
{{- $version := .Get "version" | default "" -}}
|
||||
{{- $icon := .Get "icon" | default "" -}}
|
||||
{{- $defaultLink := cond (eq $version "") "https://github.com/imfing/hextra/tree/main" (printf "https://github.com/imfing/hextra/releases/tag/%s" $version) -}}
|
||||
{{- $link := .Get "link" | default $defaultLink -}}
|
||||
{{- $content := cond (eq $version "") "New in main branch" (printf "New in %s" $version) -}}
|
||||
|
||||
<div style="margin-top: 1rem; display: inline-flex;">
|
||||
<a href="{{ $link }}" title="{{ $link | plainify }}" target="_blank">
|
||||
{{- partial "shortcodes/badge" (dict "content" $content "border" true "icon" $icon) -}}
|
||||
</a>
|
||||
</div>
|
Reference in New Issue
Block a user