Skip to content

Commit

Permalink
Chore/update dep (#206)
Browse files Browse the repository at this point in the history
* update all dependencies and add resolution for error from package nitrojs/nitro#1726

* fix og:image
  • Loading branch information
ipatate authored Nov 16, 2023
1 parent 18363f4 commit 5c5ec34
Show file tree
Hide file tree
Showing 4 changed files with 414 additions and 683 deletions.
46 changes: 29 additions & 17 deletions composables/useHeadPodcast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,31 @@ const useHeadPodcast = ({
const getMediaUrl = () =>
`${isDev ? prefixAudioDev : prefixAudio}/${episode.value?.dsSlug}.mp3`;

useHead({
useSeoMeta({
title: `//${episode.value.episodeNumber} - ${episode.value.title}`,
ogTitle: `//${episode.value.episodeNumber} - ${episode.value.title}`,
description: getDescription(episode.value?.description),
ogDescription: getDescription(episode.value?.description),
ogImage: getImgPodcast({
episodeNumber: episode.value?.episodeNumber,
title: episode.value?.title,
}),
twitterCard: 'summary_large_image',
});

useHead({
// title: `//${episode.value.episodeNumber} - ${episode.value.title}`,
meta: [
{
hid: 'description',
name: 'description',
content: getDescription(episode.value?.description),
},
{
hid: 'og:title',
name: 'og:title',
content: episode.value.title,
},
// {
// hid: 'description',
// name: 'description',
// content: getDescription(episode.value?.description),
// },
// {
// hid: 'og:title',
// name: 'og:title',
// content: episode.value.title,
// },
// {
// hid: 'og:image',
// property: 'og:image',
Expand All @@ -62,18 +74,18 @@ const useHeadPodcast = ({
property: 'og:image:alt',
content: `${episode.value.episodeNumber} - ${episode.value.title}`,
},
{
hid: 'og:description',
property: 'og:description',
content: episode.value.description,
},
// {
// hid: 'og:description',
// property: 'og:description',
// content: episode.value.description,
// },
{
hid: 'og:url',
property: 'og:url',
content: `${siteUrl}${path}`,
},
{name: 'twitter:site', content: '@doubleslash_dev'},
{name: 'twitter:card', content: 'summary_large_image'},
// {name: 'twitter:card', content: 'summary_large_image'},
{
hid: 'twitter:url',
name: 'twitter:url',
Expand Down
3 changes: 1 addition & 2 deletions layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,10 @@ useHead({
{rel: 'mask-icon', href: '/safari-pinned-tab.svg', color: '#5bbad5'},
],
});
useSchemaOrg([
defineOrganization({
name: 'Double Slash Dev',
logo: '/logo.png',
logo: `${siteUrl}/logo.png`,
sameAs: [twitterUrl],
}),
defineWebSite({
Expand Down
31 changes: 17 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,34 +16,34 @@
"devDependencies": {
"@nuxt/content": "2.9.0",
"@nuxt/image-edge": "1.0.0-rc.3-28282346.a10323e",
"@nuxt/test-utils": "3.8.0",
"@nuxt/test-utils-edge": "3.8.0-28284309.b3d3d7f4",
"@nuxthq/studio": "1.0.3",
"@nuxtjs/color-mode": "3.3.0",
"@nuxt/test-utils": "3.8.1",
"@nuxt/test-utils-edge": "4.0.0-27970394.60d07df4",
"@nuxthq/studio": "1.0.4",
"@nuxtjs/color-mode": "3.3.2",
"@nuxtjs/eslint-config-typescript": "12.1.0",
"@nuxtjs/fontaine": "0.4.1",
"@nuxtjs/tailwindcss": "6.9.4",
"@pinia/nuxt": "0.5.1",
"@tailwindcss/typography": "0.5.10",
"@types/rss": "0.0.31",
"@types/xml2json": "0.11.5",
"@vueuse/nuxt": "10.5.0",
"@types/rss": "0.0.32",
"@types/xml2json": "0.11.6",
"@vueuse/nuxt": "10.6.1",
"consola": "3.2.3",
"eslint": "8.53.0",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-nuxt": "4.0.0",
"eslint-plugin-prettier": "5.0.1",
"husky": "8.0.3",
"jsdom": "22.1.0",
"lint-staged": "15.0.2",
"nuxt": "3.8.0",
"lint-staged": "15.1.0",
"nuxt": "3.8.1",
"nuxt-icon": "0.6.6",
"nuxt-schema-org": "3.2.0",
"pinia": "2.1.7",
"plop": "4.0.0",
"postcss-custom-properties": "13.3.2",
"prettier": "3.0.3",
"prettier-plugin-tailwindcss": "0.5.6",
"prettier": "3.1.0",
"prettier-plugin-tailwindcss": "0.5.7",
"sitemap": "7.1.1",
"typescript": "5.2.2",
"vitest": "0.34.6",
Expand All @@ -60,13 +60,16 @@
"@headlessui/vue": "1.7.16",
"@nathanchase/nuxt-dayjs-module": "1.0.15",
"@nuxt/image": "^1.0.0",
"@tailwindcss/forms": "0.5.6",
"@upstash/redis": "^1.24.2",
"axios": "1.6.0",
"@tailwindcss/forms": "0.5.7",
"@upstash/redis": "^1.25.1",
"axios": "1.6.2",
"crypto": "1.0.1",
"motion": "10.16.4",
"rss": "1.2.2",
"simple-json-db": "2.0.0",
"vue-lite-youtube-embed": "1.2.1"
},
"resolutions": {
"mlly": "1.4.0"
}
}
Loading

0 comments on commit 5c5ec34

Please sign in to comment.