feat: faster, support custom lib cdn and more standardized code style
This commit is contained in:
@@ -21,5 +21,6 @@
|
||||
{{ partial "footer.html" . }}
|
||||
{{ partial "scripts.html" . }}
|
||||
</div>
|
||||
<a href="#" id="dynamic-to-top"><span> </span></a>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,10 +1,10 @@
|
||||
{{ define "title" }}{{ T "posts" }} - {{ .Site.Title }}{{ end -}}
|
||||
{{ define "title" }}{{ T .Section | default (humanize .Section) }} | {{ .Site.Title }}{{ end -}}
|
||||
|
||||
{{ define "content" -}}
|
||||
{{ $data := .Data -}}
|
||||
<div class="post-warp archive">
|
||||
<h2 class="post-title">
|
||||
{{ printf "- %s -" (T "posts") }}
|
||||
{{ printf "%s%s" (T "all") (T .Section | default (humanize .Section)) }}
|
||||
</h2>
|
||||
{{- range (.Paginate (.Pages.GroupByDate "2006")).PageGroups -}}
|
||||
<h3>{{ .Key }}</h3>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{{ define "title" }}{{ .Title }} - {{ .Site.Title }}{{ end }}
|
||||
{{ define "title" }}{{ .Title }} | {{ .Site.Title }}{{ end }}
|
||||
|
||||
{{ define "content" }}
|
||||
<div class="post-warp">
|
||||
@@ -9,4 +9,4 @@
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</div>
|
||||
{{end }}
|
||||
{{end }}
|
||||
@@ -8,7 +8,7 @@
|
||||
<!--featured_image-->
|
||||
{{ with .Params.featured_image }}
|
||||
{{ $image := $.Params.featured_image_preview | default . }}
|
||||
<div class="featured_image_preview">
|
||||
<div class="post-featured-image-preview">
|
||||
<img src=/images/loading.svg data-sizes=auto data-src={{ $image }} alt="featured image" class="lazyload">
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user