big bang
This commit is contained in:
commit
9943fc2d55
45 changed files with 669 additions and 0 deletions
17
layouts/gallery/list.html
Normal file
17
layouts/gallery/list.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
{{ define "main" }}
|
||||
<h1>{{ .Page.Title }}</h1>
|
||||
{{ .Content }}
|
||||
<div class="image-grid">
|
||||
{{ range sort .Data.Pages "Date" "desc" }}
|
||||
{{ if and (isset .Params "image") .Params.image }}
|
||||
<a href="{{ .Permalink }}" title="{{ .Title }}">
|
||||
{{ $image := .Page.Resources.GetMatch .Params.image }}
|
||||
{{ with $image }}
|
||||
{{ $thumb := .Resize "400x" }}
|
||||
<img src="{{ $thumb.RelPermalink }}" alt="{{ .Title }}" class="img-responsive">
|
||||
{{end}}
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
15
layouts/gallery/single.html
Normal file
15
layouts/gallery/single.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
{{ define "main" }}
|
||||
<h1>{{ .Page.Title }}</h1>
|
||||
|
||||
{{ if and (isset .Params "image") .Params.image }}
|
||||
{{ $image := .Page.Resources.GetMatch .Params.image }}
|
||||
{{ with $image }}
|
||||
{{ $thumb := .Resize "1000x" }}
|
||||
{{ printf `<img src="%s" alt="%s" class="img-responsive gallery-image">` $thumb.RelPermalink .Title | safeHTML }}
|
||||
{{end}}
|
||||
{{ end }}
|
||||
|
||||
{{ .Content }}
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue