diff --git a/CHANGELOG.md b/CHANGELOG.md index cd1aea887..155aeba35 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Set up `ng-extract-i18n-merge` to improve the i18n extraction and merge workflow - Set up language localization for German (`de`) +- Resolved the feature graphic of the blog post ### Changed diff --git a/apps/api/src/app/frontend.middleware.ts b/apps/api/src/app/frontend.middleware.ts index 54bdcd49a..6064f0f83 100644 --- a/apps/api/src/app/frontend.middleware.ts +++ b/apps/api/src/app/frontend.middleware.ts @@ -1,13 +1,33 @@ import * as path from 'path'; import { DEFAULT_LANGUAGE_CODE } from '@ghostfolio/common/config'; -import { Injectable, NestMiddleware } from '@nestjs/common'; +import { Injectable, Logger, NestMiddleware } from '@nestjs/common'; import { NextFunction, Request, Response } from 'express'; @Injectable() export class FrontendMiddleware implements NestMiddleware { use(req: Request, res: Response, next: NextFunction) { - if (req.path.startsWith('/api/') || this.isFileRequest(req.url)) { + if (req.url.includes('cover.png')) { + Logger.log(`Referer: ${req.headers.referer}`, 'FrontendMiddleware'); + + // Resolve feature graphic for blog post + if (req.headers.referer?.includes('500-stars-on-github')) { + res.sendFile( + path.join( + __dirname, + '..', + 'client', + 'assets', + 'images', + 'blog', + '500-stars-on-github.jpg' + ) + ); + } else { + // Skip + next(); + } + } else if (req.path.startsWith('/api/') || this.isFileRequest(req.url)) { // Skip next(); } else if (req.path.startsWith('/de/')) { diff --git a/apps/client/src/app/pages/blog/2022/08/500-stars-on-github/500-stars-on-github-page.html b/apps/client/src/app/pages/blog/2022/08/500-stars-on-github/500-stars-on-github-page.html index 5807210ab..68aa4c8ba 100644 --- a/apps/client/src/app/pages/blog/2022/08/500-stars-on-github/500-stars-on-github-page.html +++ b/apps/client/src/app/pages/blog/2022/08/500-stars-on-github/500-stars-on-github-page.html @@ -4,7 +4,7 @@

500 Stars

-
2022-08-13
+
2022-08-18
500 Stars on GitHub Teaser
500 Stars on GitHub
-
2022-08-10
+
2022-08-18
https://ghostfol.io - 2022-08-13T00:00:00+00:00 + 2022-08-18T00:00:00+00:00 https://ghostfol.io/de/blog/2021/07/hallo-ghostfolio - 2022-08-13T00:00:00+00:00 + 2022-08-18T00:00:00+00:00 https://ghostfol.io/en/about - 2022-08-13T00:00:00+00:00 + 2022-08-18T00:00:00+00:00 https://ghostfol.io/en/about/changelog - 2022-08-13T00:00:00+00:00 + 2022-08-18T00:00:00+00:00 https://ghostfol.io/en/blog - 2022-08-13T00:00:00+00:00 + 2022-08-18T00:00:00+00:00 https://ghostfol.io/en/blog/2021/07/hello-ghostfolio - 2022-08-13T00:00:00+00:00 + 2022-08-18T00:00:00+00:00 https://ghostfol.io/en/blog/2022/01/ghostfolio-first-months-in-open-source - 2022-08-13T00:00:00+00:00 + 2022-08-18T00:00:00+00:00 https://ghostfol.io/en/blog/2022/07/ghostfolio-meets-internet-identity - 2022-08-13T00:00:00+00:00 + 2022-08-18T00:00:00+00:00 https://ghostfol.io/en/blog/2022/07/how-do-i-get-my-finances-in-order - 2022-08-13T00:00:00+00:00 + 2022-08-18T00:00:00+00:00 https://ghostfol.io/en/blog/2022/08/500-stars-on-github - 2022-08-13T00:00:00+00:00 + 2022-08-18T00:00:00+00:00 https://ghostfol.io/en/demo - 2022-08-13T00:00:00+00:00 + 2022-08-18T00:00:00+00:00 https://ghostfol.io/en/faq - 2022-08-13T00:00:00+00:00 + 2022-08-18T00:00:00+00:00 https://ghostfol.io/en/features - 2022-08-13T00:00:00+00:00 + 2022-08-18T00:00:00+00:00 https://ghostfol.io/en/markets - 2022-08-13T00:00:00+00:00 + 2022-08-18T00:00:00+00:00 https://ghostfol.io/en/pricing - 2022-08-13T00:00:00+00:00 + 2022-08-18T00:00:00+00:00 https://ghostfol.io/en/register - 2022-08-13T00:00:00+00:00 + 2022-08-18T00:00:00+00:00 https://ghostfol.io/en/resources - 2022-08-13T00:00:00+00:00 + 2022-08-18T00:00:00+00:00 diff --git a/apps/client/src/index.html b/apps/client/src/index.html index 970431f9d..acbda874e 100644 --- a/apps/client/src/index.html +++ b/apps/client/src/index.html @@ -19,10 +19,7 @@ name="twitter:description" content="Ghostfolio is a lightweight wealth management application for individuals to keep track of stocks, ETFs or cryptocurrencies" /> - + - - + +