Web Editor home made
This commit is contained in:
@@ -6,23 +6,36 @@ import { tools } from '@store/Modules/tools'
|
||||
import { useQuasar } from 'quasar'
|
||||
import { useMeta } from 'quasar'
|
||||
|
||||
|
||||
// You can declare a mixin as the same style as components.
|
||||
export default function () {
|
||||
|
||||
function setmeta(mym: IMetaTags) {
|
||||
// cancellarlo...
|
||||
return true
|
||||
}
|
||||
|
||||
function getMeta(mym: IMetaTags, t: any) {
|
||||
|
||||
//++Todo META TAGS!
|
||||
/*
|
||||
useMeta(() => {
|
||||
return {
|
||||
title: mym.title,
|
||||
description: mym.description,
|
||||
keywords: mym.keywords,
|
||||
}
|
||||
})
|
||||
if (!mym || !mym.title)
|
||||
return
|
||||
|
||||
return {
|
||||
title: t('ws.sitename'),
|
||||
titleTemplate: (title: any) => `${tools.getsuffisso()} ${mym.title} - ${t('ws.sitename')}`,
|
||||
meta: {
|
||||
keywords: {
|
||||
name: 'keywords',
|
||||
content: mym.keywords,
|
||||
},
|
||||
description: {
|
||||
name: 'description',
|
||||
content: mym.description,
|
||||
},
|
||||
equiv: { 'http-equiv': 'Content-Type', 'content': 'text/html; charset=UTF-8' },
|
||||
},
|
||||
}
|
||||
|
||||
*/
|
||||
}
|
||||
|
||||
function getsrcbyimg(myimg: string) {
|
||||
@@ -35,5 +48,6 @@ export default function () {
|
||||
return {
|
||||
setmeta,
|
||||
getsrcbyimg,
|
||||
getMeta,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user