Merge pull request #10 from kazu634/create-travel-section
Create travel section
This commit is contained in:
commit
fb17034375
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
title: Travel Page
|
||||
date: 2019-04-14
|
||||
publishdate: 2019-04-14
|
||||
---
|
||||
|
||||
旅行関係の記事をここに集めてみました。
|
|
@ -1,2 +1,3 @@
|
|||
<li><a href="https://blog.kazu634.com/labs/">Labs</a></li>
|
||||
<li><a href="https://blog.kazu634.com/quotes/">Quotes</a></li>
|
||||
<li><a href="https://blog.kazu634.com/travel/">Travel</a></li>
|
||||
|
|
|
@ -0,0 +1,41 @@
|
|||
{{ partial "header.html" . }}
|
||||
|
||||
<!-- Main Section Layout
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||||
<main id="list" role="main">
|
||||
<div class="article-header light-gray"><h1>{{ .Title }}</h1></div>
|
||||
{{.Content}}
|
||||
<br>
|
||||
{{ $paginator := .Paginate (where .Data.Pages "Type" "travel") }}
|
||||
{{ range $paginator.Pages }}
|
||||
<div class="summary">
|
||||
<h2><a href="{{ .Permalink }}">{{ .Title }} {{ if .Draft }}:: DRAFT{{end}}</a></h2>
|
||||
<div class="meta">
|
||||
{{ .Date.Format "Jan 2, 2006" }}
|
||||
{{ range .Params.categories }}
|
||||
#<a href="/categories/{{ . | urlize }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
{{ range .Params.tags }}
|
||||
#<a href="/tags/{{ . | urlize }}">{{ . }}</a>
|
||||
{{ end }}: {{ .Description }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</main>
|
||||
|
||||
<!-- Paginator Section Layout
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||||
<nav>
|
||||
{{ $paginator := .Paginate (where .Data.Pages "Type" "travel") }}
|
||||
{{ if .Paginator.HasPrev }}
|
||||
<a href="{{ .Paginator.Prev.URL }}">Prev</a>
|
||||
{{ end }}
|
||||
<span class="">Page {{ .Paginator.PageNumber }} of {{ .Paginator.TotalPages }}</span>
|
||||
{{ if .Paginator.HasNext }}
|
||||
<a href="{{ .Paginator.Next.URL }}">Next</a>
|
||||
{{ end }}
|
||||
</nav>
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
{{ partial "header-content.html" . }}
|
||||
|
||||
<!-- Main Section Layout
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||||
<main id="single" role="main">
|
||||
<div class="article-header">
|
||||
<h1>{{ .Title }}</h1>
|
||||
<div class="meta">
|
||||
{{ .Date.Format "Jan 2, 2006" }}
|
||||
{{ range .Params.categories }}
|
||||
#<a href="/categories/{{ . | urlize }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
{{ range .Params.tags }}
|
||||
#<a href="/tags/{{ . | urlize }}">{{ . }}</a>
|
||||
{{ end }}: {{ .Description }}
|
||||
</div>
|
||||
</div>
|
||||
<article>
|
||||
{{ .Content }}
|
||||
|
||||
</main>
|
||||
|
||||
<nav class="pagination">
|
||||
{{ with .PrevInSection }}
|
||||
<span class="previous">← <a href="{{ .Permalink }}" rel="prev">{{ .Title }}</a></span>
|
||||
{{ end }}
|
||||
{{ with .NextInSection }}
|
||||
<span class="next"><a href="{{ .Permalink }}" rel="next">{{ .Title }}</a> →</span>
|
||||
{{ end }}
|
||||
</nav>
|
||||
|
||||
{{ partial "footer.html" . }}
|
Loading…
Reference in New Issue