mirror of https://gitea.com/gitea/theme.git
fix padding in blog posts; change div sections to actual section tags (#60)
This commit is contained in:
parent
c95f77d545
commit
ac242874e5
|
@ -1,7 +1,7 @@
|
|||
{{ partial "header.html" . }}
|
||||
{{ partial "navbar.html" . }}
|
||||
|
||||
<div class="section">
|
||||
<section class="section">
|
||||
<div class="container is-centered page">
|
||||
<div class=" content">
|
||||
{{ .Content }}
|
||||
|
@ -9,6 +9,6 @@
|
|||
{{ partial "disqus.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{{ partial "header.html" . }}
|
||||
{{ partial "navbar.html" . }}
|
||||
|
||||
<div class="section">
|
||||
<section class="section">
|
||||
<div class="container is-centered page">
|
||||
<div class="columns">
|
||||
<div class="column is-one-quarter">
|
||||
|
@ -14,6 +14,6 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{{ partial "header.html" . }}
|
||||
{{ partial "navbar.html" . }}
|
||||
|
||||
<div class="section">
|
||||
<section class="section">
|
||||
<div class="container is-centered page">
|
||||
<div class="columns">
|
||||
<div class="column is-one-quarter">
|
||||
|
@ -16,6 +16,6 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
|
|
|
@ -1,40 +1,41 @@
|
|||
{{ partial "header.html" . }}
|
||||
{{ partial "navbar.html" . }}
|
||||
|
||||
<div class="container content page">
|
||||
{{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}{{ range $paginator.Pages }}
|
||||
<div class="card">
|
||||
<div class="card-content">
|
||||
<div class="media">
|
||||
<div class="media-content">
|
||||
<a class="title is-4" href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
<p class="subtitle is-6">{{ .Date.Format "Mon Jan 2, 2006" }} {{ i18n "authored_by" }}
|
||||
<a href="https://github.com/{{ .Params.author | default .Site.Params.author }}">
|
||||
{{ .Params.author | default .Site.Params.author }}
|
||||
</a>
|
||||
</p>
|
||||
<section class="section">
|
||||
<div class="container content page">
|
||||
{{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}{{ range $paginator.Pages }}
|
||||
<div class="card">
|
||||
<div class="card-content">
|
||||
<div class="media">
|
||||
<div class="media-content">
|
||||
<a class="title is-4" href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
<p class="subtitle is-6">{{ .Date.Format "Mon Jan 2, 2006" }} {{ i18n "authored_by" }}
|
||||
<a href="https://github.com/{{ .Params.author | default .Site.Params.author }}">
|
||||
{{ .Params.author | default .Site.Params.author }}
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
{{ .Summary }}
|
||||
</div>
|
||||
<div class="content">
|
||||
{{ .Summary }}
|
||||
</div>
|
||||
|
||||
<a href="{{ .Permalink }}" class="button is-success is-outlined">
|
||||
{{ i18n "read_more" }}
|
||||
</a>
|
||||
<a href="{{ .Permalink }}" class="button is-success is-outlined">
|
||||
{{ i18n "read_more" }}
|
||||
</a>
|
||||
</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 }}">{{ i18n "page_prev" }}</a>
|
||||
{{ end }}
|
||||
{{ if .Paginator.HasNext }}
|
||||
<a class="pagination-next" href="{{ .Paginator.Next.URL }}">{{ i18n "page_next" }}</a>
|
||||
{{ end }}
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
<nav class="pagination is-centered" role="navigation" aria-label="pagination">
|
||||
{{ if .Paginator.HasPrev}}
|
||||
<a class="pagination-previous" href="{{ .Paginator.Prev.URL }}">{{ i18n "page_prev" }}</a>
|
||||
{{ end }} {{ if .Paginator.HasNext }}
|
||||
<a class="pagination-next" href="{{ .Paginator.Next.URL }}">{{ i18n "page_next" }}</a>
|
||||
{{ end }}
|
||||
</nav>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
|
|
|
@ -1,27 +1,29 @@
|
|||
{{ partial "header.html" . }}
|
||||
{{ partial "navbar.html" . }}
|
||||
|
||||
<div class="container is-centered page">
|
||||
<div class="content">
|
||||
<h2>
|
||||
<a href="{{ .Permalink }}">
|
||||
{{ .Title }}
|
||||
</a>
|
||||
</h2>
|
||||
<p>
|
||||
<i>{{ .Date.Format "Mon Jan 2, 2006" }}</i>
|
||||
{{ i18n "authored_by" }}
|
||||
<b>
|
||||
<a href="https://github.com/{{ .Params.author | default .Site.Params.author }}">
|
||||
{{ .Params.author | default .Site.Params.author }}
|
||||
<section class="section">
|
||||
<div class="container is-centered page">
|
||||
<div class="content">
|
||||
<h2>
|
||||
<a href="{{ .Permalink }}">
|
||||
{{ .Title }}
|
||||
</a>
|
||||
</b>
|
||||
</p>
|
||||
</h2>
|
||||
<p>
|
||||
<i>{{ .Date.Format "Mon Jan 2, 2006" }}</i>
|
||||
{{ i18n "authored_by" }}
|
||||
<b>
|
||||
<a href="https://github.com/{{ .Params.author | default .Site.Params.author }}">
|
||||
{{ .Params.author | default .Site.Params.author }}
|
||||
</a>
|
||||
</b>
|
||||
</p>
|
||||
|
||||
{{ .Content }}
|
||||
{{ .Content }}
|
||||
|
||||
{{ partial "disqus.html" . }}
|
||||
{{ partial "disqus.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
|
|
Loading…
Reference in New Issue