blog layout update
This commit is contained in:
@@ -5,9 +5,8 @@
|
||||
|
||||
|
||||
{{ define "main" }}
|
||||
<section class="bg-white">
|
||||
<section>
|
||||
<div class="container-fluid">
|
||||
|
||||
<div class="row pt-3 justify-content-center">
|
||||
<div class="col-lg-6 col-md-6">
|
||||
{{ range .Paginator.Pages }}
|
||||
@@ -17,22 +16,19 @@
|
||||
<h5 class="card-header m-0">
|
||||
{{ if .Params.tags }}
|
||||
{{ range .Params.tags }}
|
||||
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}" class="btn btn-info btn-rounded mb-2">{{ . }}</a>
|
||||
<a href="{{ " /tags/" | relLangURL }}{{ . | urlize }}" class="btn btn-info btn-rounded mb-2">{{ . }}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</h5>
|
||||
{{ end }}
|
||||
|
||||
<a class="text-decoration-none" href="{{ .Permalink }}">
|
||||
<div class="card-body">
|
||||
<div class="text-xs font-weight-bold text-primary text-uppercase mb-1">{{ .Title }}</div>
|
||||
|
||||
{{ if .Site.Params.showdescription }}
|
||||
<div class="text-muted py-2">
|
||||
{{ .Params.description }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
<div class="text-dark">
|
||||
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-calendar" fill="currentColor"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
@@ -42,7 +38,6 @@
|
||||
d="M3.5 0a.5.5 0 0 1 .5.5V1a.5.5 0 0 1-1 0V.5a.5.5 0 0 1 .5-.5zm9 0a.5.5 0 0 1 .5.5V1a.5.5 0 0 1-1 0V.5a.5.5 0 0 1 .5-.5z" />
|
||||
</svg>
|
||||
{{ dateFormat "Jan 2, 2006" .Date }}
|
||||
|
||||
{{ if .Params.author }}
|
||||
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-person-fill" fill="currentColor"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
@@ -58,7 +53,6 @@
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ template "_internal/pagination.html" . }}
|
||||
|
||||
<div class="row justify-content-center pt-3">
|
||||
<div class="col-lg-7 col-md-7">
|
||||
<div class=" mb-4">
|
||||
@@ -75,12 +69,8 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</section>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user