diff options
| author | Franck Cuny <franck@fcuny.net> | 2022-05-23 19:32:36 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2022-05-23 19:32:36 -0700 |
| commit | 69fb19cd967ac301efba635fea9f31bf203cf0cb (patch) | |
| tree | 8423069a26e5c8c845b0bbe58d2c2ea59a7ac6eb /users/fcuny/notes/layouts/partials | |
| parent | ref(blog): remove unneeded files for the blog (diff) | |
| parent | delete Makefile (diff) | |
| download | infra-69fb19cd967ac301efba635fea9f31bf203cf0cb.tar.gz | |
Merge remote-tracking branch 'notes/main'
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 }} |
