Vylepseni SSR, pridani meta informaci, zatim dost WIP

This commit is contained in:
Michal Kváček
2023-11-28 11:35:53 +01:00
parent 86605ad53e
commit 11cc6ad107
28 changed files with 371 additions and 403 deletions
+22
View File
@@ -0,0 +1,22 @@
export const metaData = ({title, description, keywords, image}) => {
return {
title: title || "",
titleTemplate(title) {
return title !== '' ? `${title} - Polétání.cz` : 'Polétání.cz'
},
meta: {
description: {name: "description", content: description || ""},
keywords: {name: "keywords", content: (keywords || []).join(", ")},
ogImage: image ? {property: "og:image", content: image} : undefined,
ogTitle: {
property: "og:title",
content: title,
template(ogTitle) {
return (!ogTitle || ogTitle === '') ? "Polétání.cz" : `${ogTitle} - Polétání.cz`
}
}
}
}
}
export const commonKeywords = ["zápisník", "létání", "ultralight", "letectví", "fotogalerie", "výlet", "vyhlídkový let", "navigační let"];
-1
View File
@@ -13,7 +13,6 @@ export const croppedArea = ref(null);
export const selectedAspectRatio = ref(null);
watch(() => selectedAspectRatio.value, (newVal) => {
console.log(newVal);
cropper.setAspectRatio(newVal);
})
+1 -1
View File
@@ -2,7 +2,7 @@ import {ref} from "vue";
export const compare = ref(false);
export const splitterWidth = ref(750); // TODO: doresit onresize a zmenu velikosti
export const splitterWidth = ref(750);
export const splitter = ref(50);
export const onResize = (info) => {
splitterWidth.value = info.width < 750 ? info.width : 750;