mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-16 19:51:07 +02:00
test: code block style
This commit is contained in:
parent
85de183ccc
commit
dc24da0cb7
13 changed files with 206 additions and 277 deletions
|
@ -142,10 +142,15 @@ window
|
|||
{googleAnalyticsID && (
|
||||
<>
|
||||
<script
|
||||
is:inline
|
||||
type="text/partytown"
|
||||
src={customGoogleAnalyticsJS || `https://www.googletagmanager.com/gtag/js?id=${googleAnalyticsID}`}
|
||||
/>
|
||||
<script type="text/partytown" define:vars={{ googleAnalyticsID, customGoogleAnalyticsJS }}>
|
||||
<script
|
||||
is:inline
|
||||
type="text/partytown"
|
||||
define:vars={{ googleAnalyticsID, customGoogleAnalyticsJS }}
|
||||
>
|
||||
window.dataLayer = window.dataLayer || []
|
||||
function gtag(...args) {
|
||||
dataLayer.push(args)
|
||||
|
@ -167,6 +172,7 @@ window
|
|||
<!-- Umami Analytics -->
|
||||
{umamiAnalyticsID && (
|
||||
<script
|
||||
is:inline
|
||||
type="text/partytown"
|
||||
crossorigin="anonymous"
|
||||
data-website-id={umamiAnalyticsID}
|
||||
|
|
|
@ -95,7 +95,7 @@ const mobileFooterMargin = isPost && themeConfig.comment?.waline?.serverURL
|
|||
</div>
|
||||
|
||||
<!-- Theme toggle >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> -->
|
||||
<script define:vars={{ lightMode, darkMode }}>
|
||||
<script is:inline define:vars={{ lightMode, darkMode }}>
|
||||
// Update theme
|
||||
function updateTheme() {
|
||||
// Toggle website theme
|
||||
|
@ -151,7 +151,7 @@ const mobileFooterMargin = isPost && themeConfig.comment?.waline?.serverURL
|
|||
</script>
|
||||
|
||||
<!-- Back home >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> -->
|
||||
<script define:vars={{ localizedHome }}>
|
||||
<script is:inline define:vars={{ localizedHome }}>
|
||||
function setupBackButton() {
|
||||
document.getElementById('back-button')?.addEventListener('click', () => {
|
||||
if (document.referrer) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue