diff options
Diffstat (limited to 'templates/page.twig')
| -rw-r--r-- | templates/page.twig | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/templates/page.twig b/templates/page.twig new file mode 100644 index 0000000..128e321 --- /dev/null +++ b/templates/page.twig | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | <!DOCTYPE html> | ||
| 2 | <html lang="en"> | ||
| 3 | |||
| 4 | <head> | ||
| 5 | |||
| 6 | <meta charset="utf-8"> | ||
| 7 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| 8 | <meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
| 9 | |||
| 10 | <meta name="theme-color" content="#ffffff"> | ||
| 11 | <meta name="generator" content="https://github.com/mitjafelicijan/staticgen"> | ||
| 12 | |||
| 13 | <link rel="preconnect" href="https://www.google-analytics.com"> | ||
| 14 | |||
| 15 | <title>{{ options.title }}</title> | ||
| 16 | <meta name="author" content="{{ global.author }}"> | ||
| 17 | <meta name="description" content="{{ options.description }}"> | ||
| 18 | |||
| 19 | <meta property="og:title" content="{{ options.title }}"> | ||
| 20 | <meta property="og:description" content="{{ options.description }}"> | ||
| 21 | <meta property="og:url" content="{{ global.domain }}{{ options.slug }}"> | ||
| 22 | |||
| 23 | <meta name="twitter:card" content="summary"> | ||
| 24 | <meta name="twitter:site" content="{{ global.twitter }}"> | ||
| 25 | |||
| 26 | <link rel="alternate" type="application/atom+xml" title="{{ global.author }}'s feed" href="/feed.atom"> | ||
| 27 | <link rel="stylesheet" href="/static/style.css?v={{ "now"|date("YmdHi") }}"> | ||
| 28 | <link rel="icon" type="image/png" href="/static/avatar-64x64.png?v={{ "now"|date("YmdHi") }}"> | ||
| 29 | |||
| 30 | </head> | ||
| 31 | |||
| 32 | <body> | ||
| 33 | |||
| 34 | <main> | ||
| 35 | |||
| 36 | {% include "partials/navigation.twig" %} | ||
| 37 | |||
| 38 | <article> | ||
| 39 | <header> | ||
| 40 | <h1>{{ options.title }}</h1> | ||
| 41 | </header> | ||
| 42 | {{ content }} | ||
| 43 | </article> | ||
| 44 | |||
| 45 | </main> | ||
| 46 | |||
| 47 | <!-- google analytics --> | ||
| 48 | {{ global.ga }} | ||
| 49 | |||
| 50 | </body> | ||
| 51 | |||
| 52 | </html> | ||
