forked from Git/hugo-story
adding template support for spotlights
This commit is contained in:
parent
51e38e582c
commit
6524098340
|
@ -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 <strong>Spotlight</strong> element, and it's generally used – as its name implies – to spotlight a particular feature, subject, or pretty much whatever. You can customize its <span class="demo-controls">appearance with a number of modifiers</span>, as well as assign it an optional <code>onload</code> or <code>onscroll</code> transition modifier (<a href="#reference-spotlight">details</a>).
|
||||
button:
|
||||
label: "Learn More"
|
||||
link: "#"
|
||||
image: "images/spotlight01.jpg"
|
|
@ -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 <strong>Spotlight</strong> element, and it's here because this demo would look a bit empty with just one spotlight. Like all spotlights, you can customize its <span class="demo-controls">appearance with a number of modifiers</span>, as well as assign it an optional <code>onload</code> or <code>onscroll</code> transition modifier (<a href="#reference-spotlight">details</a>).
|
||||
button:
|
||||
label: "Learn More"
|
||||
link: "#"
|
||||
image: "images/spotlight02.jpg"
|
|
@ -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 <strong>Spotlight</strong> element, and it's also here because I need to fill a bit of space. Naturally, like any other spotlight, you can customize its <span class="demo-controls">appearance with a number of modifiers</span>, as well as assign it an optional <code>onload</code> or <code>onscroll</code> transition modifier (<a href="#reference-spotlight">details</a>).
|
||||
button:
|
||||
label: "Learn More"
|
||||
link: "#"
|
||||
image: "images/spotlight03.jpg"
|
|
@ -16,9 +16,9 @@
|
|||
|
||||
<!-- Main -->
|
||||
{{ 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" . }}
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
<!-- Spotlight -->
|
||||
<section class="spotlight {{ .style }}"{{ with .id }} id="{{ . }}"{{ end }}>
|
||||
<div class="content">
|
||||
{{ with .title }}<h2>{{ . }}</h2>{{ end }}
|
||||
{{ with .content }}<p>{{ . | safeHTML }}</p>{{ end }}
|
||||
{{ with .button }}<ul class="actions stacked">
|
||||
<li><a href="{{ .link }}" class="button">{{ .label }}</a></li>
|
||||
</ul>{{ end }}
|
||||
</div>
|
||||
{{ with .image }}<div class="image">
|
||||
<img src="{{ . }}" alt="" />
|
||||
</div>{{ end }}
|
||||
</section>
|
Loading…
Reference in New Issue