Change all hardcoded /blog/ paths to use / as root:
Theme configuration:
- _config.yml: Menu paths now /cybersecurity/ instead of /blog/cybersecurity/
- Blog submenu path changed to /categories/
Layout templates:
- post.ejs: Category link uses url_for with root path
- index.ejs: "Voir le blog" links to /categories/
- category.ejs: Breadcrumb and back links use /categories/
Scripts:
- dynamic-blog.js: Category paths now /{slug}/ instead of /blog/{slug}/
- Menu blog path changed to /categories/
Presets:
- tech.yml: Menu paths updated
- portfolio.yml: Blog link updated
hexoctl:
- Default portal_path changed from /www/blog to /www
- Help text updated
This allows the blog to be served from the root URL with categories
at /{category}/ paths.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
75 lines
1.3 KiB
YAML
75 lines
1.3 KiB
YAML
# Tech Blog Preset
|
|
# Full-featured technical blog
|
|
|
|
name: Tech Blog
|
|
description: Full-featured technical blog with categories and tags
|
|
icon: code
|
|
|
|
theme:
|
|
default_mode: dark
|
|
allow_toggle: true
|
|
accent_color: "#10b981"
|
|
|
|
branding:
|
|
logo_symbol: "<>"
|
|
logo_text: "TechBlog_"
|
|
tagline: "Code, Security, Linux"
|
|
|
|
menu:
|
|
Home: /
|
|
Blog:
|
|
_path: /categories/
|
|
Security: /security/
|
|
Linux: /linux/
|
|
Development: /dev/
|
|
Tutorials: /tutorials/
|
|
Projects: /portfolio/
|
|
About: /about/
|
|
|
|
sections:
|
|
hero: true
|
|
services: false
|
|
apps: true
|
|
portfolio: true
|
|
articles: true
|
|
categories: true
|
|
youtube: false
|
|
about: true
|
|
|
|
limits:
|
|
posts: 6
|
|
apps: 6
|
|
portfolio: 4
|
|
categories: 6
|
|
tags: 12
|
|
|
|
categories:
|
|
security:
|
|
name: "Security"
|
|
icon: "lock"
|
|
color: "#ef4444"
|
|
linux:
|
|
name: "Linux"
|
|
icon: "terminal"
|
|
color: "#f59e0b"
|
|
dev:
|
|
name: "Development"
|
|
icon: "code"
|
|
color: "#3b82f6"
|
|
tutorials:
|
|
name: "Tutorials"
|
|
icon: "book"
|
|
color: "#10b981"
|
|
|
|
hero:
|
|
badge: "Tech Blog"
|
|
title: "Code &<br><span class='highlight'>Security</span><br>Articles"
|
|
subtitle: "Technical articles, tutorials, and project documentation"
|
|
cta:
|
|
- text: "Explore"
|
|
url: "#articles"
|
|
style: primary
|
|
- text: "Projects"
|
|
url: "/portfolio/"
|
|
style: secondary
|