From 1a2fb80f96baf5df3dfb98f96db24d2491302fc5 Mon Sep 17 00:00:00 2001 From: Marcus Crane Date: Mon, 18 Mar 2024 21:37:11 +1300 Subject: [PATCH] Wire up favicon meta Signed-off-by: Marcus Crane --- .vitepress/config.mts | 8 ++++++++ public/site.webmanifest | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.vitepress/config.mts b/.vitepress/config.mts index 8a71a45..b36fed7 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -4,6 +4,13 @@ import { defineConfig } from 'vitepress' export default defineConfig({ title: "(my) dotfiles", description: "My personal dotfiles", + head: [ + ['link', { rel: "apple-touch-icon", sizes: "180x180", href: "/apple-touch-icon.png"}], + ['link', { rel: "icon", type: "image/png", sizes: "32x32", href: "/favicon-32x32.png"}], + ['link', { rel: "icon", type: "image/png", sizes: "16x16", href: "/favicon-16x16.png"}], + ['link', { rel: "manifest", href: "/site.webmanifest"}], + ['link', { rel: "shortcut icon", href: "/favicon.ico"}], + ], lastUpdated: true, themeConfig: { // https://vitepress.dev/reference/default-theme-config @@ -11,6 +18,7 @@ export default defineConfig({ { text: 'Home', link: '/' }, { text: 'Overview', link: '/README' } ], + logo: '/android-chrome-192x192.png', editLink: { pattern: 'https://github.com/marcus-crane/dotfiles/edit/main/:path' }, diff --git a/public/site.webmanifest b/public/site.webmanifest index 45dc8a2..d98ed97 100755 --- a/public/site.webmanifest +++ b/public/site.webmanifest @@ -1 +1 @@ -{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} \ No newline at end of file +{"name":"(my) dotfiles","short_name":"dotfiles","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} \ No newline at end of file