diff options
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/footer.html | 6 | ||||
-rw-r--r-- | layouts/partials/head.html | 18 | ||||
-rw-r--r-- | layouts/partials/header.html | 15 |
3 files changed, 39 insertions, 0 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index e69de29..749441b 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -0,0 +1,6 @@ +{{ with .Site.Params.footer }} + <hr> + <div class="container text-center mb-2"> + <a href="{{ .url }}"><small>{{ .text }}</small></a> + </div> +{{ end }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index e69de29..2b5566e 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -0,0 +1,18 @@ +<head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> + + <title>{{ .Title }}</title> + <meta name="description" content="{{ .Site.Params.description }}"> + <meta name="author" content='{{ .Site.Params.author }}'> + + <link href="https://fonts.googleapis.com/css2?family=Inconsolata:wght@400;700&display=swap" rel="stylesheet"> + <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous"> + + {{ $style := resources.Get "sass/researcher.scss" | toCSS | minify }} + <link rel="stylesheet" href="{{ $style.RelPermalink }}"> + + {{ with .Site.Params.favicon }} + <link rel="icon" type="image/ico" href="{{ . | relURL }}"> + {{ end }} +</head> diff --git a/layouts/partials/header.html b/layouts/partials/header.html index e69de29..45b67a8 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -0,0 +1,15 @@ +<div class="container mt-5"> + <nav class="navbar navbar-expand-sm flex-column flex-sm-row p-0"> + <a class="navbar-brand mr-sm-auto" href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a> + <div class="navbar-nav flex-row"> + {{ $navbar_len := len .Site.Menus.navbar }} + {{ range $i, $nav_item := .Site.Menus.navbar }} + <a class="nav-item nav-link" href="{{ $nav_item.URL | relURL }}">{{ $nav_item.Name }}</a> + {{ if ne (add $i 1) $navbar_len }} + <span class="nav-item navbar-text mx-1">/</span> + {{ end }} + {{ end }} + </div> + </nav> +</div> +<hr> |