Skip to content

Commit

Permalink
feat: thêm Google Analytics và Mermaid
Browse files Browse the repository at this point in the history
  • Loading branch information
ooker777 committed Aug 11, 2024
1 parent 2fa3815 commit 9fd3dde
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
8 changes: 7 additions & 1 deletion _config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,19 @@ import wiki from "wiki/mod.ts";
import metas from "lume/plugins/metas.ts";
import ogImages from "lume/plugins/og_images.ts";

const markdown = {
options: {
breaks: true,
},
};

const site = lume({
src: "./docs",
location: new URL("https://vậtlý.quảcầu.cc"),
server: {
open: true,
},
});
}, { markdown });

site.use(wiki({
favicon: {
Expand Down
17 changes: 16 additions & 1 deletion docs/_data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,19 @@ metas:
generator: true

openGraphLayout: og_image.jsx
extra_head: <div>AAAAAAAAAAAAAA</div>
extra_head: |
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-MWZ4WG7');</script>
<!-- End Google Tag Manager -->
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MWZ4WG7"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<script type="module">
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs';
mermaid.initialize({ startOnLoad: true });
</script>

0 comments on commit 9fd3dde

Please sign in to comment.