mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-05-31 14:04:14 +00:00
docs: move exampleSite to docs #1003
This commit is contained in:
parent
df03dac58f
commit
db9ca5d295
827 changed files with 656 additions and 652 deletions
11
docs/layouts/shortcodes/multiconfig.html
Normal file
11
docs/layouts/shortcodes/multiconfig.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
{{- $_hugo_config := `{ "version": 1 }` }}
|
||||
{{- partial "shortcodes/multiconfig.html" (dict
|
||||
"page" .Page
|
||||
"content" .Inner
|
||||
"config" (.Get "config")
|
||||
"dataKey" (.Get "dataKey")
|
||||
"file" (.Get "file")
|
||||
"fm" (.Get "fm")
|
||||
"skipHeader" (.Get "skipHeader")
|
||||
"section" (.Get "section")
|
||||
) }}
|
8
docs/layouts/shortcodes/pages.html
Normal file
8
docs/layouts/shortcodes/pages.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
{{- partial "shortcodes/pages.html" (dict
|
||||
"page" .Page
|
||||
"hidevisible" (.Get "hidevisible")
|
||||
"showhidden" (.Get "showhidden")
|
||||
"showtitle" (.Get "showtitle")
|
||||
"showdivider" (.Get "showdivider")
|
||||
"reverse" (.Get "reverse")
|
||||
) }}
|
5
docs/layouts/shortcodes/piratify.html
Normal file
5
docs/layouts/shortcodes/piratify.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
{{- partial "shortcodes/piratify.html" (dict
|
||||
"page" .Page
|
||||
"pagefield" "Content"
|
||||
"writenotice" (.Get "writenotice" | default (.Get 0))
|
||||
) }}
|
6
docs/layouts/shortcodes/replaceRE.html
Normal file
6
docs/layouts/shortcodes/replaceRE.html
Normal file
|
@ -0,0 +1,6 @@
|
|||
{{- partial "shortcodes/replaceRE.html" (dict
|
||||
"page" .Page
|
||||
"pattern" (.Get "pattern" | default (.Get 0))
|
||||
"replacement" (.Get "replacement" | default (.Get 1))
|
||||
"input" .Inner
|
||||
) }}
|
5
docs/layouts/shortcodes/taxonomy.html
Normal file
5
docs/layouts/shortcodes/taxonomy.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
{{- partial "shortcodes/taxonomy.html" (dict
|
||||
"page" .Page
|
||||
"taxonomy" (.Get "taxonomy" | default (.Get 0))
|
||||
"headingstyle" (.Get "headingstyle" | default (.Get 1))
|
||||
) }}
|
5
docs/layouts/shortcodes/term.html
Normal file
5
docs/layouts/shortcodes/term.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
{{- partial "shortcodes/term.html" (dict
|
||||
"page" .Page
|
||||
"taxonomy" (.Get "term" | default (.Get 0))
|
||||
"headingstyle" (.Get "headingstyle" | default (.Get 1))
|
||||
) }}
|
45
docs/layouts/shortcodes/variantgenerator.html
Normal file
45
docs/layouts/shortcodes/variantgenerator.html
Normal file
|
@ -0,0 +1,45 @@
|
|||
{{ partial "shortcodes/notice.html" (dict
|
||||
"page" .Page
|
||||
"style" "note"
|
||||
"content" "The <code>CODE-theme</code> parameter can be changed in the generator but the change will not be reflected dynamically in the page preview."
|
||||
)}}
|
||||
{{ partial "shortcodes/button.html" (dict
|
||||
"page" .Page
|
||||
"href" "javascript:window.variants&&variants.getStylesheet();this.blur();"
|
||||
"style" "secondary"
|
||||
"icon" "download"
|
||||
"content" "Download variant"
|
||||
)}}
|
||||
{{ partial "shortcodes/button.html" (dict
|
||||
"page" .Page
|
||||
"href" "javascript:window.variants&&variants.resetVariant();this.blur();"
|
||||
"style" "warning"
|
||||
"icon" "trash"
|
||||
"content" "Reset variant"
|
||||
)}}
|
||||
<div id="R-vargenerator" class="mermaid zoomable" style="background-color: var(--INTERNAL-MAIN-TEXT-color);">
|
||||
Graph
|
||||
</div>
|
||||
{{ partial "shortcodes/button.html" (dict
|
||||
"page" .Page
|
||||
"href" "javascript:window.variants&&variants.getStylesheet();this.blur();"
|
||||
"style" "secondary"
|
||||
"icon" "download"
|
||||
"content" "Download variant"
|
||||
)}}
|
||||
{{ partial "shortcodes/button.html" (dict
|
||||
"page" .Page
|
||||
"href" "javascript:window.variants&&variants.resetVariant();this.blur();"
|
||||
"style" "warning"
|
||||
"icon" "trash"
|
||||
"content" "Reset variant"
|
||||
)}}
|
||||
<script>
|
||||
window.variants && variants.generator( '#R-vargenerator' );
|
||||
</script>
|
||||
{{- /* the variant generator also requires Mermaid; so as there is no Mermaid
|
||||
shortcode involved here to create the graph, we have to take care
|
||||
to load it our self; the quickest way to do this is, to set the
|
||||
Mermaid dependency as well */}}
|
||||
{{- .Page.Store.Set "hasMermaid" true }}
|
||||
{{- .Page.Store.Set "hasVariantGenerator" true }}
|
Loading…
Add table
Add a link
Reference in a new issue