Skip to content

Commit

Permalink
Fix sitemap and bts on mobile.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmurray8 committed Jun 17, 2024
1 parent 04cbfd5 commit 660bb76
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 129 deletions.
4 changes: 2 additions & 2 deletions pages/behind-the-scenes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<OgMeta :title="seoTitle" :description="seoDescription" />
<SchemaOrgWebPage type="AboutPage" :name="seoTitle" />
<section
class="relative flex h-[calc(100dvh-116.45px)] flex-col justify-between"
class="relative flex h-[calc(100dvh-116.45px)] flex-col justify-between overflow-x-hidden"
>
<div class="fixed mx-auto h-1/2 w-full md:h-[65%]">
<div class="fixed mx-auto h-[45%] w-full md:h-[60%]">
<AutoPlayVideo
:title="bannerVideo.seoTitle"
:description="bannerVideo.seoDescription"
Expand Down
22 changes: 19 additions & 3 deletions server/api/__sitemap__/urls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,13 @@ function parseImageOrVideo(file: {

export default defineSitemapEventHandler(async (e) => {
const contentList = (await serverQueryContent(e).find()) as ParsedContent[];
return contentList
.filter((c) => c._dir === 'product' || c._dir === 'home' || c._dir === 'service')
const filteredList = contentList
.filter(
(c) =>
c._dir === 'product' ||
c._dir === 'home' ||
c._dir === 'service'
)
.map((c) => {
if (c._dir === 'product') {
const sitemapUrl: SitemapUrl = {
Expand Down Expand Up @@ -115,9 +120,20 @@ export default defineSitemapEventHandler(async (e) => {
loc: `/${c._dir}s/${c.path}`,
};
return asSitemapUrl(sitemapUrl);

}
});
filteredList.push(
{
loc: `/behind-the-scenes`,
},
{
loc: `/shop`,
},
{
loc: '/portfolio',
}
);
return filteredList;
});

function getThumbnailLoc(
Expand Down
124 changes: 0 additions & 124 deletions server/api/admin/media/index.post.ts

This file was deleted.

0 comments on commit 660bb76

Please sign in to comment.