diff --git a/_includes/footer.html b/_includes/footer.html index 552e7a0..fb6a93c 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -21,7 +21,7 @@ {{ nw.name }} {% endfor %} - Email diff --git a/_includes/matomo.js b/_includes/matomo.js index b5aa886..214bac0 100644 --- a/_includes/matomo.js +++ b/_includes/matomo.js @@ -9,5 +9,5 @@ _paq.push(['enableLinkTracking']); _paq.push(['setTrackerUrl', u+'matomo.php']); _paq.push(['setSiteId', '{{ site.matomo_site_id }}']); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; - g.type='text/javascript'; g.async=true; g.defer=true; g.src='//cdn.matomo.cloud/terminalnetwork.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g,s); + g.type='text/javascript'; g.async=true; g.defer=true; g.src='https://cdn.matomo.cloud/terminalnetwork.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g,s); })(); diff --git a/_layouts/default.html b/_layouts/default.html index 1a89b54..3e247c3 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -16,6 +16,46 @@ + + + @@ -37,5 +77,7 @@ {% endunless %} {% include cookie-consent.html %} {% include scripts.html %} + - \ No newline at end of file + + diff --git a/_sass/libs/_vars.scss b/_sass/libs/_vars.scss index 1a8ebe8..0f7b113 100644 --- a/_sass/libs/_vars.scss +++ b/_sass/libs/_vars.scss @@ -133,7 +133,7 @@ $font: ( // Palette. $palette: ( - bg: rgb(60, 42, 82), + bg: #3c2a52, bg-alt: rgba(60, 42, 82, 0.75), fg: #ebdbf8, fg-alt: rgba(235, 219, 248, 0.25), diff --git a/android-icon-192x192-dunplab-manifest-9805.png b/android-icon-192x192-dunplab-manifest-9805.png new file mode 100644 index 0000000..0f1072d Binary files /dev/null and b/android-icon-192x192-dunplab-manifest-9805.png differ diff --git a/apple-icon-114x114-dunplab-manifest-9805.png b/apple-icon-114x114-dunplab-manifest-9805.png new file mode 100644 index 0000000..d257c17 Binary files /dev/null and b/apple-icon-114x114-dunplab-manifest-9805.png differ diff --git a/apple-icon-120x120-dunplab-manifest-9805.png b/apple-icon-120x120-dunplab-manifest-9805.png new file mode 100644 index 0000000..86564bf Binary files /dev/null and b/apple-icon-120x120-dunplab-manifest-9805.png differ diff --git a/apple-icon-144x144-dunplab-manifest-9805.png b/apple-icon-144x144-dunplab-manifest-9805.png new file mode 100644 index 0000000..221ed3d Binary files /dev/null and b/apple-icon-144x144-dunplab-manifest-9805.png differ diff --git a/apple-icon-152x152-dunplab-manifest-9805.png b/apple-icon-152x152-dunplab-manifest-9805.png new file mode 100644 index 0000000..3a2f305 Binary files /dev/null and b/apple-icon-152x152-dunplab-manifest-9805.png differ diff --git a/apple-icon-180x180-dunplab-manifest-9805.png b/apple-icon-180x180-dunplab-manifest-9805.png new file mode 100644 index 0000000..4ec1f53 Binary files /dev/null and b/apple-icon-180x180-dunplab-manifest-9805.png differ diff --git a/apple-icon-57x57-dunplab-manifest-9805.png b/apple-icon-57x57-dunplab-manifest-9805.png new file mode 100644 index 0000000..d8b5822 Binary files /dev/null and b/apple-icon-57x57-dunplab-manifest-9805.png differ diff --git a/apple-icon-60x60-dunplab-manifest-9805.png b/apple-icon-60x60-dunplab-manifest-9805.png new file mode 100644 index 0000000..4d59c8a Binary files /dev/null and b/apple-icon-60x60-dunplab-manifest-9805.png differ diff --git a/apple-icon-72x72-dunplab-manifest-9805.png b/apple-icon-72x72-dunplab-manifest-9805.png new file mode 100644 index 0000000..55550c9 Binary files /dev/null and b/apple-icon-72x72-dunplab-manifest-9805.png differ diff --git a/apple-icon-76x76-dunplab-manifest-9805.png b/apple-icon-76x76-dunplab-manifest-9805.png new file mode 100644 index 0000000..3372539 Binary files /dev/null and b/apple-icon-76x76-dunplab-manifest-9805.png differ diff --git a/assets/img/vignette.jpg b/assets/img/vignette.jpg deleted file mode 100644 index bfd76c1..0000000 Binary files a/assets/img/vignette.jpg and /dev/null differ diff --git a/favicon-16x16-dunplab-manifest-9805.png b/favicon-16x16-dunplab-manifest-9805.png new file mode 100644 index 0000000..649d48c Binary files /dev/null and b/favicon-16x16-dunplab-manifest-9805.png differ diff --git a/favicon-32x32-dunplab-manifest-9805.png b/favicon-32x32-dunplab-manifest-9805.png new file mode 100644 index 0000000..f3b66c2 Binary files /dev/null and b/favicon-32x32-dunplab-manifest-9805.png differ diff --git a/favicon-96x96-dunplab-manifest-9805.png b/favicon-96x96-dunplab-manifest-9805.png new file mode 100644 index 0000000..d7f0b4f Binary files /dev/null and b/favicon-96x96-dunplab-manifest-9805.png differ diff --git a/index.html b/index.html index 7a4a25f..b787b47 100644 --- a/index.html +++ b/index.html @@ -32,7 +32,7 @@ image: /images/pages/pingu.jpg
- + Cover art for {{ post.title }}
{{ album.name }}
@@ -67,7 +67,7 @@ image: /images/pages/pingu.jpg
- + Cover art for {{ post.title }}
{{ track.tracks[0].common.title }}
{% assign round_seconds = track.tracks[0].format.duration | round %}{% assign minutes = round_seconds | divided_by: 60 %}{% assign leftover_seconds = minutes | times: 60 %}{{ minutes }}:{% assign seconds_without_zero = round_seconds | minus: leftover_seconds %}{% if seconds_without_zero < 10 %}0{% endif %}{{ seconds_without_zero }} | diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..bd1d7af --- /dev/null +++ b/manifest.json @@ -0,0 +1,85 @@ +{ + "short_name": "徒 setto セット", + "name": "徒 setto セット Music PWA", + "lang": "en", + "description": "Music of 徒 setto セット in your phone", + "start_url": "/", + "background_color": "#3c2a52", + "theme_color": "#3c2a52", + "dir": "ltr", + "display": "standalone", + "orientation": "portrait", + "icons": [ + { + "src": "/setto-webapp.png", + "type": "image/png", + "sizes": "512x512" + }, + { + "src": "/android-icon-192x192-dunplab-manifest-9805.png", + "type": "image/png", + "sizes": "192x192" + }, + { + "src": "/apple-icon-180x180-dunplab-manifest-9805.png", + "type": "image/png", + "sizes": "180x180" + }, + { + "src": "/apple-icon-152x152-dunplab-manifest-9805.png", + "type": "image/png", + "sizes": "152x152" + }, + { + "src": "/apple-icon-144x144-dunplab-manifest-9805.png", + "type": "image/png", + "sizes": "144x144" + }, + { + "src": "/apple-icon-120x120-dunplab-manifest-9805.png", + "type": "image/png", + "sizes": "120x120" + }, + { + "src": "/apple-icon-114x114-dunplab-manifest-9805.png", + "type": "image/png", + "sizes": "114x114" + }, + { + "src": "/favicon-96x96-dunplab-manifest-9805.png", + "type": "image/png", + "sizes": "96x96" + }, + { + "src": "/apple-icon-76x76-dunplab-manifest-9805.png", + "type": "image/png", + "sizes": "76x76" + }, + { + "src": "/apple-icon-72x72-dunplab-manifest-9805.png", + "type": "image/png", + "sizes": "72x72" + }, + { + "src": "/apple-icon-60x60-dunplab-manifest-9805.png", + "type": "image/png", + "sizes": "60x60" + }, + { + "src": "/apple-icon-57x57-dunplab-manifest-9805.png", + "type": "image/png", + "sizes": "57x57" + }, + { + "src": "/favicon-32x32-dunplab-manifest-9805.png", + "type": "image/png", + "sizes": "32x32" + }, + { + "src": "/favicon-16x16-dunplab-manifest-9805.png", + "type": "image/png", + "sizes": "16x16" + } + ], + "prefer_related_applications": "false" +} diff --git a/service-worker.js b/service-worker.js new file mode 100644 index 0000000..2d47949 --- /dev/null +++ b/service-worker.js @@ -0,0 +1,36 @@ +--- +layout: nil +--- +var urlsToCache = []; + +var CACHE_NAME = 'Setto-cache-v1'; + +// Cache posts +// Limits the number of posts that gets cached to 3 +// Reads a piece of front-matter in each post that directs the second loop to the folder where the assets are held +{% for post in site.posts %} + urlsToCache.push("{{ post.url }}index.html") +{% endfor %} + +// Cache pages +// Do nothing if it's either an AMP page (as these are served via Googles cache) or the blog page +// Fallback to the offline pages for these +{% for page in site.html_pages %}{% unless page.sitemap == false %} + urlsToCache.push("{{ page.url }}index.html") +{% endunless %}{% endfor %} + +// Cache assets +// Removed assets/posts because I only want assets from the most recent posts getting cached +{% for file in site.static_files %}{% unless file.path contains 'albums' %} + urlsToCache.push("{{ file.path }}") +{% endunless %}{% endfor %} + + + +// Cache mp3 and cover art +{% for track in site.tracks %} + urlsToCache.push("{{ track.url }}") + urlsToCache.push("{{ site.mediaurl }}/{{ track.slug }}.mp3") + urlsToCache.push("{{ site.mediaurl }}/{{ track.slug }}.jpeg") +{% endfor %} + diff --git a/setto-webapp.png b/setto-webapp.png new file mode 100644 index 0000000..fb76d84 Binary files /dev/null and b/setto-webapp.png differ