We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e8c9ef commit b9850caCopy full SHA for b9850ca
scripts/gen.ts
@@ -7,6 +7,7 @@ import util from 'util';
7
import { QuestionFrontmatter, QuestionItem, QuestionMetadata } from './types';
8
import { GITHUB_ORG, GITHUB_REPO } from './constants';
9
import questionsAll from '../data/questions.json';
10
+import url from 'node:url';
11
12
const README_PATH_EN = 'README.md';
13
@@ -52,7 +53,15 @@ async function processQuestion(
52
53
return {
54
locale,
55
metadata,
- href: `https://greatfrontend.com/questions/quiz/${metadata.slug}`,
56
+ href:
57
+ 'https://www.greatfrontend.com' +
58
+ url.format({
59
+ pathname: `/questions/quiz/${metadata.slug}`,
60
+ query: {
61
+ language: 'js',
62
+ tab: 'quiz',
63
+ },
64
+ }),
65
title,
66
titleSlug: slug(title),
67
content: tlDrPart
0 commit comments