-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from RadKod/refactor/seo
Refactor/seo
- Loading branch information
Showing
8 changed files
with
255 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
const { title, meta } = require('../system/head/main/tr') | ||
|
||
module.exports = { | ||
htmlAttrs: { | ||
lang: 'tr' | ||
}, | ||
title, | ||
link: [ | ||
{ rel: 'icon', type: 'image/x-icon', href: '/meta/icon/favicon.ico' }, | ||
{ rel: 'dns-prefetch', href: '//api.radkod.com' }, | ||
{ rel: 'manifest', href: '/manifest.json' } | ||
], | ||
meta: [ | ||
{ charset: 'utf-8' }, | ||
{ | ||
name: 'viewport', | ||
content: 'width=device-width, initial-scale=1.0, interactive-widget=resizes-content, user-scalable=no' | ||
}, | ||
{ | ||
hid: 'robots', | ||
name: 'robots', | ||
content: 'index,follow' | ||
}, | ||
{ | ||
hid: 'Publisher', | ||
property: 'Publisher', | ||
content: 'RadKod' | ||
}, | ||
{ | ||
hid: 'theme-color', | ||
name: 'theme-color', | ||
content: '#eee' | ||
}, | ||
{ | ||
name: 'apple-mobile-web-app-capable', | ||
content: 'yes' | ||
}, | ||
{ | ||
name: 'apple-mobile-web-app-status-bar-style', | ||
content: 'black-translucent' | ||
}, | ||
{ name: 'Classification', content: 'Game' }, | ||
{ name: 'Rating', content: 'General' }, | ||
{ name: 'Distribution', content: 'Global' }, | ||
{ name: 'Copyright', content: 'parolla' }, | ||
{ itemprop: 'copyrightYear', content: new Date().getFullYear().toString() }, | ||
...meta | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
export default ({ app }) => { | ||
const extendedApp = app | ||
|
||
const headFile = require(`@/system/head/main/${extendedApp.i18n.locale || 'tr'}.js`) | ||
|
||
if (extendedApp.head) { | ||
extendedApp.head.htmlAttrs.lang = extendedApp.i18n.locale | ||
extendedApp.head.htmlAttrs.dir = extendedApp.i18n.localeProperties.dir | ||
|
||
const setTitle = () => { | ||
extendedApp.head.title = headFile.title | ||
} | ||
|
||
const setMeta = () => { | ||
extendedApp.head.meta = headFile.meta | ||
} | ||
|
||
setTitle() | ||
setMeta() | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
export const title = 'parolla - Word game. Daily word game' | ||
|
||
export const meta = [ | ||
{ | ||
hid: 'description', | ||
name: 'description', | ||
content: 'Play daily word game, create your own word game questions, solve fun questions created by players' | ||
}, | ||
{ | ||
hid: 'keywords', | ||
name: 'keywords', | ||
content: 'word game, play word game, daily word game, play daily word game' | ||
}, | ||
{ | ||
name: 'apple-mobile-web-app-capable', | ||
content: 'yes' | ||
}, | ||
{ | ||
hid: 'og:type', | ||
property: 'og:type', | ||
content: 'website' | ||
}, | ||
{ | ||
hid: 'og:title', | ||
property: 'og:title', | ||
content: 'parolla - Word game' | ||
}, | ||
{ | ||
hid: 'og:description', | ||
property: 'og:description', | ||
content: 'Solve daily questions and join the competition. Create your own Q&A set and solve fun questions created by players' | ||
}, | ||
{ | ||
hid: 'og:url', | ||
property: 'og:url', | ||
content: 'https://parolla.app' | ||
}, | ||
{ | ||
hid: 'og:image', | ||
property: 'og:image', | ||
content: '/meta/og-main-en.png' | ||
}, | ||
{ | ||
hid: 'twitter:card', | ||
property: 'twitter:card', | ||
content: 'summary_large_image' | ||
}, | ||
{ | ||
hid: 'twitter:title', | ||
property: 'twitter:title', | ||
content: 'parolla - Word game' | ||
}, | ||
{ | ||
hid: 'twitter:description', | ||
property: 'twitter:description', | ||
content: 'Solve daily questions and join the competition. Create your own Q&A set and solve fun questions created by players' | ||
}, | ||
{ | ||
hid: 'twitter:url', | ||
property: 'twitter:url', | ||
content: 'https://parolla.app' | ||
}, | ||
{ | ||
hid: 'twitter:image', | ||
property: 'twitter:image', | ||
content: '/meta/og-main-en.png' | ||
}, | ||
{ | ||
hid: 'twitter:creator', | ||
property: 'twitter:creator', | ||
content: `@parollaapp` | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
export const title = 'parolla - Kelime oyunu. Günlük kelime oyunu' | ||
|
||
export const meta = [ | ||
{ | ||
hid: 'description', | ||
name: 'description', | ||
content: 'Günlük kelime oyunu oyna, kendi kelime oyunu sorularını oluştur, oyuncuların oluşturduğu eğlenceli soruları çöz' | ||
}, | ||
{ | ||
hid: 'keywords', | ||
name: 'keywords', | ||
content: 'kelime oyunu, kelime oyunu oyna, günlük kelime oyunu, günlük kelime oyunu oyna' | ||
}, | ||
{ | ||
name: 'apple-mobile-web-app-capable', | ||
content: 'yes' | ||
}, | ||
{ | ||
hid: 'og:type', | ||
property: 'og:type', | ||
content: 'website' | ||
}, | ||
{ | ||
hid: 'og:title', | ||
property: 'og:title', | ||
content: 'parolla - Kelime oyunu' | ||
}, | ||
{ | ||
hid: 'og:description', | ||
property: 'og:description', | ||
content: 'Günlük soruları çöz ve rekabete katıl. Kendi soru-cevap setini oluştur, oyuncuların oluşturduğu eğlenceli soruları çöz' | ||
}, | ||
{ | ||
hid: 'og:url', | ||
property: 'og:url', | ||
content: 'https://parolla.app' | ||
}, | ||
{ | ||
hid: 'og:image', | ||
property: 'og:image', | ||
content: '/meta/og-main-tr.jpg' | ||
}, | ||
{ | ||
hid: 'twitter:card', | ||
property: 'twitter:card', | ||
content: 'summary_large_image' | ||
}, | ||
{ | ||
hid: 'twitter:title', | ||
property: 'twitter:title', | ||
content: 'parolla - Kelime oyunu' | ||
}, | ||
{ | ||
hid: 'twitter:description', | ||
property: 'twitter:description', | ||
content: 'Günlük soruları çöz ve rekabete katıl. Kendi soru-cevap setini oluştur, oyuncuların oluşturduğu eğlenceli soruları çöz' | ||
}, | ||
{ | ||
hid: 'twitter:url', | ||
property: 'twitter:url', | ||
content: 'https://parolla.app' | ||
}, | ||
{ | ||
hid: 'twitter:image', | ||
property: 'twitter:image', | ||
content: '/meta/og-main-tr.jpg' | ||
}, | ||
{ | ||
hid: 'twitter:creator', | ||
property: 'twitter:creator', | ||
content: `@parollaapp` | ||
} | ||
] |