Skip to content

Commit 8e0eb18

Browse files
committed
plausible, katex as package not from cdn
1 parent 1df3a9e commit 8e0eb18

File tree

4 files changed

+58
-15
lines changed

4 files changed

+58
-15
lines changed

index.html

Lines changed: 34 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,50 @@
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<title>Equations Explained Colorfully</title>
7-
<meta name="description" content="Interactive mathematical equations with KaTeX rendering. Write equations in LaTeX and descriptions in Markdown, with color-coded terms that reveal their meaning on hover. Built with TypeScript." />
7+
<meta
8+
name="description"
9+
content="Interactive mathematical equations with KaTeX rendering. Write equations in LaTeX and descriptions in Markdown, with color-coded terms that reveal their meaning on hover. Built with TypeScript."
10+
/>
811

912
<!-- Open Graph / Facebook -->
1013
<meta property="og:type" content="website" />
11-
<meta property="og:url" content="https://p.migdal.pl/equations-explained-colorfully/" />
14+
<meta
15+
property="og:url"
16+
content="https://p.migdal.pl/equations-explained-colorfully/"
17+
/>
1218
<meta property="og:title" content="Equations Explained Colorfully" />
13-
<meta property="og:description" content="Interactive mathematical equations with KaTeX rendering. Write equations in LaTeX and descriptions in Markdown, with color-coded terms that reveal their meaning on hover. Built with TypeScript." />
14-
<meta property="og:image" content="https://p.migdal.pl/equations-explained-colorfully/social-media-preview.png" />
19+
<meta
20+
property="og:description"
21+
content="Interactive mathematical equations with KaTeX rendering. Write equations in LaTeX and descriptions in Markdown, with color-coded terms that reveal their meaning on hover. Built with TypeScript."
22+
/>
23+
<meta
24+
property="og:image"
25+
content="https://p.migdal.pl/equations-explained-colorfully/social-media-preview.png"
26+
/>
1527

1628
<!-- Twitter -->
1729
<meta property="twitter:card" content="summary_large_image" />
18-
<meta property="twitter:url" content="https://p.migdal.pl/equations-explained-colorfully/" />
30+
<meta
31+
property="twitter:url"
32+
content="https://p.migdal.pl/equations-explained-colorfully/"
33+
/>
1934
<meta property="twitter:title" content="Equations Explained Colorfully" />
20-
<meta property="twitter:description" content="Interactive mathematical equations with KaTeX rendering. Write equations in LaTeX and descriptions in Markdown, with color-coded terms that reveal their meaning on hover. Built with TypeScript." />
21-
<meta property="twitter:image" content="https://p.migdal.pl/equations-explained-colorfully/social-media-preview.png" />
35+
<meta
36+
property="twitter:description"
37+
content="Interactive mathematical equations with KaTeX rendering. Write equations in LaTeX and descriptions in Markdown, with color-coded terms that reveal their meaning on hover. Built with TypeScript."
38+
/>
39+
<meta
40+
property="twitter:image"
41+
content="https://p.migdal.pl/equations-explained-colorfully/social-media-preview.png"
42+
/>
2243

2344
<!-- Fonts -->
24-
<link rel="preconnect" href="https://fonts.googleapis.com">
25-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
26-
<link href="https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,200..900;1,200..900&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
27-
28-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" />
45+
<link rel="preconnect" href="https://fonts.googleapis.com" />
46+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
47+
<link
48+
href="https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,200..900;1,200..900&family=Inter:wght@400;500;600&display=swap"
49+
rel="stylesheet"
50+
/>
2951
</head>
3052
<body>
3153
<div id="app"></div>

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"@vitejs/plugin-vue": "^6.0.2",
3939
"codejar": "^4.3.0",
4040
"katex": "^0.16.25",
41+
"plausible-tracker": "^0.3.9",
4142
"prismjs": "^1.30.0",
4243
"tex2typst": "^0.4.1",
4344
"vue": "^3.5.25"

pnpm-lock.yaml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
import { createApp } from 'vue'
2-
import App from './App.vue'
1+
import { createApp } from "vue";
2+
import App from "./App.vue";
3+
import Plausible from "plausible-tracker";
4+
import "katex/dist/katex.min.css";
35

4-
createApp(App).mount('#app')
6+
// Initialize Plausible Analytics
7+
const { enableAutoPageviews } = Plausible({
8+
domain: "p.migdal.pl",
9+
apiHost: "https://plausible.io",
10+
});
11+
12+
enableAutoPageviews();
13+
14+
createApp(App).mount("#app");

0 commit comments

Comments
 (0)