From 1197f7a22afc29d859b00e1ba7f3b2871bbcaea6 Mon Sep 17 00:00:00 2001 From: nautatva Date: Tue, 22 Oct 2019 11:23:37 +0530 Subject: [PATCH] removed phpcodechecker, added og tags, description --- layouts/default.vue | 3 +++ nuxt.config.js | 11 +++++------ package.json | 2 +- resources/icons.json | 2 +- resources/php.json | 6 ------ 5 files changed, 10 insertions(+), 14 deletions(-) diff --git a/layouts/default.vue b/layouts/default.vue index 6f7123b..3c67d2d 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -11,6 +11,7 @@ import Github from '../components/Github' import Logo from '../components/Logo' import Search from '../components/Search' import Sidebar from '../components/Sidebar' +import pkg from '../package' export default { components: { @@ -23,6 +24,8 @@ export default { head () { return { meta: [ + { hid: 'og:title', property: 'og:title', content: pkg.name }, + { hid: 'og:description', property: 'og:description', content: pkg.description }, { hid: 'og:image', property: 'og:image', content: this.prodBaseUrl + 'apple-touch-icon.png' }, { hid: 'og:url', property: 'og:url', content: this.prodBaseUrl }, ], diff --git a/nuxt.config.js b/nuxt.config.js index 5a67f6f..4271694 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -7,19 +7,18 @@ export default { */ head: { htmlAttrs: { - lang: 'en' + lang: 'en', }, - title: 'webgems', + title: pkg.name, meta: [ { charset: 'utf-8' }, { name: 'viewport', content: 'width=device-width, initial-scale=1' }, { hid: 'description', name: 'description', content: pkg.description }, { hid: 'keywords', name: 'keywords', content: 'css, html, php, server, resources, design, gems, nuxt, javascript, tutorials, development, software'}, - { name: "robots", content: "index, follow" }, - { name: "distribution", content: "global"}, - { property: "og:title", content: "webgems" }, - + { name: 'robots', content: 'index, follow' }, + { name: 'distribution', content: 'global'}, + { name:'theme-color', content: '#ffffff' }, { name: 'msapplication-TileColor', content: '#da532c' }, { rel: 'mask-icon', href: '/safari-pinned-tab.svg', color: '#5bbad5' }, diff --git a/package.json b/package.json index 3ec9d5f..ce58855 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "webgems", "version": "1.0.0", - "description": "webgems for devs and designers ", + "description": "Webgems is a place for devs and designers to find useful resources all at one place. It has server resources on HTML, CSS, Javascript, Design, Icons,Accessibility, PHP, Podcasts, Python, Ruby, Servers and more.", "author": "lost.design", "private": true, "scripts": { diff --git a/resources/icons.json b/resources/icons.json index 3896f0f..60188d9 100644 --- a/resources/icons.json +++ b/resources/icons.json @@ -12,7 +12,7 @@ "title": "Fontello", "desc": "Fontello has a collection of icons from various font and icon toolkits and the icons can be individually selected and downloaded. This greatly improves the website performance owing the reduced css to download.", "url": "http://fontello.com/", - "tags": ["tag"] + "tags": [] }, { "title": "Icomoon", diff --git a/resources/php.json b/resources/php.json index 7fd1ecb..c94bcbf 100644 --- a/resources/php.json +++ b/resources/php.json @@ -67,12 +67,6 @@ "desc": "134 Slides to help fix your code. Performance and testing are just one aspect of code, to really be successful your code needs to be readable, maintainable and generally easier to comprehend and work with.", "url": "https://www.slideshare.net/rdohms/your-code-sucks-lets-fix-it-15471808", "tags": [] - }, - { - "title": "Stuck at a code? Let's find the problem", - "desc": "PHP gives out lots of errors when not written carefully. Finding out the problem may sometimes take hours. PHP code checker can find out the common syntax errors in your existing code.", - "url": "https://phpcodechecker.com/", - "tags": [] } ] } \ No newline at end of file