SEO.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. import { createMetaMixin } from 'quasar'
  2. import SeoMeta from 'src/assets/js/SeoMeta.js'
  3. const mixinSEO = {
  4. data() {
  5. return {
  6. title: 'شهید پالیزوانی',
  7. description: 'شهید پالیزوانی',
  8. robots: 'index, follow',
  9. ogTitle: 'شهید پالیزوانی',
  10. ogUrl: '',
  11. ogDescription: 'کلاس های درس آلاء برای کنکور، دهم، یازدهم و دوازدهم و خدمات تکمیلی از قبیل همایش‌های طلایی و اردو طلایی؛ در دروس مختلف زیست شیمی فیزیک ریاضی عربی ادبیات و.',
  12. ogImage: ''
  13. }
  14. },
  15. mixins: [
  16. createMetaMixin(function () {
  17. const title = this.$store.getters['SEO/title']
  18. const description = this.$store.getters['SEO/description']
  19. const robots = this.$store.getters['SEO/robots']
  20. const ogTitle = this.$store.getters['SEO/ogTitle'] ? this.$store.getters['SEO/ogTitle'] : title
  21. const ogUrl = this.$store.getters['SEO/ogUrl'] ? this.$store.getters['SEO/ogUrl'] : ''
  22. const ogDescription = this.$store.getters['SEO/ogDescription']
  23. const ogImage = this.$store.getters['SEO/ogImage']
  24. return SeoMeta.getMixin({
  25. title,
  26. description,
  27. robots,
  28. ogTitle,
  29. ogUrl,
  30. ogDescription,
  31. ogImage
  32. })
  33. })
  34. ]
  35. }
  36. export default mixinSEO