diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2019-02-17 21:53:36 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2019-02-17 21:53:36 +0100 |
| commit | 8e9ef5ba62b8bee028428384ad5666e245eb854c (patch) | |
| tree | b382c5b40f122b2a152da2226006abab34abe105 /layouts | |
| parent | ad974810d43e1d5f70bca269665c25230e6a3221 (diff) | |
| download | mitjafelicijan.com-8e9ef5ba62b8bee028428384ad5666e245eb854c.tar.gz | |
content update
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/footer.njk | 25 | ||||
| -rw-r--r-- | layouts/index.njk | 57 | ||||
| -rw-r--r-- | layouts/navigation.njk | 39 | ||||
| -rw-r--r-- | layouts/page.njk | 56 | ||||
| -rw-r--r-- | layouts/post.njk | 59 |
5 files changed, 236 insertions, 0 deletions
diff --git a/layouts/footer.njk b/layouts/footer.njk new file mode 100644 index 0000000..b0d3702 --- /dev/null +++ b/layouts/footer.njk | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | <link rel="stylesheet" href="test.css?ver={{ timestamp }}"> | ||
| 2 | |||
| 3 | <footer> | ||
| 4 | <span>© 2012-{{ currentYear }}</span> | ||
| 5 | <a href="/curriculum-vitae">Curriculum Vitae</a> | ||
| 6 | <a href="//github.com/mitjafelicijan" target="_blank" rel="noopener nofollow">Github</a> | ||
| 7 | <a href="//twitter.com/mitjafelicijan" target="_blank" rel="noopener nofollow">Twitter</a> | ||
| 8 | </footer> | ||
| 9 | |||
| 10 | <!-- MathJax --> | ||
| 11 | <script type="text/x-mathjax-config"> | ||
| 12 | MathJax.Hub.Config({ | ||
| 13 | TeX: { | ||
| 14 | equationNumbers: { | ||
| 15 | autoNumber: "AMS" | ||
| 16 | } | ||
| 17 | }, | ||
| 18 | tex2jax: { | ||
| 19 | inlineMath: [ ['$','$'], ['\\(', '\\)'] ], | ||
| 20 | displayMath: [ ['$$','$$'] ], | ||
| 21 | processEscapes: true, | ||
| 22 | } | ||
| 23 | }); | ||
| 24 | </script> | ||
| 25 | <script src="//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML" async></script> | ||
diff --git a/layouts/index.njk b/layouts/index.njk new file mode 100644 index 0000000..6a2441f --- /dev/null +++ b/layouts/index.njk | |||
| @@ -0,0 +1,57 @@ | |||
| 1 | <!DOCTYPE html> | ||
| 2 | <html lang="en"> | ||
| 3 | |||
| 4 | <head> | ||
| 5 | <meta charset="utf-8"> | ||
| 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| 7 | <meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
| 8 | <meta name="theme-color" content="#ffffff"> | ||
| 9 | |||
| 10 | <meta name="google-site-verification" content="EwUGW1WlCkRIQuyQ9AE1-bLitWthw-eVMZFTAMZVZaA"> | ||
| 11 | |||
| 12 | <title>{{ vars.title }}</title> | ||
| 13 | <meta name="author" content="{{ vars.author }}"> | ||
| 14 | <meta name="description" content="{{ vars.description }}"> | ||
| 15 | |||
| 16 | <meta name="og:url" content="{{ vars.domain }}"> | ||
| 17 | <meta name="og:type" content="website"> | ||
| 18 | <meta name="og:title" content="{{ vars.title }}"> | ||
| 19 | <meta name="og:description" content="{{ vars.description }}"> | ||
| 20 | <meta name="og:image" content="{{ vars.domain }}/assets/avatar.gif?ver={{ timestamp }}"> | ||
| 21 | |||
| 22 | <meta name="twitter:card" content="summary"> | ||
| 23 | <meta name="twitter:site" content="@mitjafelicijan"> | ||
| 24 | <meta name="twitter:title" content="{{ vars.title }}"> | ||
| 25 | <meta name="twitter:description" content="{{ vars.description }}"> | ||
| 26 | <meta name="twitter:image" content="{{ vars.domain }}/assets/avatar.gif?ver={{ timestamp }}"> | ||
| 27 | |||
| 28 | {{ css }} | ||
| 29 | |||
| 30 | </head> | ||
| 31 | |||
| 32 | <body> | ||
| 33 | |||
| 34 | <main class="wrapper"> | ||
| 35 | |||
| 36 | {% include "navigation.njk" %} | ||
| 37 | |||
| 38 | <nav class="article-list"> | ||
| 39 | {% for post in posts %} | ||
| 40 | <article> | ||
| 41 | <a href="/{{ post.slug }}"> | ||
| 42 | <h2>{{ post.title }}</h2> | ||
| 43 | <time pubdate="{{ post.dateOriginal }}" class="pubdate">{{ post.dateFormatted }}</time> | ||
| 44 | </a> | ||
| 45 | </article> | ||
| 46 | {% endfor %} | ||
| 47 | </nav> | ||
| 48 | |||
| 49 | {{ javascript }} | ||
| 50 | |||
| 51 | {% include "footer.njk" %} | ||
| 52 | |||
| 53 | </main> | ||
| 54 | |||
| 55 | </body> | ||
| 56 | |||
| 57 | </html> | ||
diff --git a/layouts/navigation.njk b/layouts/navigation.njk new file mode 100644 index 0000000..2f73825 --- /dev/null +++ b/layouts/navigation.njk | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | <menu> | ||
| 2 | <div> | ||
| 3 | <a href="/" class="logo">mitja felicijan</a> | ||
| 4 | </div> | ||
| 5 | <nav> | ||
| 6 | <a href="//github.com/mitjafelicijan"> | ||
| 7 | <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" | ||
| 8 | viewBox="0 0 92 92" style="enable-background:new 0 0 92 92;" xml:space="preserve"> | ||
| 9 | <g> | ||
| 10 | <path style="fill:#030104;" d="M61.896,52.548c-3.59,0-6.502,4.026-6.502,8.996c0,4.971,2.912,8.999,6.502,8.999 | ||
| 11 | c3.588,0,6.498-4.028,6.498-8.999C68.395,56.574,65.484,52.548,61.896,52.548z M84.527,29.132c0.74-1.826,0.777-12.201-3.17-22.132 | ||
| 12 | c0,0-9.057,0.993-22.76,10.396c-2.872-0.793-7.736-1.19-12.597-1.19s-9.723,0.396-12.598,1.189C19.699,7.993,10.645,7,10.645,7 | ||
| 13 | c-3.948,9.931-3.913,20.306-3.172,22.132C2.834,34.169,0,40.218,0,48.483c0,35.932,29.809,36.508,37.334,36.508 | ||
| 14 | c1.703,0,5.088,0.004,8.666,0.009c3.578-0.005,6.965-0.009,8.666-0.009C62.191,84.991,92,84.415,92,48.483 | ||
| 15 | C92,40.218,89.166,34.169,84.527,29.132z M46.141,80.574H45.86c-18.859,0-33.545-2.252-33.545-20.58 | ||
| 16 | c0-4.389,1.549-8.465,5.229-11.847c6.141-5.636,16.527-2.651,28.316-2.651c0.045,0,0.093-0.001,0.141-0.003 | ||
| 17 | c0.049,0.002,0.096,0.003,0.141,0.003c11.789,0,22.178-2.984,28.316,2.651c3.68,3.382,5.229,7.458,5.229,11.847 | ||
| 18 | C79.686,78.322,65,80.574,46.141,80.574z M30.104,52.548c-3.588,0-6.498,4.026-6.498,8.996c0,4.971,2.91,8.999,6.498,8.999 | ||
| 19 | c3.592,0,6.502-4.028,6.502-8.999C36.605,56.574,33.695,52.548,30.104,52.548z" /> | ||
| 20 | </g> | ||
| 21 | </svg> | ||
| 22 | </a> | ||
| 23 | |||
| 24 | <a href="//twitter.com/mitjafelicijan"> | ||
| 25 | <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" | ||
| 26 | viewBox="0 0 612 612" style="enable-background:new 0 0 612 612;" xml:space="preserve"> | ||
| 27 | <g> | ||
| 28 | <path style="fill:#010002;" d="M612,116.258c-22.525,9.981-46.694,16.75-72.088,19.772c25.929-15.527,45.777-40.155,55.184-69.411 | ||
| 29 | c-24.322,14.379-51.169,24.82-79.775,30.48c-22.907-24.437-55.49-39.658-91.63-39.658c-69.334,0-125.551,56.217-125.551,125.513 | ||
| 30 | c0,9.828,1.109,19.427,3.251,28.606C197.065,206.32,104.556,156.337,42.641,80.386c-10.823,18.51-16.98,40.078-16.98,63.101 | ||
| 31 | c0,43.559,22.181,81.993,55.835,104.479c-20.575-0.688-39.926-6.348-56.867-15.756v1.568c0,60.806,43.291,111.554,100.693,123.104 | ||
| 32 | c-10.517,2.83-21.607,4.398-33.08,4.398c-8.107,0-15.947-0.803-23.634-2.333c15.985,49.907,62.336,86.199,117.253,87.194 | ||
| 33 | c-42.947,33.654-97.099,53.655-155.916,53.655c-10.134,0-20.116-0.612-29.944-1.721c55.567,35.681,121.536,56.485,192.438,56.485 | ||
| 34 | c230.948,0,357.188-191.291,357.188-357.188l-0.421-16.253C573.872,163.526,595.211,141.422,612,116.258z" /> | ||
| 35 | </g> | ||
| 36 | </svg> | ||
| 37 | </a> | ||
| 38 | </nav> | ||
| 39 | </menu> | ||
diff --git a/layouts/page.njk b/layouts/page.njk new file mode 100644 index 0000000..1e9aa4d --- /dev/null +++ b/layouts/page.njk | |||
| @@ -0,0 +1,56 @@ | |||
| 1 | <!DOCTYPE html> | ||
| 2 | <html lang="en"> | ||
| 3 | |||
| 4 | <head> | ||
| 5 | <meta charset="utf-8"> | ||
| 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| 7 | <meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
| 8 | <meta name="theme-color" content="#ffffff"> | ||
| 9 | |||
| 10 | <meta name="google-site-verification" content="EwUGW1WlCkRIQuyQ9AE1-bLitWthw-eVMZFTAMZVZaA"> | ||
| 11 | |||
| 12 | <title>{{ title }}</title> | ||
| 13 | <meta name="author" content="{{ vars.author }}"> | ||
| 14 | <meta name="description" content="{{ description }}"> | ||
| 15 | |||
| 16 | <meta name="og:url" content="{{ vars.domain }}/{{ slug }}"> | ||
| 17 | <meta name="og:type" content="website"> | ||
| 18 | <meta name="og:title" content="{{ title }}"> | ||
| 19 | <meta name="og:description" content="{{ description }}"> | ||
| 20 | <meta name="og:image" content="{{ vars.domain }}/assets/avatar.gif?ver={{ timestamp }}"> | ||
| 21 | |||
| 22 | <meta name="twitter:card" content="summary"> | ||
| 23 | <meta name="twitter:site" content="@mitjafelicijan"> | ||
| 24 | <meta name="twitter:title" content="{{ title }}"> | ||
| 25 | <meta name="twitter:description" content="{{ description }}"> | ||
| 26 | <meta name="twitter:image" content="{{ vars.domain }}/assets/avatar.gif?ver={{ timestamp }}"> | ||
| 27 | |||
| 28 | {{ css }} | ||
| 29 | |||
| 30 | </head> | ||
| 31 | |||
| 32 | <body> | ||
| 33 | |||
| 34 | <main class="wrapper"> | ||
| 35 | |||
| 36 | {% include "navigation.njk" %} | ||
| 37 | |||
| 38 | <article> | ||
| 39 | |||
| 40 | <header> | ||
| 41 | <h1>{{ title }}</h1> | ||
| 42 | </header> | ||
| 43 | |||
| 44 | {{ content }} | ||
| 45 | |||
| 46 | </article> | ||
| 47 | |||
| 48 | {{ javascript }} | ||
| 49 | |||
| 50 | {% include "footer.njk" %} | ||
| 51 | |||
| 52 | </main> | ||
| 53 | |||
| 54 | </body> | ||
| 55 | |||
| 56 | </html> | ||
diff --git a/layouts/post.njk b/layouts/post.njk new file mode 100644 index 0000000..2fc0f7b --- /dev/null +++ b/layouts/post.njk | |||
| @@ -0,0 +1,59 @@ | |||
| 1 | <!DOCTYPE html> | ||
| 2 | <html lang="en"> | ||
| 3 | |||
| 4 | <head> | ||
| 5 | <meta charset="utf-8"> | ||
| 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| 7 | <meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
| 8 | <meta name="theme-color" content="#ffffff"> | ||
| 9 | |||
| 10 | <meta name="google-site-verification" content="EwUGW1WlCkRIQuyQ9AE1-bLitWthw-eVMZFTAMZVZaA"> | ||
| 11 | |||
| 12 | <title>{{ title }}</title> | ||
| 13 | <meta name="author" content="{{ vars.author }}"> | ||
| 14 | <meta name="description" content="{{ description }}"> | ||
| 15 | |||
| 16 | <meta name="og:url" content="{{ vars.domain }}/{{ slug }}"> | ||
| 17 | <meta name="og:type" content="website"> | ||
| 18 | <meta name="og:title" content="{{ title }}"> | ||
| 19 | <meta name="og:description" content="{{ description }}"> | ||
| 20 | <meta name="og:image" content="{{ vars.domain }}/assets/avatar.gif?ver={{ timestamp }}"> | ||
| 21 | |||
| 22 | <meta name="twitter:card" content="summary"> | ||
| 23 | <meta name="twitter:site" content="@mitjafelicijan"> | ||
| 24 | <meta name="twitter:title" content="{{ title }}"> | ||
| 25 | <meta name="twitter:description" content="{{ description }}"> | ||
| 26 | <meta name="twitter:image" content="{{ vars.domain }}/assets/avatar.gif?ver={{ timestamp }}"> | ||
| 27 | |||
| 28 | {{ css }} | ||
| 29 | |||
| 30 | </head> | ||
| 31 | |||
| 32 | <body> | ||
| 33 | |||
| 34 | <main class="wrapper"> | ||
| 35 | |||
| 36 | {% include "navigation.njk" %} | ||
| 37 | |||
| 38 | <article> | ||
| 39 | |||
| 40 | <header> | ||
| 41 | <h1>{{ title }}</h1> | ||
| 42 | <p class="pubdate">Published on | ||
| 43 | <time pubdate="{{ writtenDate.original }}">{{ writtenDate.formatted }}</time> | ||
| 44 | by {{ vars.author }}</p> | ||
| 45 | </header> | ||
| 46 | |||
| 47 | {{ content|safe }} | ||
| 48 | |||
| 49 | </article> | ||
| 50 | |||
| 51 | {{ javascript }} | ||
| 52 | |||
| 53 | {% include "footer.njk" %} | ||
| 54 | |||
| 55 | </main> | ||
| 56 | |||
| 57 | </body> | ||
| 58 | |||
| 59 | </html> | ||
