Skip to content

Commit 17c6202

Browse files
committed
feat: add new category "extra guides"
1 parent 08c3f19 commit 17c6202

File tree

9 files changed

+50
-3
lines changed

9 files changed

+50
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/backend/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "web"
3-
version = "3.1.11"
3+
version = "3.1.12"
44
edition = "2024"
55

66
[dependencies]

apps/backend/redirects.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,5 +183,10 @@
183183
"from": "/docs?page=about/changelog/alpha-F0V",
184184
"to": "/releases/alpha-f0v",
185185
"status": 301
186+
},
187+
{
188+
"from": "/guides/community/install-update-nodejs",
189+
"to": "/guides/extra/install-update-nodejs",
190+
"status": 301
186191
}
187192
]

apps/frontend/content/guides/community/install-update-nodejs.md renamed to apps/frontend/content/guides/extra/install-update-nodejs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: How to install Node.js on Ubuntu/Debian
33
description: Install or update/downgrade Node.js to use it for Pterodactyl and Blueprint
44
author: Emma
5-
category: community
5+
category: extra
66
thumbnail: nodejs.jpeg
77
---
88

302 KB
Loading
31.9 KB
Loading

apps/frontend/src/assets/guides.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ export const guidesCategories: Record<string, CategoryConfig> = {
2121
label: 'Community Guides',
2222
order: 3,
2323
},
24+
extra: {
25+
icon: 'memory:dagger',
26+
label: 'Extra Guides',
27+
order: 4,
28+
},
2429
}
2530

2631
export const defaultCategory: CategoryConfig = {
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<template>
2+
<div
3+
class="upsell-container group cursor-pointer border-neutral-700 bg-neutral-900 md:border-b"
4+
@click="link?.click()"
5+
>
6+
<div
7+
class="bg-linear-to-r min-h-25 flex w-full flex-col gap-2 from-neutral-900 via-neutral-900 to-neutral-950/50 md:p-8"
8+
>
9+
<h2>The game-hosting industry builds on Blueprint</h2>
10+
<p>
11+
Pterodactyl's favorite modding community. Develop, collaborate and
12+
install extensions with the extension platform that puts you first.
13+
</p>
14+
<a href="/" tabindex="-1" ref="link">
15+
<button
16+
class="text-brand-50 flex cursor-pointer items-center gap-1 font-bold transition-all group-hover:gap-2"
17+
>
18+
<span> Learn more </span>
19+
<Icon name="memory:chevron-right" :size="22" />
20+
</button>
21+
</a>
22+
</div>
23+
</div>
24+
</template>
25+
26+
<style scoped>
27+
.upsell-container {
28+
background: url(/img/infoblur_alt.jpeg) no-repeat;
29+
background-size: 50%;
30+
background-position: center right;
31+
}
32+
</style>
33+
34+
<script setup lang="ts">
35+
const link = useTemplateRef('link')
36+
</script>

apps/frontend/src/pages/guides/[...slug].vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
</div>
4444
</div>
4545
</div>
46+
<UiUpsellExtraguidesInitial v-if="data.category == 'extra'" />
4647
<div class="w-full md:p-8">
4748
<ContentRenderer :value="data" class="prose-content space-y-2" />
4849
</div>

0 commit comments

Comments
 (0)