diff --git a/art/costadelsol.json b/art/costadelsol.json index c6ad806..b1b0424 100644 --- a/art/costadelsol.json +++ b/art/costadelsol.json @@ -9,5 +9,8 @@ "newgrounds_url": "https://www.newgrounds.com/art/view/redstrate/costa-del-sol", "pixiv_url": "https://www.pixiv.net/artworks/115946355", "program": "Krita", + "tags": [ + "fan art" + ], "title": "Costa del Sol" } diff --git a/content/art/2024/costadelsol.md b/content/art/2024/costadelsol.md index 2138e08..423d04b 100644 --- a/content/art/2024/costadelsol.md +++ b/content/art/2024/costadelsol.md @@ -8,6 +8,8 @@ slug: costadelsol characters: - Tifa - Aerith +arttags: +- fan art mastodon_url: https://mastodon.art/@redstrate/111909720876173011 pixiv_url: https://www.pixiv.net/artworks/115946355 newgrounds_url: https://www.newgrounds.com/art/view/redstrate/costa-del-sol diff --git a/content/art/stats/_index.md b/content/art/stats/_index.md index 94cb5b6..c959fc3 100644 --- a/content/art/stats/_index.md +++ b/content/art/stats/_index.md @@ -64,7 +64,7 @@ tags: - name: 3d num: 19 - name: fan art - num: 50 + num: 51 - name: sketch num: 109 --- diff --git a/themes/red/assets/css/site.css b/themes/red/assets/css/site.css index 36ed18e..2dffaf6 100644 --- a/themes/red/assets/css/site.css +++ b/themes/red/assets/css/site.css @@ -53,6 +53,11 @@ flex-direction: column; flex-grow: 1; } + + #nav-menu > summary { + visibility: hidden; + height: 0; + } } .gutter-sizer { diff --git a/themes/red/assets/js/site.js b/themes/red/assets/js/site.js index efbbd2b..fa50977 100644 --- a/themes/red/assets/js/site.js +++ b/themes/red/assets/js/site.js @@ -1,3 +1,11 @@ -if (window.matchMedia('(max-device-width: 768px)').matches) { - document.getElementById("nav-menu").open = false; +function checkWidth() { + if (window.matchMedia('(max-device-width: 768px)').matches) { + document.getElementById("nav-menu").open = false; + } else { + document.getElementById("nav-menu").open = true; + } } + +window.onresize = function() { + checkWidth(); +};