début travail hugo

This commit is contained in:
nyanloutre 2020-07-05 11:23:13 +02:00
parent e1073ab21f
commit 80b7f7466d
22 changed files with 385 additions and 0 deletions

View file

View 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>

View 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 }}

View file

@ -0,0 +1,3 @@
{{ define "main" }}
{{ .Content }}
{{ end }}

View file

@ -0,0 +1,3 @@
{{ define "main" }}
{{ .Content }}
{{ end }}

View file

View 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>

View 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>

View 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 }}