diff options
Diffstat (limited to 'users/fcuny/notes/layouts/partials')
-rw-r--r-- | users/fcuny/notes/layouts/partials/head.html | 17 | ||||
-rw-r--r-- | users/fcuny/notes/layouts/partials/header.html | 5 | ||||
-rw-r--r-- | users/fcuny/notes/layouts/partials/postlist.html | 12 |
3 files changed, 34 insertions, 0 deletions
diff --git a/users/fcuny/notes/layouts/partials/head.html b/users/fcuny/notes/layouts/partials/head.html new file mode 100644 index 0000000..6e5a6fb --- /dev/null +++ b/users/fcuny/notes/layouts/partials/head.html @@ -0,0 +1,17 @@ +<head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> + + <link rel="canonical" href="{{ .Permalink }}"> + + {{ $css := "/css/custom.css" }} + <link rel="stylesheet" href="{{ $css }}"> + <link rel="author" href="humans.txt" /> + + <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🖥️</text></svg>"> + + <meta name="description" content="Franck's notes."> + <meta name="author" content="Franck Cuny"> + + <title>{{ .Title }}</title> +</head> diff --git a/users/fcuny/notes/layouts/partials/header.html b/users/fcuny/notes/layouts/partials/header.html new file mode 100644 index 0000000..798463c --- /dev/null +++ b/users/fcuny/notes/layouts/partials/header.html @@ -0,0 +1,5 @@ +<header> + <nav class="navbar"> + <a class="nav-bold" href="{{ .Site.BaseURL }}">~/notes</a> + </nav> +</header> diff --git a/users/fcuny/notes/layouts/partials/postlist.html b/users/fcuny/notes/layouts/partials/postlist.html new file mode 100644 index 0000000..3d5cf04 --- /dev/null +++ b/users/fcuny/notes/layouts/partials/postlist.html @@ -0,0 +1,12 @@ +{{ range .GroupByDate "2006" }} + <h2>{{ .Key }}</h2> + <ul> + {{ range .Pages.ByDate.Reverse }} + <li> + <div> + <a href="{{ .Permalink }}">{{ .Title }}</a> + </div> + </li> + {{ end }} + </ul> +{{ end }} |