Skip to content

Commit

Permalink
add favicon, sitemap, lastUpdated etc
Browse files Browse the repository at this point in the history
  • Loading branch information
jabinb committed Jul 28, 2024
1 parent 8d91e5b commit b6e305b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
push:
branches: [ main ]

concurrency:
group: pages
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
Expand Down
20 changes: 15 additions & 5 deletions site/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ import { SearchPlugin } from 'vitepress-plugin-search';

// https://vitepress.dev/reference/site-config
export default defineConfig({
title: 'Web Client - ClassicUO',
description: 'Web Client - ClassicUO',
lastUpdated: true,
cleanUrls: true,
metaChunk: true,
head: [['link', { rel: 'icon', href: '/favicon.png' }]],
sitemap: {
hostname: 'https://classicuo.org'
},
vite: {
plugins: [
SearchPlugin({
Expand All @@ -16,18 +25,19 @@ export default defineConfig({
})
]
},
title: 'Web Client - ClassicUO',
description: 'Web Client - ClassicUO',
themeConfig: {
logo: '/images/cuo-logo.png',
// https://vitepress.dev/reference/default-theme-config
outline: [4, 5],
logo: '/images/cuo-logo.png',
editLink: {
text: 'Edit this page on GitHub',
pattern: 'https://github.com/ClassicUO/classicuo-web/edit/main/site/:path'
},
nav: [
{ text: 'Home', link: '/' },
{ text: 'About', link: '/about' },
{ text: 'Scripting', link: '/scripting/globals' }
],
outline: [4, 5],

sidebar: [
{
text: 'Home',
Expand Down
File renamed without changes

0 comments on commit b6e305b

Please sign in to comment.