Fix post content
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
45c6a87467
commit
061c6047d1
|
@ -1,38 +1,28 @@
|
||||||
{{ partial "header.html" . }}
|
{{ partial "header.html" . }}
|
||||||
{{ partial "navbar.html" . }}
|
{{ partial "navbar.html" . }}
|
||||||
|
|
||||||
<div class="container content page">
|
<div class="container is-centered page">
|
||||||
{{ $paginator := .Paginate (where .Data.Pages "Type" "blog") }}{{ range $paginator.Pages }}
|
<div class="columns">
|
||||||
<div class="card">
|
<div class="column is-one-quarter">
|
||||||
<div class="card-content">
|
{{ partial "menu" . }}
|
||||||
<div class="media">
|
</div>
|
||||||
<div class="media-content">
|
<div class="column is-three-quarters">
|
||||||
<a class="title is-4" href="{{ .Permalink }}">{{ .Title }}</a>
|
|
||||||
<p class="subtitle is-6">
|
|
||||||
{{ .Date.Format "2006-01-02" }}
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{{ .Summary }}
|
{{ .Content }}
|
||||||
</div>
|
|
||||||
|
|
||||||
<a href="{{ .Permalink }}" class="button is-primary is-outlined noshadow">
|
{{ range .Pages.GroupBy "Section" }}
|
||||||
Read more
|
<h3>{{ .Key | title }}</h3>
|
||||||
</a>
|
<ul>
|
||||||
|
{{ range .Pages }}
|
||||||
|
<li>
|
||||||
|
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||||
|
</li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
<nav class="pagination is-centered" role="navigation" aria-label="pagination">
|
|
||||||
{{ if .Paginator.HasPrev}}
|
|
||||||
<a class="pagination-previous" href="{{ .Paginator.Prev.URL }}">Previous</a>
|
|
||||||
{{ end }}
|
|
||||||
{{ if .Paginator.HasNext }}
|
|
||||||
<a class="pagination-next" href="{{ .Paginator.Next.URL }}">Next</a>
|
|
||||||
{{ end }}
|
|
||||||
</nav>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ partial "footer.html" . }}
|
{{ partial "footer.html" . }}
|
||||||
|
|
|
@ -3,38 +3,36 @@
|
||||||
|
|
||||||
<div class="container content page">
|
<div class="container content page">
|
||||||
{{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}{{ range $paginator.Pages }}
|
{{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}{{ range $paginator.Pages }}
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-content">
|
<div class="card-content">
|
||||||
<div class="media">
|
<div class="media">
|
||||||
<div class="media-content">
|
<div class="media-content">
|
||||||
<a class="title is-4" href="{{ .Permalink }}">{{ .Title }}</a>
|
<a class="title is-4" href="{{ .Permalink }}">{{ .Title }}</a>
|
||||||
<p class="subtitle is-6">{{ .Date.Format "Mon Jan 2, 2006" }} {{ i18n "authored_by" }}
|
<p class="subtitle is-6">
|
||||||
<a href="https://github.com/{{ .Params.author | default .Site.Params.author }}">
|
{{ .Date.Format "2006-01-02" }}
|
||||||
{{ .Params.author | default .Site.Params.author }}
|
</p>
|
||||||
</a>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content">
|
|
||||||
{{ .Summary }}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<a href="{{ .Permalink }}" class="button is-success is-outlined">
|
|
||||||
{{ i18n "read_more" }}
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="content">
|
||||||
|
{{ .Summary }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<a href="{{ .Permalink }}" class="button is-primary is-outlined noshadow">
|
||||||
|
Read more
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<nav class="pagination is-centered" role="navigation" aria-label="pagination">
|
<nav class="pagination is-centered" role="navigation" aria-label="pagination">
|
||||||
{{ if .Paginator.HasPrev}}
|
{{ if .Paginator.HasPrev}}
|
||||||
<a class="pagination-previous" href="{{ .Paginator.Prev.URL }}">{{ i18n "page_prev" }}</a>
|
<a class="pagination-previous" href="{{ .Paginator.Prev.URL }}">Previous</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if .Paginator.HasNext }}
|
{{ if .Paginator.HasNext }}
|
||||||
<a class="pagination-next" href="{{ .Paginator.Next.URL }}">{{ i18n "page_next" }}</a>
|
<a class="pagination-next" href="{{ .Paginator.Next.URL }}">Next</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ partial "footer.html" . }}
|
{{ partial "footer.html" . }}
|
||||||
|
|
|
@ -9,9 +9,7 @@
|
||||||
</a>
|
</a>
|
||||||
</h2>
|
</h2>
|
||||||
<p>
|
<p>
|
||||||
<i>{{ .Date.Format "Mon Jan 2, 2006" }}</i>
|
<i>{{ .Date.Format "2006-01-02" }}</i>
|
||||||
{{ i18n "authored_by" }}
|
|
||||||
<b>{{ .Params.author | default .Site.Params.author }}</b>
|
|
||||||
</p>
|
</p>
|
||||||
{{ partial "headline-hash.html" .Content }}
|
{{ partial "headline-hash.html" .Content }}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue