Skip to content

Commit b9788f2

Browse files
committed
refactor: update og image
1 parent 033dde6 commit b9788f2

3 files changed

Lines changed: 38 additions & 17 deletions

File tree

index.html

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
/>
2828
<meta
2929
property="og:image"
30-
content="https://devtoolkit.mingrammer.com/og-image.svg"
30+
content="https://devtoolkit.mingrammer.com/og-image.png"
3131
/>
3232
<meta property="og:site_name" content="DevToolKit" />
3333

@@ -77,16 +77,22 @@
7777
<script type="text/javascript">
7878
// Single Page Apps for GitHub Pages
7979
// Redirect from query string back to route
80-
(function(l) {
81-
if (l.search[1] === '/' ) {
82-
var decoded = l.search.slice(1).split('&').map(function(s) {
83-
return s.replace(/~and~/g, '&')
84-
}).join('?');
85-
window.history.replaceState(null, null,
86-
l.pathname.slice(0, -1) + decoded + l.hash
80+
(function (l) {
81+
if (l.search[1] === "/") {
82+
var decoded = l.search
83+
.slice(1)
84+
.split("&")
85+
.map(function (s) {
86+
return s.replace(/~and~/g, "&");
87+
})
88+
.join("?");
89+
window.history.replaceState(
90+
null,
91+
null,
92+
l.pathname.slice(0, -1) + decoded + l.hash
8793
);
8894
}
89-
}(window.location))
95+
})(window.location);
9096
</script>
9197

9298
<!-- Structured Data -->

public/og-image.png

95.5 KB
Loading

public/og-image.svg

Lines changed: 23 additions & 8 deletions
Loading

0 commit comments

Comments
 (0)