{{ . }}
{{ end }} + {{ with .content }}{{ . | safeHTML }}
{{ end }} + {{ with .button }}-
+
- {{ .label }} +
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 278846d..e795826 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -16,9 +16,9 @@
{{ partial "banner" site.Data.banner }}
- {{ partial "spotlight-01-left" . }}
- {{ partial "spotlight-02-right" . }}
- {{ partial "spotlight-03-left" . }}
+ {{ partial "spotlight" site.Data.spotlight1 }}
+ {{ partial "spotlight" site.Data.spotlight2 }}
+ {{ partial "spotlight" site.Data.spotlight3 }}
{{ partial "gallery" . }}
{{ partial "items" . }}
{{ partial "elements" . }}
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 @@
+
+{{ . | safeHTML }}
{{ end }} + {{ with .button }}