Skip to content

Commit 16ae5e1

Browse files
authored
Merge pull request #562 from cocopuff2u/nist-pages-docs
Fix Wordwrap Safari Mobile & Google Analytics
2 parents 7f99c77 + b49271b commit 16ae5e1

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

astro.config.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,16 @@ head: [
3333
{
3434
tag: 'script',
3535
attrs: {
36+
is: 'inline',
3637
async: 'async',
3738
src: 'https://www.googletagmanager.com/gtag/js?id=G-QBDGYZRSGT',
3839
},
3940
},
4041
{
4142
tag: 'script',
43+
attrs: {
44+
is: 'inline',
45+
},
4246
children: `
4347
window.dataLayer = window.dataLayer || [];
4448
function gtag(){dataLayer.push(arguments);}

public/scripts/github-latest-release.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ function injectReleaseBoxStyles() {
110110
[data-theme="dark"] .github-release-info strong {
111111
color: #fff;
112112
}
113+
.github-release-notes {
114+
overflow-wrap: anywhere;
115+
word-break: break-word;
116+
}
113117
`;
114118
document.head.appendChild(style);
115119
}

0 commit comments

Comments
 (0)