mv theme to local control
This commit is contained in:
parent
3ac32ec7e9
commit
c980366d63
189 changed files with 22593 additions and 0 deletions
23
themes/aether/layouts/_default/li.html
Normal file
23
themes/aether/layouts/_default/li.html
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<a ontouchstart="cardPressed.call(this)" ontouchend="cardReleased.call(this)" ontouchmove="cardReleased.call(this)"
|
||||
href="{{ .Permalink }}" class="card blog-card" rel="bookmark" >
|
||||
{{ with .Resources.GetMatch "featuredImage" }}
|
||||
<div class="card-img-container">
|
||||
<picture>
|
||||
{{ with $.Resources.GetMatch (replace (.Title) (path.Ext (.Title)) ".webp") -}}
|
||||
<source srcset="{{ .Permalink }}" type="image/webp">
|
||||
{{- end }}
|
||||
{{ $thumbnail := .Fit "800x600 Lanczos" }}
|
||||
<source srcset="{{ $thumbnail.Permalink }}">
|
||||
<img src="{{ $thumbnail.Permalink }}" class="card-img" {{ with .Params.description -}} alt="{{ . }}" {{- end }}>
|
||||
</picture>
|
||||
</div>
|
||||
{{- end }}
|
||||
<article class="card-body">
|
||||
<h2 class="card-title">{{ .Title }}</h2>
|
||||
<p class="card-text">{{ if (isset .Params "description") }}{{ index .Params "description" | htmlUnescape }}{{ else }}{{ .Summary | plainify | htmlUnescape }}{{ end }}</p>
|
||||
<div class="card-subtext muted-text">
|
||||
<p>Posted <time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "Jan 2, 2006" }}</time></p>
|
||||
{{ if (isset .Params "categories") }}<p>{{ range .Params.categories }}#{{ . | urlize | title }} {{ end }}</p>{{ end }}
|
||||
</div>
|
||||
</article>
|
||||
</a>
|
||||
Loading…
Add table
Add a link
Reference in a new issue