Commit 2f624582 authored by CSA's avatar CSA
Browse files

moved menu and pillar to widgets/ folder

parent 303bf263
{{ $.Scratch.SetInMap "pillar" "childClass" "hvr-glow" }}
{{ $.Scratch.SetInMap "pillar" "items" (slice (dict "type" "menu" "name" "site") (dict "name" "column2" "type" "markdown" "content" "## [Tor](https://torproject.org) is amazing!")) }}
{{ partial "pillar.html" . }}
{{ partial "widgets/pillar.html" . }}
......@@ -3,4 +3,4 @@
{{/* Navigation menu */}}
{{ $.Scratch.Set "menu" (dict "name" "nav-main" "template" "h") }}
{{ partial "menu.html" . }}
{{ partial "widgets/menu.html" . }}
......@@ -4,7 +4,7 @@
Usage :
{{ $.Scratch.Set "menu" (dict "name" "nav-main" "template" "h" "class" "") }}
{{ partial "menu.html" . }}
{{ partial "widgets/menu.html" . }}
Menu parameters:
- name: menu file to look for in the data/vaytheme/ folder
......
......@@ -3,7 +3,7 @@
Usage :
{{ $.Scratch.SetInMap "pillar" "PARAM" "VALUE" }}
{{ $.Scratch.SetInMap "pillar" "items" (slice (dict "name" "column1" "type" "menu") (dict "name" "column2" "type" "markdown" "content" "[Tor](https://torproject.org) is amazing!") ) }}
{{ partial "pillar.html" $ }}
{{ partial "widgets/pillar.html" $ }}
Pillar parameters:
- childClass: adds a specific class to the generated column
......@@ -27,7 +27,7 @@
{{ if eq $i.type "menu" }}
<!-- Menu type needs name -->
{{ $.Scratch.Set "menu" (dict "name" $i.name "template" "v" "class" "") }}
{{ partial "menu.html" $ }}
{{ partial "widgets/menu.html" $ }}
{{ else if eq $i.type "template" }}
<!-- Template type needs name -->
{{ partial (printf "%s.html" ($i.name | strings.TrimSuffix ".html")) $ }}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment