refactors layouts for portfolio and sidebar
This commit is contained in:
parent
f90b3ebbaf
commit
435636d745
2 changed files with 6 additions and 9 deletions
|
@ -15,9 +15,6 @@
|
|||
</p>
|
||||
<div class="project__featured-image">
|
||||
<img src="{{ .Params.screenshot }}" alt="{{ .Title }}">
|
||||
<div class="ribbon">
|
||||
<div class="text">New</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="project__summary">
|
||||
{{ .Content }}
|
||||
|
@ -32,11 +29,11 @@
|
|||
<hr class="divider">
|
||||
{{ range (where .Data.Pages "Params.featured" "!=" "true").ByDate.Reverse }}
|
||||
<div class="row">
|
||||
<a 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="img-responsive project-image" src="{{ .Params.screenshot }}" alt="{{ .Title }}">
|
||||
</a>
|
||||
<div class="desc col-md-8 col-sm-8 col-xs-12">
|
||||
<img class="project__image img-responsive" src="{{ .Params.screenshot }}" alt="{{ .Title }}">
|
||||
</div>
|
||||
<div class="col-md-8 col-sm-8 col-xs-12">
|
||||
<span class="project__title">
|
||||
<a href="{{ .Params.link }}" target="_blank">{{ .Title }}</a>
|
||||
</span>
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
{{ with .Site.Params.authorimage }}
|
||||
{{ $strippedSlash := ($.Site.Params.authorimage | replaceRE "^(/)+(.*)" "$2") }}
|
||||
{{ $authorImage := (printf "%s%s" $.Site.BaseURL $strippedSlash) }}
|
||||
<p>
|
||||
<div>
|
||||
<img src="{{$authorImage}}" alt="Author Image" class="img--circle img--headshot element--center">
|
||||
</p>
|
||||
</div>
|
||||
{{ end }}
|
||||
<p class="site__description">
|
||||
{{ with .Site.Params.description }} {{.}} {{ else }} Your site's description {{end}}
|
||||
|
|
Loading…
Reference in a new issue