MVP
This commit is contained in:
parent
6938e212ba
commit
62f343ef90
40 changed files with 2171 additions and 149 deletions
3
layouts/_default/_markup/render-image.html
Normal file
3
layouts/_default/_markup/render-image.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
{{ $img := .Page.Resources.GetMatch .Destination }}
|
||||
|
||||
{{ partial "components/image.html" (dict "img" $img "destination" .Destination "alt" .Text "caption" .Title) }}
|
|
@ -1,7 +1,60 @@
|
|||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
{{ range site.RegularPages }}
|
||||
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
|
||||
{{ .Summary }}
|
||||
<div class="scroller">
|
||||
<section>
|
||||
<div class="profile card">
|
||||
{{ if .Params.image }}
|
||||
<div class="image">
|
||||
{{ partial "components/image.html" .Params.image }}
|
||||
</div>
|
||||
{{ else }}
|
||||
<div class="image placeholder"></div>
|
||||
{{ end }}
|
||||
<div class="content">
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ .Content }}
|
||||
{{ if .Params.social }}
|
||||
<div class="social">
|
||||
{{ range .Params.social }}
|
||||
{{ partial "components/icon.html" . }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="scroll-indicator">
|
||||
<a href="#">
|
||||
<i class="icon-angle-down"></i>
|
||||
</a>
|
||||
</div>
|
||||
</section>
|
||||
{{ range where .Site.RegularPages "Section" "projects"}}
|
||||
<section>
|
||||
<div class="card">
|
||||
{{ if .Params.image }}
|
||||
<div class="image">
|
||||
{{ partial "components/image.html" .Params.image }}
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="content">
|
||||
<div class="tags">
|
||||
{{ range .Params.tags }}
|
||||
<a class="tag" href="{{ "tags" | absURL }}/{{ . | urlize }}/">{{ . }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
<h1><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h1>
|
||||
<div class="more">
|
||||
<a class="button filled" href="{{ .RelPermalink }}">
|
||||
View Case
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="scroll-indicator">
|
||||
<a href="#">
|
||||
<i class="icon-angle-down"></i>
|
||||
</a>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
|
@ -1,8 +1,11 @@
|
|||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
<article class="content">
|
||||
<div class="title">
|
||||
<h1>{{ .Title }}</h1>
|
||||
</div>
|
||||
{{ .Content }}
|
||||
{{ range .Pages }}
|
||||
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
|
||||
{{ .Summary }}
|
||||
{{ .Render "summary" }}
|
||||
{{ end }}
|
||||
</article>
|
||||
{{ end }}
|
||||
|
|
|
@ -1,10 +1,15 @@
|
|||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
<article class="content">
|
||||
<div class="title">
|
||||
<h1>{{ .Title }}</h1>
|
||||
</div>
|
||||
|
||||
{{ if .Date }}
|
||||
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
|
||||
{{ $dateHuman := .Date | time.Format ":date_long" }}
|
||||
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
|
||||
{{ end }}
|
||||
|
||||
{{ .Content }}
|
||||
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
|
||||
</article>
|
||||
{{ end }}
|
||||
|
|
4
layouts/_default/summary.html
Normal file
4
layouts/_default/summary.html
Normal file
|
@ -0,0 +1,4 @@
|
|||
<article>
|
||||
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
|
||||
{{ .Summary }}
|
||||
</article>
|
Loading…
Add table
Add a link
Reference in a new issue