adds portfolio guide in README and revises template

This commit is contained in:
Huy Tran 2018-07-29 21:40:33 +10:00
parent f7bff4341c
commit 3da7f143a0
2 changed files with 88 additions and 27 deletions

View file

@ -1,4 +1,4 @@
<span class="section__title">{{ .Title }}</span>
<span class="section__title">{{ .Title | default "Projects" }}</span>
<div class="portfolio__content">
{{ range first 1 (where .Data.Pages "Params.featured" "==" "true") }}
<section class="portfolio__featured-project">
@ -29,7 +29,7 @@
<hr class="divider">
{{ range (where .Data.Pages "Params.featured" "!=" "true").ByDate.Reverse }}
<div class="row">
<div class="col-md-4 col-sm-4 col-xs-12" href="{{ .Params.link }}"
<div class="col-md-4 col-sm-4 col-xs-12" href="{{ .Params.link }}"
target="_blank">
<img class="project__image img-responsive" src="{{ .Params.screenshot }}" alt="{{ .Title }}">
</div>