From 856f1fae88d101835bc5e0fc2bebac39e766249a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=9F=E9=85=8C=20=E9=B5=AC=E5=85=84?= Date: Tue, 19 Apr 2022 19:12:02 +0900 Subject: [PATCH] Fixed broken archive buttons --- botanjs/src/Astro/Blog/Layout/MainFrame.js | 17 +++++++++++++++++ k8s/deployments.yaml | 4 ++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/botanjs/src/Astro/Blog/Layout/MainFrame.js b/botanjs/src/Astro/Blog/Layout/MainFrame.js index 1f19456..2cdbd88 100644 --- a/botanjs/src/Astro/Blog/Layout/MainFrame.js +++ b/botanjs/src/Astro/Blog/Layout/MainFrame.js @@ -53,6 +53,23 @@ initTopButton(); navControl(); initBackgroundParallax(); + initArchiveButtons(); + }; + + var initArchiveButtons = function() + { + Dand.id( "archive-save" ) + .setAttribute( + "href", "https://archive.today/?run=1&url=" + encodeURIComponent( document.location ) + ); + Dand.id( "archive-view" ) + .setAttribute( + "href", "https://archive.today/" + document.location.href + ); + Dand.id( "archive-list" ) + .setAttribute( + "href", "https://archive.today/" + encodeURIComponent( document.location.hostname ) + ); }; var topButtons = []; diff --git a/k8s/deployments.yaml b/k8s/deployments.yaml index da8c8c4..f3e25f1 100644 --- a/k8s/deployments.yaml +++ b/k8s/deployments.yaml @@ -26,7 +26,7 @@ spec: mountPath: "/app/cache" containers: - name: web - image: registry.k8s.astropenguin.net/astrojs:2022.04.10 + image: registry.k8s.astropenguin.net/astrojs:2022.04.19 securityContext: runAsGroup: 1001 runAsNonRoot: true @@ -54,7 +54,7 @@ spec: - name: redis image: redis:6.0.8-alpine - name: compiler - image: registry.k8s.astropenguin.net/astrojs:2022.04.10 + image: registry.k8s.astropenguin.net/astrojs:2022.04.19 securityContext: runAsGroup: 1001 runAsNonRoot: true