diff options
author | Humberto Rocha <humrochagf@gmail.com> | 2019-08-01 18:49:56 +0300 |
---|---|---|
committer | Humberto Rocha <humrochagf@gmail.com> | 2019-08-01 18:49:56 +0300 |
commit | fee44f48c8493bd50658c9e6067ffa089e19d2cb (patch) | |
tree | ff3f0b5ae8b35eb96938c77c5fad590d50f616f1 /layouts | |
parent | 86195030e7e7864e6edd6535b5077661ce63d551 (diff) |
Start curriculum templating
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/baseof.html | 28 | ||||
-rw-r--r-- | layouts/curriculum/single.html | 46 |
2 files changed, 61 insertions, 13 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 29f7fb1..e930308 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -14,20 +14,22 @@ <link rel="stylesheet" href="{{ $style.Permalink }}" integrity="{{ $style.Data.Integrity }}"> </head> - <body> - <div class="wrapper"> - {{ partial "language" . }} - {{ partial "header" . }} - {{ partial "navigation" . }} + <body class="{{ block "bodyClass" . }}{{ end }}"> + {{ block "body" . }} + <div class="wrapper"> + {{ partial "language" . }} + {{ partial "header" . }} + {{ partial "navigation" . }} - <main> - <div class="container"> - {{ block "main" . }} - {{ end }} - </div> - </main> + <main> + <div class="container"> + {{ block "main" . }} + {{ end }} + </div> + </main> - {{ partial "footer" . }} - </div> + {{ partial "footer" . }} + </div> + {{ end }} </body> </html> diff --git a/layouts/curriculum/single.html b/layouts/curriculum/single.html new file mode 100644 index 0000000..751b1f7 --- /dev/null +++ b/layouts/curriculum/single.html @@ -0,0 +1,46 @@ +{{ define "bodyClass" }}curriculum{{ end }} + +{{ define "body" }} + {{ partial "language" . }} + + <main> + <header> + <h1> + <a href="{{ "/" | absLangURL }}">{{ .Params.name }}</a> + </h1> + + <p> + {{ .Params.JobTitle }} | <a href="{{ .Params.locationLink }}">{{ .Params.locationName }}</a> + </p> + </header> + + <div class="content"> + <div class="left"> + {{ if .Params.contact }} + <section> + <h2>{{ i18n "contact" }}</h2> + + {{ range .Params.contact }} + <p class="contact-item"> + {{ partial "svg" .svg }} + + <a href="{{ .url }}">{{ .display }}</a> + </p> + {{ end }} + </section> + {{ end }} + + {{ if .Params.languages }} + <section> + <h2>{{ i18n "languages" }}</h2> + + {{ .Params.languages | markdownify }} + </section> + {{ end }} + </div> + + <div class="right"> + </div> + </div> + </main> +{{ end }} |