更新themes/dot/layouts/index.html

上级 24ff1904
{{ define "main" }} {{ define "main" }}
{{ "<!-- topics -->" | safeHTML }} {{ "<!-- topics -->" | safeHTML }}
<section class="section"> <section class="section">
<div class="container"> <div class="container">
<div class="row justify-content-center"> <div class="row">
<div class="col-12 text-center"> <div class="col-12 text-center">
<h2 class="section-title">{{ "专辑" | safeHTML }}</h2> <h2 class="section-title">{{ "专辑" | safeHTML }}</h2>
</div> </div>
{{ "<!-- topic-item -->" | safeHTML }} {{ "<!-- topic-item -->" | safeHTML }}
{{ range (where .Site.Pages "Type" "docs") }} {{ range (where .Site.Pages "Type" "docs") }}
<div class="col-lg-4 col-sm-6 mb-4"> <div class="col-lg-4 col-sm-6 mb-4">
<a <a
{{ if .Params.link }} {{ if .Params.link }}
href="{{ .Params.link }}" target="_blank" href="{{ .Params.link }}" target="_blank"
{{ else }} {{ else }}
href="{{ .Permalink }}" href="{{ .Permalink }}"
{{ end }} {{ end }}
class="px-4 py-5 bg-white shadow text-center d-block match-height" style="padding: 3em 1em!important"> class="px-4 py-5 bg-white shadow text-center d-block match-height" style="padding: 3em 1em!important">
{{ with .Params.icon}}<i class="{{.}} icon text-primary d-block mb-4"></i>{{end}} {{ with .Params.icon}}<i class="{{.}} icon text-primary d-block mb-4"></i>{{end}}
<h3 class="mb-3 mt-0">{{ .Title }}</h3> <h3 class="mb-3 mt-0">{{ .Title }}</h3>
{{with .Params.description}}<p class="mb-0">{{. | markdownify}}</p>{{end}} {{with .Params.description}}<p class="mb-0">{{. | markdownify}}</p>{{end}}
</a> </a>
</div> </div>
{{ end }} {{ end }}
</div> </div>
</div> </div>
</section> </section>
{{ "<!-- /topics -->" | safeHTML }} {{ "<!-- /topics -->" | safeHTML }}
{{ if .Site.Params.cta.enable }} {{ if .Site.Params.cta.enable }}
{{ with .Site.Params.cta }} {{ with .Site.Params.cta }}
{{ "<!-- call to action -->" | safeHTML }} {{ "<!-- call to action -->" | safeHTML }}
<section> <section>
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-12"> <div class="col-12">
<div class="section px-3 bg-white shadow text-center"> <div class="section px-3 bg-white shadow text-center">
<h2 class="mb-4">{{ .title | markdownify }}</h2> <h2 class="mb-4">{{ .title | markdownify }}</h2>
<p class="mb-4">{{ .content | markdownify }}</p> <p class="mb-4">{{ .content | markdownify }}</p>
{{ if .button.enable }} {{ if .button.enable }}
{{ with .button }} {{ with .button }}
<a href="{{ .link | relLangURL }}" class="btn btn-primary">{{ .label }}</a> <a href="{{ .link | relLangURL }}" class="btn btn-primary">{{ .label }}</a>
{{ end }} {{ end }}
{{ end }} {{ end }}
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</section> </section>
{{ "<!-- /call to action -->" | safeHTML }} {{ "<!-- /call to action -->" | safeHTML }}
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ end }} {{ end }}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册