feat: DEV-99 blog migration (#3870)

* feat: blog migration w/ fixes

Co-authored-by: Prospector <prospectordev@gmail.com>

* feat: add changelog button to news page

* fix: lint issues

* refactor: replace nuxt content with `@modrinth/blog`

* feat: shared public folder

* feat: try lazy loading html content

* feat: rss + hide newsletter btn + blog.config.ts

* feat: add new chapter modrinth servers post

* fix: lint issues

* fix: only generate RSS feed if changes detected

* fix: utils dep

* fix: lockfile dep

* feat: GET /email/subscribe + subscription button

* fix: lint issues

* feat: articles.json for app

* Made grid more responsive

* fix: changes

* Make margin slightly smaller in lists

* Fix footer link

* feat: latest news

* Fix responsiveness

* Remove old utm link

* Update changelog

* Lint

---------

Co-authored-by: Prospector <prospectordev@gmail.com>
This commit is contained in:
IMB11
2025-07-01 02:59:08 +01:00
committed by GitHub
parent fdb2b1195e
commit eef09e1ffe
220 changed files with 5094 additions and 681 deletions
+34
View File
@@ -0,0 +1,34 @@
import * as path from 'path'
import { repoPath } from './utils'
/**
* The glob pattern to find all markdown articles which should be compiled.
*/
export const ARTICLES_GLOB = repoPath('packages/blog/articles/**/*.md')
/**
* The directory where compiled articles are stored.
*/
export const COMPILED_DIR = repoPath('packages/blog/compiled')
export const ROOT_FILE = path.join(COMPILED_DIR, 'index.ts')
/**
* The source directory for public assets used in articles.
*/
export const PUBLIC_SRC = repoPath('packages/blog/public')
/**
* An array of git-repository-root-relative paths where public assets should be copied to.
*/
export const PUBLIC_LOCATIONS = [repoPath('apps/frontend/src/public/news/article')]
/**
* The git-repository-root-relative path to the frontend RSS feed file.
*/
export const RSS_PATH = repoPath('apps/frontend/src/public/news/feed/rss.xml')
export const JSON_PATH = repoPath('apps/frontend/src/public/news/feed/articles.json')
/**
* The base URL of the Modrinth site, used for the RSS feed.
*/
export const SITE_URL = 'https://modrinth.com'