Skip to content

Commit 5eb6882

Browse files
refactor(multi): added alt attributes.
1 parent c01ab98 commit 5eb6882

File tree

5 files changed

+17
-12
lines changed

5 files changed

+17
-12
lines changed

content/.vitepress/config.mts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
2020
// https://vitepress.dev/reference/site-config
2121
export default defineConfig({
2222
lang: 'en-US',
23-
title: 'Vue Cheatsheet',
23+
title: 'Vue Cheatsheet By ThemeSelection',
2424
lastUpdated: true,
25-
description: "The one and only vue cheatsheet you need for VueJS by ThemeSelection",
25+
description: "The one and only Vue cheatsheet you need for VueJS by ThemeSelection",
2626
head: [
2727
['link', { rel: 'icon', href: '/logos/favicon.ico' }],
2828
['link', { rel: 'apple-touch-icon', href: '/logos/apple-icon-57x57.png' }],
@@ -40,17 +40,18 @@ export default defineConfig({
4040
['link', { rel: 'icon', href: '/logos/favicon-16x16.png' }],
4141
['link', { rel: 'manifest', href: '/logos/manifest.json' }],
4242
['meta', { property: 'og:title', content: 'Vue Cheatsheet' }],
43-
['meta', { property: 'og:description', content: 'The only Vue cheatsheet you will ever need' }],
43+
['meta', { property: 'og:description', content: 'The only VueJS cheatsheet you will ever need' }],
4444
['meta', { property: 'og:image', content: 'https://ts-assets.b-cdn.net/ts-assets/vue-cheatsheet/github-banner-smm.png' }],
4545
['meta', { property: 'twitter:image', content: 'https://ts-assets.b-cdn.net/ts-assets/vue-cheatsheet/github-banner-smm.png' }],
4646
['meta', { property: 'twitter:title', content: 'Vue.js CheatSheet By ThemeSelection' }],
4747
['meta', { property: 'twitter:description', content: 'Accelerate your vue learning & improve your skills with our comprehensive cheatsheet' }],
4848
['meta', { property: 'twitter:card', content: 'summary_large_image' }],
4949
['meta', { property: 'twitter:site', content: '@Theme_Selection' }],
5050
['meta', { property: 'twitter:creator', content: '@Theme_Selection' }],
51+
['meta', { property: 'keywords', content: 'Vue 3 Cheatsheet, VueJS Cheatsheet, Vue JS Cheatsheet' }]
5152
],
5253
themeConfig: {
53-
logo: '/vue-cheatsheet-logo.png',
54+
logo: { src: '/vue-cheatsheet-logo.png', alt: 'Vue Cheatsheet' },
5455

5556
siteTitle: false,
5657
search: {

content/.vitepress/theme/components/Footer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const secondColLinks = [
4545
<hr class="divider">
4646
<div
4747
class="container mx-auto flex flex-wrap items-center justify-between border-gray-300 dark:border-zinc-700 pt-8 pb-6 gap-3 px-6 sm:px-12 lg:px-16">
48-
<a href="https://themeselection.com/" target="_blank" class="themeselection-logo"> </a>
48+
<a href="https://themeselection.com/" target="_blank" class="themeselection-logo" alt="ThemeSelection"> </a>
4949
<div class="flex items-center gap-x-1">
5050
<span>© 2024-Present, Made with</span>
5151
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24">

content/.vitepress/theme/components/SiteTitle.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ const isHome = computed(() => page.value.frontmatter?.layout === 'home')
88
</script>
99

1010
<template>
11-
<span v-if="!isHome">{{ site.title }}</span>
11+
<span v-if="!isHome">{{ site.title.split(' ').slice(0, 2).join(' ') }}</span>
1212
</template>

content/.vitepress/theme/components/SocialLinks.vue

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<template>
66
<div class="flex items-center gap-3">
7-
<a target="_blank" rel="noreferrer" href="https://github.com/themeselection"
7+
<a target="_blank" rel="noreferrer" href="https://github.com/themeselection" alt="ThemeSelection GitHub"
88
class="hover:text-[var(--vp-c-brand-1)]">
99
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24">
1010
<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5">
@@ -15,21 +15,21 @@
1515
</g>
1616
</svg>
1717
</a>
18-
<a target="_blank" rel="noreferrer" href="https://twitter.com/Theme_Selection"
18+
<a target="_blank" rel="noreferrer" href="https://twitter.com/Theme_Selection" alt="ThemeSelection Twitter"
1919
class="hover:text-[var(--vp-c-brand-1)]">
2020
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24">
2121
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"
2222
d="M23 3.01s-2.018 1.192-3.14 1.53a4.48 4.48 0 0 0-7.86 3v1a10.66 10.66 0 0 1-9-4.53s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5c0-.278-.028-.556-.08-.83C21.94 5.674 23 3.01 23 3.01" />
2323
</svg>
2424
</a>
25-
<a target="_blank" rel="noreferrer" href="https://www.facebook.com/ThemeSelections/"
25+
<a target="_blank" rel="noreferrer" href="https://www.facebook.com/ThemeSelections/" alt="ThemeSelection Facebook"
2626
class="hover:text-[var(--vp-c-brand-1)]">
2727
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24">
2828
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"
2929
d="M17 2h-3a5 5 0 0 0-5 5v3H6v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z" />
3030
</svg>
3131
</a>
32-
<a target="_blank" rel="noreferrer" href="https://dribbble.com/themeselection/"
32+
<a target="_blank" rel="noreferrer" href="https://dribbble.com/themeselection/" alt="ThemeSelection Dribbble"
3333
class="hover:text-[var(--vp-c-brand-1)]">
3434
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24">
3535
<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5">
@@ -39,4 +39,5 @@
3939
</g>
4040
</svg>
4141
</a>
42-
</div></template>
42+
</div>
43+
</template>

content/index.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ layout: home
44

55
hero:
66
name: "Vue Cheatsheet"
7-
tagline: The only Vue cheatsheet you will ever need
7+
tagline: The only VueJS cheatsheet you will ever need
88
image:
99
src: /hero-image.png
1010
alt: Vue Cheatsheet
@@ -20,16 +20,19 @@ features:
2020
- title: Vue
2121
icon:
2222
src: /vue-logo.png
23+
alt: 'Vue'
2324
details: Accelerate your vue learning & improve your skills with our comprehensive cheatsheet
2425
link: /vue/basic
2526
- title: Vue Router
2627
icon:
2728
src: /vue-router-logo.png
29+
alt: 'Vue Router'
2830
details: Your Simple Guide to Vue Router, Making Routes as Easy as Following a Map.
2931
link: /vue-router/basic
3032
- title: Pinia
3133
icon:
3234
src: /pinia-logo.png
35+
alt: 'Pinia'
3336
details: Your Cheatsheet for Pinia, Perfect for Vue Beginners and Beyond.
3437
link: /pinia/basic
3538
---

0 commit comments

Comments
 (0)