diff options
author | clarkzjw <[email protected]> | 2023-03-01 19:14:59 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-03-01 20:21:47 -0800 |
commit | 375c0d2544b20124a8cf497819006e01cd217225 (patch) | |
tree | 8984bf464561722f33dd15f60a7872ff1aa71912 /site/_layouts | |
parent | f87fef5388ca419f79c4750810e302cedfc310f5 (diff) | |
download | photo-375c0d2544b20124a8cf497819006e01cd217225.tar.gz |
host photos.json on cloudflare r2
Diffstat (limited to 'site/_layouts')
-rw-r--r-- | site/_layouts/default.html | 37 | ||||
-rw-r--r-- | site/_layouts/redirect.html | 1 |
2 files changed, 38 insertions, 0 deletions
diff --git a/site/_layouts/default.html b/site/_layouts/default.html new file mode 100644 index 0000000..7ff8d4d --- /dev/null +++ b/site/_layouts/default.html | |||
@@ -0,0 +1,37 @@ | |||
1 | <!doctype html> | ||
2 | <html lang="en"> | ||
3 | <head> | ||
4 | <meta content="width=device-width, initial-scale=1.0" name="viewport"> | ||
5 | <meta content="text/html; charset=utf-8" http-equiv="content-type"> | ||
6 | <link rel="icon" href="/assets/icon.png" type="image/png" sizes="24x24"> | ||
7 | <link href="/assets/new.css" rel="stylesheet" type="text/css"> | ||
8 | <meta content="summary" name="twitter:card"> | ||
9 | <meta content="{{ site.title }}" name="twitter:title"> | ||
10 | <title>Photos</title> | ||
11 | <meta content="{{ site.title }}" property="og:title"> | ||
12 | <meta content="blog" property="og:type"> | ||
13 | <meta content="{{ site.description }}" name="description"> | ||
14 | <link href="https://fonts.googleapis.com/css2?family=Readex+Pro&display=swap" rel="stylesheet"> | ||
15 | |||
16 | </head> | ||
17 | <body class="{% if page.root != true %}post-body{% endif %}" data-page-title="{{ page.title }}"> | ||
18 | <header> | ||
19 | <h1 class="h1"> | ||
20 | {{ page.title }} | ||
21 | </h1> | ||
22 | </header> | ||
23 | <main> | ||
24 | {{ content }} | ||
25 | </main> | ||
26 | <footer> | ||
27 | <hr class="hr"> | ||
28 | {% capture label %}View source{% endcapture %} | ||
29 | Made w/ ❤️ from 🇨🇦 | ||
30 | (<a href="https://cgit.jinwei.me/clarkzjw/photo/">{{ label }}</a>) | ||
31 | </footer> | ||
32 | |||
33 | {% if page.root %} | ||
34 | <script defer type="module" src="/assets/site.js"></script> | ||
35 | {% endif %} | ||
36 | </body> | ||
37 | </html> | ||
diff --git a/site/_layouts/redirect.html b/site/_layouts/redirect.html new file mode 100644 index 0000000..3e2238f --- /dev/null +++ b/site/_layouts/redirect.html | |||
@@ -0,0 +1 @@ | |||
<meta http-equiv="refresh" content="0; url={{ page.redirect_to }}"> | |||