diff options
author | Curtis Timson <curt@live.co.uk> | 2018-02-10 22:19:06 +0300 |
---|---|---|
committer | Curtis Timson <curt@live.co.uk> | 2018-02-10 22:19:06 +0300 |
commit | cbaa60186cdc4008a27345d0099b53dd80e38529 (patch) | |
tree | ffef538d9b6b62b4185ef9eb2ab96906fcd77599 /layouts/partials | |
parent | ccdb81789759b1a83dcb81de92bc532585525306 (diff) |
:sparkles: Add logic to show portfolio items on home
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/footer/index.html | 2 | ||||
-rw-r--r-- | layouts/partials/portfolio.html | 10 |
2 files changed, 7 insertions, 5 deletions
diff --git a/layouts/partials/footer/index.html b/layouts/partials/footer/index.html index 9c8827d..b197450 100644 --- a/layouts/partials/footer/index.html +++ b/layouts/partials/footer/index.html @@ -66,7 +66,7 @@ </li> <li> <h3>Mail</h3> - <p><a href="{{ .Site.Params.Contact.email }}">{{ .Site.Params.Contact.email }}</a></p> + <p><a href="mailto:{{ .Site.Params.Contact.email }}">{{ .Site.Params.Contact.email }}</a></p> </li> <li> <h3>Phone</h3> diff --git a/layouts/partials/portfolio.html b/layouts/partials/portfolio.html index 393e5b5..e23932c 100644 --- a/layouts/partials/portfolio.html +++ b/layouts/partials/portfolio.html @@ -4,18 +4,20 @@ <h2>My Portfolio</h2> </header> <div class="row"> + {{ range where .Data.Pages "Type" "portfolio" }} <div class="4u 12u(mobile)"> <section class="box"> - <a href="#" class="image featured"><img src="images/pic02.jpg" alt="" /></a> + <a href="#" class="image featured"><img src="{{ .Params.thumbnail }}" alt="" /></a> <header> - <h3>Ipsum feugiat et dolor</h3> + <h3>{{ .Title }}</h3> </header> - <p>Lorem ipsum dolor sit amet sit veroeros sed amet blandit consequat veroeros lorem blandit adipiscing et feugiat phasellus tempus dolore ipsum lorem dolore.</p> + <p>{{ .Description }}</p> <footer> - <a href="#" class="button alt">Find out more</a> + <a href="{{ .Permalink }}" class="button alt">Find out more</a> </footer> </section> </div> + {{ end }} <div class="4u 12u(mobile)"> <section class="box"> <a href="#" class="image featured"><img src="images/pic03.jpg" alt="" /></a> |