site quasi complet
This commit is contained in:
parent
80b7f7466d
commit
278a68cd9a
17 changed files with 141 additions and 57 deletions
|
@ -1,18 +1,16 @@
|
|||
<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>
|
||||
<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 }}
|
||||
</ul>
|
||||
<div id="title">
|
||||
<h1>Anna Uetwiller</h1>
|
||||
<h2>Architecte - Dessinatrice</h2>
|
||||
</div>
|
||||
</header>
|
||||
{{ end }}
|
||||
</ul>
|
||||
<div id="title">
|
||||
<h1>Anna Uetwiller</h1>
|
||||
<h2>Architecte - Dessinatrice</h2>
|
||||
</div>
|
||||
|
|
|
@ -1,13 +1,18 @@
|
|||
{{ 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 }}
|
||||
<div class="content portfolio">
|
||||
<h1>{{ .Title }}</h1>
|
||||
<ul>
|
||||
{{ range .Params.images }}
|
||||
{{ $img := $.Page.Resources.GetMatch . }}
|
||||
<li>
|
||||
<figure>
|
||||
<img src="{{ $img.RelPermalink }}" alt="">
|
||||
</figure>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</article>
|
||||
|
|
3
themes/anna/layouts/shortcodes/gallery.html
Normal file
3
themes/anna/layouts/shortcodes/gallery.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<div class="gallery">
|
||||
{{.Inner}}
|
||||
</div>
|
5
themes/anna/layouts/shortcodes/img.html
Normal file
5
themes/anna/layouts/shortcodes/img.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
{{ $img := $.Page.Resources.GetMatch (.Get 0) }}
|
||||
{{ $res_img := $img.Fill "600x400" }}
|
||||
<a href="{{ .Get 2 | ref . }}">
|
||||
<img src="{{ $res_img.RelPermalink }}" alt="{{ .Get 1 }}" />
|
||||
</a>
|
Loading…
Add table
Add a link
Reference in a new issue