blog/src/components/SiteTitle.astro
radishzzz f8bf077948 refactor: enhance theme configuration and path handling
- Update config.ts with more descriptive comments and simplified settings
- Remove about page content section
- Add new path utility functions for localization and page type detection
- Introduce SiteTitle component for mobile post page navigation
- Modify Header and Layout components to use new path utilities
- Adjust title spacing and font sizes
- Update VSCode settings with new dictionary words
2025-02-04 18:56:34 +00:00

15 lines
328 B
Text

---
import themeConfig from '@/config'
import { getPagePath } from '@/utils/path'
const { title } = themeConfig.site
const currentPath = Astro.url.pathname
const { getLocalizedPath } = getPagePath(currentPath)
---
<a
class="mt--1.4 text-8.32 c-secondary font-bold font-title"
href={getLocalizedPath('/')}
>
{title}
</a>