-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from excitoon/enabled-turning-contact-form-off
Extensibility improvements: custom sections, reordering and disabling.
- Loading branch information
Showing
12 changed files
with
142 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{{ print "<!-- " .block.id " -->" | safeHTML }} | ||
<section id="{{.block.id}}" class="main special"> | ||
<div class="container"> | ||
{{ if eq .params.backgroundpersection true }} | ||
<span class="image fit primary"><img src="images/{{ with .block.picture }}{{ . }}{{ end }}" alt="" /></span> | ||
{{ end }} | ||
<div class="content"> | ||
<header class="major"> | ||
<h2>{{ with .block.title }}{{ . | markdownify }}{{ end }}</h2> | ||
</header> | ||
<p>{{ with .block.description }}{{ . | markdownify }}{{ end }}</p> | ||
<form method="post" action="//formspree.io/{{ with .params.email }}{{.}}{{ end }}"> | ||
<div class="row uniform"> | ||
<div class="6u 12u$(xsmall)"><input type="text" name="name" id="name" placeholder="{{ with .block.form.name }}{{ . }}{{ end }}" /></div> | ||
<div class="6u$ 12u$(xsmall)"><input type="email" name="email" id="email" placeholder="{{ with .block.form.email }}{{ . }}{{ end }}" /></div> | ||
<div class="12u$"><textarea name="message" id="message" placeholder="{{ with .block.form.message }}{{ . }}{{ end }}" rows="4"></textarea></div> | ||
<div class="12u$"> | ||
<ul class="actions"> | ||
<li><input type="submit" value="{{ with .block.form.buttontext }}{{ . }}{{ end }}" class="special" /></li> | ||
</ul> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
{{ if .next }} | ||
<a href="#{{.next.id}}" class="goto-next scrolly">{{ with .block.buttontext }}{{ . | markdownify }}{{ end }}</a> | ||
{{ end }} | ||
</div> | ||
</section> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
{{ "<!-- Hero -->" | safeHTML}} | ||
{{ "<!-- header -->" | safeHTML}} | ||
<section id="header"> | ||
<header class="major 1"> | ||
<h1>{{ with .Site.Params.hero.title }} {{ . | markdownify }} {{ end }}</h1> | ||
<p>{{ with .Site.Params.hero.description }} {{ . | markdownify }} {{ end }}</p> | ||
<h1>{{ with $.block.title }} {{ . | markdownify }} {{ end }}</h1> | ||
<p>{{ with $.block.description }} {{ . | markdownify }} {{ end }}</p> | ||
</header> | ||
<div class="container"> | ||
<ul class="actions"> | ||
<li><a href="#about" class="button special scrolly">{{ with .Site.Params.hero.buttontext }} {{ . | markdownify }} {{ end }}</a></li> | ||
{{ if .next }} | ||
<li><a href="#{{.next.id}}" class="button special scrolly">{{ with .block.buttontext }}{{ . | markdownify }}{{ end }}</a></li> | ||
{{ end }} | ||
</ul> | ||
</div> | ||
</section> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{{ print "<!-- " .block.id " -->" | safeHTML }} | ||
<section id="{{.block.id}}" class="main special"> | ||
<div class="container"> | ||
{{ if eq .params.backgroundpersection true }} | ||
<span class="image fit primary"><img src="images/{{ with .block.picture }}{{ . }}{{ end }}" alt="" /></span> | ||
{{ end }} | ||
<div class="content"> | ||
<header class="major"> | ||
<h2>{{ with .block.title}}{{ . | markdownify }}{{ end }}</h2> | ||
</header> | ||
<p>{{ with .block.description}}{{ . | markdownify }}{{ end }}</p> | ||
<ul class="icons-grid"> | ||
{{ range .block.item }} | ||
<li> | ||
<span class="icon major {{ .icon }}"></span> | ||
<h3>{{ .title }}</h3> | ||
</li> | ||
{{ end }} | ||
</ul> | ||
</div> | ||
{{ if .next }} | ||
<a href="#{{.next.id}}" class="goto-next scrolly">{{ with .block.buttontext }}{{ . | markdownify }}{{ end }}</a> | ||
{{ end }} | ||
</div> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{{ "<!-- Scripts -->" | safeHTML }} | ||
<script src="{{ .Site.BaseURL }}js/jquery.min.js"></script> | ||
<script src="{{ .Site.BaseURL }}js/jquery.scrollex.min.js"></script> | ||
<script src="{{ .Site.BaseURL }}js/jquery.scrolly.min.js"></script> | ||
<script src="{{ .Site.BaseURL }}js/skel.min.js"></script> | ||
<script src="{{ .Site.BaseURL }}js/util.js"></script> | ||
{{ "<!-- [if lte IE 8 ]]> <script src=" | safeHTML }}"{{ .Site.BaseURL }}{{ "js/ie/respond.min.js\"></script><![endif] -->" | safeHTML }} | ||
<script src="{{ .Site.BaseURL }}js/main.js"></script> | ||
{{ template "_internal/google_analytics.html" . }} | ||
<script src="{{ .Site.BaseURL }}js/jquery.min.js"></script> | ||
<script src="{{ .Site.BaseURL }}js/jquery.scrollex.min.js"></script> | ||
<script src="{{ .Site.BaseURL }}js/jquery.scrolly.min.js"></script> | ||
<script src="{{ .Site.BaseURL }}js/skel.min.js"></script> | ||
<script src="{{ .Site.BaseURL }}js/util.js"></script> | ||
{{ "<!-- [if lte IE 8 ]]> <script src=" | safeHTML }}"{{ .Site.BaseURL }}{{ "js/ie/respond.min.js\"></script><![endif] -->" | safeHTML }} | ||
<script src="{{ .Site.BaseURL }}js/main.js"></script> | ||
{{ template "_internal/google_analytics.html" . }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{{ print "<!-- " .block.id " -->" | safeHTML }} | ||
<section id="{{.block.id}}" class="main special"> | ||
<div class="container"> | ||
{{ if eq .params.backgroundpersection true }} | ||
<span class="image fit primary"><img src="images/{{ with .block.picture }}{{ . }}{{ end }}" alt="" /></span> | ||
{{ end }} | ||
<div class="content"> | ||
<header class="major"> | ||
<h2>{{ with .block.title }}{{ . | markdownify }}{{ end }}</h2> | ||
</header> | ||
<p>{{ with .block.description }}{{ . | markdownify }}{{ end }}</p> | ||
</div> | ||
{{ if .next }} | ||
<a href="#{{.next.id}}" class="goto-next scrolly">{{ with .block.buttontext }}{{ . | markdownify }}{{ end }}</a> | ||
{{ end }} | ||
</div> | ||
</section> |