début travail hugo
This commit is contained in:
parent
e1073ab21f
commit
80b7f7466d
22 changed files with 385 additions and 0 deletions
0
themes/anna/layouts/404.html
Normal file
0
themes/anna/layouts/404.html
Normal file
11
themes/anna/layouts/_default/baseof.html
Normal file
11
themes/anna/layouts/_default/baseof.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
{{- partial "head.html" . -}}
|
||||
<body>
|
||||
{{- partial "header.html" . -}}
|
||||
<div id="content">
|
||||
{{- block "main" . }}{{- end }}
|
||||
</div>
|
||||
{{- partial "footer.html" . -}}
|
||||
</body>
|
||||
</html>
|
13
themes/anna/layouts/_default/list.html
Normal file
13
themes/anna/layouts/_default/list.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
{{ define "main" }}
|
||||
<div class="container">
|
||||
<div class="section">
|
||||
<div class="content">
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ .Content }}
|
||||
{{ range .Pages }}
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
3
themes/anna/layouts/_default/single.html
Normal file
3
themes/anna/layouts/_default/single.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
3
themes/anna/layouts/index.html
Normal file
3
themes/anna/layouts/index.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
0
themes/anna/layouts/partials/footer.html
Normal file
0
themes/anna/layouts/partials/footer.html
Normal file
11
themes/anna/layouts/partials/head.html
Normal file
11
themes/anna/layouts/partials/head.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
<head>
|
||||
<title>{{ .Site.Title }}</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="description" content="{{ .Description }}">
|
||||
<base href="{{ .Site.BaseURL }}">
|
||||
{{ $styles := resources.Get "sass/main.scss" | toCSS }}
|
||||
<link rel="stylesheet" href="{{ $styles.Permalink }}">
|
||||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
</head>
|
||||
|
18
themes/anna/layouts/partials/header.html
Normal file
18
themes/anna/layouts/partials/header.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
<header>
|
||||
<ul id="navbar">
|
||||
<li><img id="logo" src="{{ relURL "logo.svg" }}"></li>
|
||||
{{ range .Site.Menus.main }}
|
||||
{{ if .HasChildren }}
|
||||
{{ range .Children }}
|
||||
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
<div id="title">
|
||||
<h1>Anna Uetwiller</h1>
|
||||
<h2>Architecte - Dessinatrice</h2>
|
||||
</div>
|
||||
</header>
|
15
themes/anna/layouts/portfolio/single.html
Normal file
15
themes/anna/layouts/portfolio/single.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
{{ define "main" }}
|
||||
<section class="section">
|
||||
<article>
|
||||
<h1 class="title is-1">{{ .Title }}</h1>
|
||||
<div class="content">
|
||||
{{ with .Params.images }}
|
||||
<figure class="title-image">
|
||||
<img src="{{ index . 0 }}" alt="">
|
||||
</figure>
|
||||
{{ end }}
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</article>
|
||||
</section>
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue