diff options
author | Daisuke Konishi <skydai1151@gmail.com> | 2017-11-04 17:41:53 +0300 |
---|---|---|
committer | Daisuke Konishi <skydai1151@gmail.com> | 2017-11-04 17:41:53 +0300 |
commit | 82638865ab3332650acf69ec9305f2034eab6dc8 (patch) | |
tree | 42d627faca0197cfc4f6994b321caa413d87745d /layouts | |
parent | aacc501102131062a1d6a47d74faa5b4453fef74 (diff) |
add base
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/baseof.html | 13 | ||||
-rw-r--r-- | layouts/_default/li.html | 5 | ||||
-rw-r--r-- | layouts/_default/list.html | 14 | ||||
-rw-r--r-- | layouts/index.html | 0 | ||||
-rw-r--r-- | layouts/partials/footer.html | 5 | ||||
-rw-r--r-- | layouts/partials/head.html | 22 | ||||
-rw-r--r-- | layouts/partials/header.html | 9 |
7 files changed, 68 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..e0ece2a --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,13 @@ +{{ partial "head" . }} + +<body> + {{ partial "header" . }} + + <main class="main-content"> + {{ block "main" . }}{{ end }} + </main> + + {{ partial "footer" . }} +</body> + +</html> diff --git a/layouts/_default/li.html b/layouts/_default/li.html new file mode 100644 index 0000000..eb013e3 --- /dev/null +++ b/layouts/_default/li.html @@ -0,0 +1,5 @@ +<li class="c-archive-list__list"> + <div class="c-post c-bg-img"> + aa + </div> +</li> diff --git a/layouts/_default/list.html b/layouts/_default/list.html index e69de29..e176779 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -0,0 +1,14 @@ +{{ define "main" }} + {{ $pag := .Paginate (where .Data.Pages "Type" "post") 6 }} + + <div class="p-archive"> + <div class="c-container"> + <ul class="c-archive-list"> + {{ range $pag.Pages }} + {{ .Render "li" }} + {{ end }} + </ul> + </div> + </div> + +{{ end }} diff --git a/layouts/index.html b/layouts/index.html deleted file mode 100644 index e69de29..0000000 --- a/layouts/index.html +++ /dev/null diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index e69de29..a6fbf4f 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -0,0 +1,5 @@ +<footer class="c-global-footer"> + <div class="c-container"> + <p class="c-copy"><small>{{ .Site.Copyright }}</small></p> + </div> +</footer> diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..62c055e --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}jp{{ end }}"> + +<head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1"> + <title>{{ .Title }}{{ if not .IsHome }} · {{ .Site.Title }}{{ end }} - {{ with .Site.Params.description }}{{ . }}{{ end }}</title> + {{ .Hugo.Generator }} + {{ with .Site.Params.description }} + <meta name="description" content="{{ . }}"> {{ end }} + {{ template "_internal/twitter_cards.html" . }} + {{ template "_internal/opengraph.html" . }} + {{ "<!-- RSS autodiscovery -->" | safeHTML }} + {{ if .RSSLink }} + <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> + <link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" /> + {{ end }} + {{ template "_internal/schema.html" . }} + <link href="https://fonts.googleapis.com/css?family=Lato:400" rel="stylesheet"> + <link rel="stylesheet" href="{{ "css/application.css" | absURL }}"> +</head> diff --git a/layouts/partials/header.html b/layouts/partials/header.html index e69de29..e700a94 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -0,0 +1,9 @@ +<header class="c-global-header"> + <div class="c-container"> + <div class="c-global-header__inner"> + <h1 class="brand"> + <a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a> + </h1> + </div> + </div> +</header> |