mirror of
https://github.com/modrinth/code.git
synced 2026-08-27 18:14:49 +00:00
feat: analytics 2.0 blogpost (#6235)
* feat: analytics 2.0 blogpost * update blog post * performance: compress mp4s * date --------- Co-authored-by: Prospector <6166773+Prospector@users.noreply.github.com> Co-authored-by: tdgao <mr.trumgao@gmail.com>
This commit is contained in:
co-authored by
Prospector
tdgao
parent
99611d22c7
commit
206813b74c
@@ -125,8 +125,6 @@ export default defineNuxtConfig({
|
||||
const docTemplates = Object.keys(
|
||||
await import('./src/templates/docs/index.ts').then((m) => m.default),
|
||||
)
|
||||
const blogArticles = await import('@modrinth/blog').then((m) => m.articles)
|
||||
const { getChangelog } = await import('@modrinth/blog')
|
||||
|
||||
nitroConfig.prerender = nitroConfig.prerender || {}
|
||||
nitroConfig.prerender.routes = nitroConfig.prerender.routes || []
|
||||
@@ -136,15 +134,6 @@ export default defineNuxtConfig({
|
||||
for (const template of docTemplates) {
|
||||
nitroConfig.prerender.routes.push(`/_internal/templates/doc/${template}`)
|
||||
}
|
||||
nitroConfig.prerender.routes.push('/news')
|
||||
for (const article of blogArticles) {
|
||||
nitroConfig.prerender.routes.push(`/news/article/${article.slug}`)
|
||||
}
|
||||
nitroConfig.prerender.routes.push('/news/changelog')
|
||||
for (const entry of getChangelog()) {
|
||||
const id = entry.version ?? entry.date.unix()
|
||||
nitroConfig.prerender.routes.push(`/news/changelog/${entry.product}/${id}`)
|
||||
}
|
||||
},
|
||||
async 'build:before'() {
|
||||
// 30 minutes
|
||||
|
||||
@@ -177,9 +177,9 @@
|
||||
{{
|
||||
user.bio
|
||||
? user.bio
|
||||
: projects.length === 0
|
||||
? formatMessage(messages.bioFallbackUser)
|
||||
: formatMessage(messages.bioFallbackCreator)
|
||||
: projects?.length > 0
|
||||
? formatMessage(messages.bioFallbackCreator)
|
||||
: formatMessage(messages.bioFallbackUser)
|
||||
}}
|
||||
</template>
|
||||
<template v-if="!isModrinthUser" #stats>
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.1 MiB |
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 268 KiB |
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 104 KiB |
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 139 KiB |
@@ -1,5 +1,12 @@
|
||||
{
|
||||
"articles": [
|
||||
{
|
||||
"title": "Project Analytics are good now",
|
||||
"summary": "Get deeper insights into how people are using your projects with breakdowns, filtering, and more!",
|
||||
"thumbnail": "https://modrinth.com/news/article/analytics-overhaul/thumbnail.webp",
|
||||
"date": "2026-05-29T11:00:00.000Z",
|
||||
"link": "https://modrinth.com/news/article/analytics-overhaul"
|
||||
},
|
||||
{
|
||||
"title": "Modrinth Hosting in the App",
|
||||
"summary": "Buy, setup, and manage your server all in the Modrinth App.",
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user