diff --git a/exampleSite/data/banner.yml b/exampleSite/data/banner.yml
new file mode 100644
index 0000000..517f0ab
--- /dev/null
+++ b/exampleSite/data/banner.yml
@@ -0,0 +1,12 @@
+####################### Banner #########################
+style: "style1 orient-left content-align-left image-position-right fullscreen onload-image-fade-in onload-content-fade-right"
+title : "Hugo Story"
+subtitle: |
+ Hugo Story released for free under the Creative Commons.
+content : |
+ This is a Banner element, and it's generally used as an introduction or opening statement. You can customize its appearance with a number of modifiers, as well as assign it an optional onload
or onscroll
transition modifier (details).
+button:
+ label : "Get Started"
+ link : "#first"
+image : "images/banner.jpg"
+
diff --git a/exampleSite/data/gallery.yml b/exampleSite/data/gallery.yml
new file mode 100644
index 0000000..815d0c9
--- /dev/null
+++ b/exampleSite/data/gallery.yml
@@ -0,0 +1,77 @@
+title: "Gallery"
+style: "style2 medium lightbox onscroll-fade-in"
+content: |
+ This is a Gallery element. It can behave as a lightbox (when given the lightbox
class), and you can customize its appearance with a number of modifiers, as well as assign it an optional onload
or onscroll
transition modifier (details).
+pictures:
+ - title: "Title"
+ content: "Lorem ipsum dolor amet, consectetur magna etiam elit. Etiam sed ultrices."
+ image: "images/gallery/fulls/01.jpg"
+ thumb: "images/gallery/thumbs/01.jpg"
+ button: "Details"
+
+ - title: "Title"
+ content: "Lorem ipsum dolor amet, consectetur magna etiam elit. Etiam sed ultrices."
+ image: "images/gallery/fulls/02.jpg"
+ thumb: "images/gallery/thumbs/02.jpg"
+ button: "Details"
+
+ - title: "Title"
+ content: "Lorem ipsum dolor amet, consectetur magna etiam elit. Etiam sed ultrices."
+ image: "images/gallery/fulls/03.jpg"
+ thumb: "images/gallery/thumbs/03.jpg"
+ button: "Details"
+
+ - title: "Title"
+ content: "Lorem ipsum dolor amet, consectetur magna etiam elit. Etiam sed ultrices."
+ image: "images/gallery/fulls/04.jpg"
+ thumb: "images/gallery/thumbs/04.jpg"
+ button: "Details"
+
+ - title: "Title"
+ content: "Lorem ipsum dolor amet, consectetur magna etiam elit. Etiam sed ultrices."
+ image: "images/gallery/fulls/05.jpg"
+ thumb: "images/gallery/thumbs/05.jpg"
+ button: "Details"
+
+ - title: "Title"
+ content: "Lorem ipsum dolor amet, consectetur magna etiam elit. Etiam sed ultrices."
+ image: "images/gallery/fulls/06.jpg"
+ thumb: "images/gallery/thumbs/06.jpg"
+ button: "Details"
+
+ - title: "Title"
+ content: "Lorem ipsum dolor amet, consectetur magna etiam elit. Etiam sed ultrices."
+ image: "images/gallery/fulls/07.jpg"
+ thumb: "images/gallery/thumbs/07.jpg"
+ button: "Details"
+
+ - title: "Title"
+ content: "Lorem ipsum dolor amet, consectetur magna etiam elit. Etiam sed ultrices."
+ image: "images/gallery/fulls/08.jpg"
+ thumb: "images/gallery/thumbs/08.jpg"
+ button: "Details"
+
+ - title: "Title"
+ content: "Lorem ipsum dolor amet, consectetur magna etiam elit. Etiam sed ultrices."
+ image: "images/gallery/fulls/09.jpg"
+ thumb: "images/gallery/thumbs/09.jpg"
+ button: "Details"
+
+ - title: "Title"
+ content: "Lorem ipsum dolor amet, consectetur magna etiam elit. Etiam sed ultrices."
+ image: "images/gallery/fulls/10.jpg"
+ thumb: "images/gallery/thumbs/10.jpg"
+ button: "Details"
+
+ - title: "Title"
+ content: "Lorem ipsum dolor amet, consectetur magna etiam elit. Etiam sed ultrices."
+ image: "images/gallery/fulls/11.jpg"
+ thumb: "images/gallery/thumbs/11.jpg"
+ button: "Details"
+
+ - title: "Title"
+ content: "Lorem ipsum dolor amet, consectetur magna etiam elit. Etiam sed ultrices."
+ image: "images/gallery/fulls/12.jpg"
+ thumb: "images/gallery/thumbs/12.jpg"
+ button: "Details"
+
diff --git a/exampleSite/data/items.yml b/exampleSite/data/items.yml
new file mode 100644
index 0000000..8408af3
--- /dev/null
+++ b/exampleSite/data/items.yml
@@ -0,0 +1,65 @@
+title : "Items"
+content: |
+ This is an Items element, and it's basically just a grid for organizing items of various types. You can customize its appearance with a number of modifiers, as well as assign it an optional onload
or onscroll
transition modifier (details).
+style: "style1 medium onscroll-fade-in"
+items:
+ # feature item loop
+ - name : "One"
+ content : "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi dui turpis, cursus eget orci amet aliquam congue semper. Etiam eget ultrices risus nec tempor elit."
+ style : "style2 major fa-gem"
+
+ # feature item loop
+ - name : "Two"
+ content : "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi dui turpis, cursus eget orci amet aliquam congue semper. Etiam eget ultrices risus nec tempor elit."
+ style : "solid style2 major fa-save"
+
+ # feature item loop
+ - name : "Three"
+ content : "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi dui turpis, cursus eget orci amet aliquam congue semper. Etiam eget ultrices risus nec tempor elit."
+ style : "solid style2 major fa-chart-bar"
+
+ # feature item loop
+ - name : "Four"
+ content : "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi dui turpis, cursus eget orci amet aliquam congue semper. Etiam eget ultrices risus nec tempor elit."
+ style : "solid style2 major fa-wifi"
+
+ # feature item loop
+ - name : "Five"
+ content : "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi dui turpis, cursus eget orci amet aliquam congue semper. Etiam eget ultrices risus nec tempor elit."
+ style : "solid style2 major fa-cog"
+
+ # feature item loop
+ - name : "Six"
+ content : "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi dui turpis, cursus eget orci amet aliquam congue semper. Etiam eget ultrices risus nec tempor elit."
+ style : "style2 major fa-paper-plane"
+
+ # feature item loop
+ - name : "Seven"
+ content : "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi dui turpis, cursus eget orci amet aliquam congue semper. Etiam eget ultrices risus nec tempor elit."
+ style : "solid style2 major fa-desktop"
+
+ # feature item loop
+ - name : "Eight"
+ content : "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi dui turpis, cursus eget orci amet aliquam congue semper. Etiam eget ultrices risus nec tempor elit."
+ style : "solid style2 major fa-sync-alt"
+
+ # feature item loop
+ - name : "Nine"
+ content : "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi dui turpis, cursus eget orci amet aliquam congue semper. Etiam eget ultrices risus nec tempor elit."
+ style : "solid style2 major fa-hashtag"
+
+ # feature item loop
+ - name : "Ten"
+ content : "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi dui turpis, cursus eget orci amet aliquam congue semper. Etiam eget ultrices risus nec tempor elit."
+ style : "solid style2 major fa-bolt"
+
+ # feature item loop
+ - name : "Eleven"
+ content : "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi dui turpis, cursus eget orci amet aliquam congue semper. Etiam eget ultrices risus nec tempor elit."
+ style : "style2 major fa-envelope"
+
+ # feature item loop
+ - name : "Twelve"
+ content : "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi dui turpis, cursus eget orci amet aliquam congue semper. Etiam eget ultrices risus nec tempor elit."
+ style : "solid style2 major fa-leaf"
+
\ No newline at end of file
diff --git a/exampleSite/data/spotlight1.yml b/exampleSite/data/spotlight1.yml
new file mode 100644
index 0000000..03058b6
--- /dev/null
+++ b/exampleSite/data/spotlight1.yml
@@ -0,0 +1,10 @@
+####################### Spotlight #########################
+style: "style1 orient-right content-align-left image-position-center onscroll-image-fade-in"
+id: "first"
+title : "Spotlight"
+content: |
+ This is a Spotlight element, and it's generally used – as its name implies – to spotlight a particular feature, subject, or pretty much whatever. You can customize its appearance with a number of modifiers, as well as assign it an optional onload
or onscroll
transition modifier (details).
+button:
+ label: "Learn More"
+ link: "#"
+image: "images/spotlight01.jpg"
diff --git a/exampleSite/data/spotlight2.yml b/exampleSite/data/spotlight2.yml
new file mode 100644
index 0000000..2a9435f
--- /dev/null
+++ b/exampleSite/data/spotlight2.yml
@@ -0,0 +1,9 @@
+####################### Spotlight #########################
+style: "style1 orient-left content-align-left image-position-center onscroll-image-fade-in"
+title : "Spotlight"
+content: |
+ This is also a Spotlight element, and it's here because this demo would look a bit empty with just one spotlight. Like all spotlights, you can customize its appearance with a number of modifiers, as well as assign it an optional onload
or onscroll
transition modifier (details).
+button:
+ label: "Learn More"
+ link: "#"
+image: "images/spotlight02.jpg"
diff --git a/exampleSite/data/spotlight3.yml b/exampleSite/data/spotlight3.yml
new file mode 100644
index 0000000..03fa5e5
--- /dev/null
+++ b/exampleSite/data/spotlight3.yml
@@ -0,0 +1,10 @@
+####################### Spotlight #########################
+style: "style1 orient-right content-align-left image-position-center onscroll-image-fade-in"
+id: "first"
+title : "Spotlight"
+content: |
+ And yes, this is another Spotlight element, and it's also here because I need to fill a bit of space. Naturally, like any other spotlight, you can customize its appearance with a number of modifiers, as well as assign it an optional onload
or onscroll
transition modifier (details).
+button:
+ label: "Learn More"
+ link: "#"
+image: "images/spotlight03.jpg"
diff --git a/layouts/index.html b/layouts/index.html
index b78f436..fd1edbf 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -15,12 +15,12 @@
- {{ partial "banner" . }}
- {{ partial "spotlight-01-left" . }}
- {{ partial "spotlight-02-right" . }}
- {{ partial "spotlight-03-left" . }}
- {{ partial "gallery" . }}
- {{ partial "items" . }}
+ {{ partial "banner" site.Data.banner }}
+ {{ partial "spotlight" site.Data.spotlight1 }}
+ {{ partial "spotlight" site.Data.spotlight2 }}
+ {{ partial "spotlight" site.Data.spotlight3 }}
+ {{ partial "gallery" site.Data.gallery }}
+ {{ partial "items" site.Data.items }}
{{ partial "elements" . }}
{{ partial "elements_reference" . }}
{{ partial "template/footer" . }}
diff --git a/layouts/partials/banner.html b/layouts/partials/banner.html
index edd0fa7..29acf12 100644
--- a/layouts/partials/banner.html
+++ b/layouts/partials/banner.html
@@ -1,14 +1,14 @@
-
-
-
- {{ with .Site.Title }}
{{.}}
{{end}}
- {{ with .Site.Params.subtitle }}
{{.}} released for free under the Creative Commons.
{{end}}
-
This is a Banner element, and it's generally used as an introduction or opening statement. You can customize its appearance with a number of modifiers, as well as assign it an optional onload
or onscroll
transition modifier (details).
-
-
-
- {{ with .Site.Params.logo }}
{{end}}
-
-
\ No newline at end of file
+
+
+
+ {{ with .title }}
{{ . }}
{{ end }}
+ {{ with .subtitle }}
{{ . | safeHTML }}
{{ end }}
+ {{ with .content }}
{{ . | safeHTML }}
{{ end }}
+ {{ with .button }}
{{ end }}
+
+ {{ with .image }}
+
+
{{end}}
+
\ No newline at end of file
diff --git a/layouts/partials/gallery.html b/layouts/partials/gallery.html
index 59933d7..11e72c9 100644
--- a/layouts/partials/gallery.html
+++ b/layouts/partials/gallery.html
@@ -1,156 +1,14 @@
-
-
-
-
Gallery
-
This is a Gallery element. It can behave as a lightbox (when given the lightbox
class), and you can customize its appearance with a number of modifiers, as well as assign it an optional onload
or onscroll
transition modifier (details).
-
+
+
+
+
{{ .title }}
+
{{ .content | safeHTML }}
+
-
-
-
-
\ No newline at end of file
+
+
+ {{ range .pictures }}
+ {{ partial "picture" . }}
+ {{ end }}
+
+
\ No newline at end of file
diff --git a/layouts/partials/item.html b/layouts/partials/item.html
new file mode 100644
index 0000000..f3c5568
--- /dev/null
+++ b/layouts/partials/item.html
@@ -0,0 +1,5 @@
+
+
+ {{ .name }}
+ {{ .content }}
+
diff --git a/layouts/partials/items.html b/layouts/partials/items.html
index 042392d..2c100d1 100644
--- a/layouts/partials/items.html
+++ b/layouts/partials/items.html
@@ -1,69 +1,12 @@
-
-
-
-
Items
-
This is an Items element, and it's basically just a grid for organizing items of various types. You can customize its appearance with a number of modifiers, as well as assign it an optional onload
or onscroll
transition modifier (details).
-
-
-
\ No newline at end of file
+
+
+
+ {{ with .title }}
{{ . }}
{{ end }}
+ {{ with .content }}
{{ . | safeHTML }}
{{ end }}
+
+ {{ range .items }}
+ {{ partial "item" . }}
+ {{ end }}
+
+
+
\ No newline at end of file
diff --git a/layouts/partials/picture.html b/layouts/partials/picture.html
new file mode 100644
index 0000000..835f66b
--- /dev/null
+++ b/layouts/partials/picture.html
@@ -0,0 +1,12 @@
+
+
+
+
+
+
{{ .title }}
+
{{ .content }}
+
+
+
diff --git a/layouts/partials/spotlight.html b/layouts/partials/spotlight.html
new file mode 100644
index 0000000..d171c7e
--- /dev/null
+++ b/layouts/partials/spotlight.html
@@ -0,0 +1,13 @@
+
+
+
+ {{ with .title }}
{{ . }}
{{ end }}
+ {{ with .content }}
{{ . | safeHTML }}
{{ end }}
+ {{ with .button }}
{{ end }}
+
+ {{ with .image }}
+
+
{{ end }}
+
\ No newline at end of file