diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2020-12-28 06:38:05 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2020-12-28 06:38:05 +0100 |
| commit | da6a25065b6e300527a392ff66c74bbeb90ba192 (patch) | |
| tree | 88e092adb9249963667328c5ef1cf561fe2982cf /emailing/templates | |
| parent | 4c066bedb82d4b705d0e60308ceee64daf97388c (diff) | |
| download | mitjafelicijan.com-da6a25065b6e300527a392ff66c74bbeb90ba192.tar.gz | |
Added new weekly links
Diffstat (limited to 'emailing/templates')
| -rw-r--r-- | emailing/templates/index.hbs | 37 | ||||
| -rw-r--r-- | emailing/templates/mailing.hbs | 42 |
2 files changed, 79 insertions, 0 deletions
diff --git a/emailing/templates/index.hbs b/emailing/templates/index.hbs new file mode 100644 index 0000000..50b7bdd --- /dev/null +++ b/emailing/templates/index.hbs | |||
| @@ -0,0 +1,37 @@ | |||
| 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 | <title>Mitja Felicijan - Weekly links archive</title> | ||
| 14 | |||
| 15 | <link rel="stylesheet" href="https://mitjafelicijan.com/static/style.css"> | ||
| 16 | <link rel="icon" type="image/png" href="https://mitjafelicijan.com/static/avatar-64x64.png"> | ||
| 17 | |||
| 18 | </head> | ||
| 19 | |||
| 20 | <body> | ||
| 21 | |||
| 22 | <main> | ||
| 23 | |||
| 24 | <a href="/">⬅ Back home</a> | ||
| 25 | |||
| 26 | <h2>Weekly links archive</h2> | ||
| 27 | <ul class="article-list"> | ||
| 28 | {{#each files}} | ||
| 29 | <li><a href="/weekly-links/{{ this.file }}">{{ this.year }}, {{ this.week }}</a></li> | ||
| 30 | {{/each}} | ||
| 31 | </ul> | ||
| 32 | |||
| 33 | </main> | ||
| 34 | |||
| 35 | </body> | ||
| 36 | |||
| 37 | </html> | ||
diff --git a/emailing/templates/mailing.hbs b/emailing/templates/mailing.hbs new file mode 100644 index 0000000..42b464d --- /dev/null +++ b/emailing/templates/mailing.hbs | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | <html> | ||
| 2 | |||
| 3 | <head> | ||
| 4 | <title>{{ title }}</title> | ||
| 5 | </head> | ||
| 6 | |||
| 7 | <body style="background: #f2f2f2; padding: 60px; color: #222222; line-height: 22px; font-family: sans-serif, system-ui, -apple-system; font-size: 16px;"> | ||
| 8 | |||
| 9 | <div style="width: 650px; background: #ffffff; text-align: left; padding: 40px; margin: 0 auto; border-radius: 10px;"> | ||
| 10 | |||
| 11 | {{#each campaign.categories}} | ||
| 12 | {{#each this.links}} | ||
| 13 | <div style="margin-bottom: 30px;"> | ||
| 14 | <a href="{{this.url}}" style="color: #3252a8; font-weight: bold;">{{this.title}}</a> | ||
| 15 | <div style="margin-block-start: 5px; font-size: 90%;">{{this.excerpt}}</div> | ||
| 16 | <div> | ||
| 17 | {{#each this.tags}} | ||
| 18 | <span style="background: #e6e6e6; | ||
| 19 | color: #777; | ||
| 20 | border-radius: 3px; | ||
| 21 | padding: 0px 10px; | ||
| 22 | font-size: 70%; | ||
| 23 | display: inline-block; | ||
| 24 | margin-top: 5px; | ||
| 25 | font-weight: 600;">{{.}}</span> | ||
| 26 | {{/each}} | ||
| 27 | </div> | ||
| 28 | </div> | ||
| 29 | {{/each}} | ||
| 30 | {{/each}} | ||
| 31 | |||
| 32 | </div> | ||
| 33 | |||
| 34 | <div style="text-align: center; font-size: 80%; margin-top: 20px;"> | ||
| 35 | <a style="color: #666; margin: auto 10px" href="https://mitjafelicijan.com/weekly-links-archive/">weekly links archive</a> | ||
| 36 | <a style="color: #666; margin: auto 10px" href="https://mitjafelicijan.com">mitjafelicijan.com</a> | ||
| 37 | <a style="color: #666; margin: auto 10px" href="https://github.com/mitjafelicijan">github.com/mitjafelicijan</a> | ||
| 38 | </div> | ||
| 39 | |||
| 40 | </body> | ||
| 41 | |||
| 42 | </html> | ||
