From c8f33bebbe661178f7b16b7e2da79a68f99b5aa0 Mon Sep 17 00:00:00 2001 From: nautatva Date: Mon, 21 Oct 2019 10:37:48 +0530 Subject: [PATCH 1/8] added fontello and phpCodeChecker --- resources/icons.json | 6 ++++++ resources/php.json | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/resources/icons.json b/resources/icons.json index 72510a6..3896f0f 100644 --- a/resources/icons.json +++ b/resources/icons.json @@ -8,6 +8,12 @@ "url": "https://fontawesome.com/", "tags": [] }, + { + "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"] + }, { "title": "Icomoon", "desc": "IcoMoon provides a package of vector icons, along with a free HTML5 app for making custom icon fonts or SVG sprites.", diff --git a/resources/php.json b/resources/php.json index c94bcbf..7fd1ecb 100644 --- a/resources/php.json +++ b/resources/php.json @@ -67,6 +67,12 @@ "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 From 6c9e6aaa3a3b3d531224b35b34ee578113c6edc4 Mon Sep 17 00:00:00 2001 From: nautatva Date: Mon, 21 Oct 2019 11:38:54 +0530 Subject: [PATCH 2/8] Added og tags and SEO for google --- layouts/default.vue | 13 +++++++++++++ nuxt.config.js | 5 +++++ 2 files changed, 18 insertions(+) diff --git a/layouts/default.vue b/layouts/default.vue index e39a6da..6f7123b 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -19,6 +19,19 @@ export default { Search, Sidebar, }, + + head () { + return { + meta: [ + { hid: 'og:image', property: 'og:image', content: this.prodBaseUrl + 'apple-touch-icon.png' }, + { hid: 'og:url', property: 'og:url', content: this.prodBaseUrl }, + ], + } + }, + created: function () { + this.prodBaseUrl = 'https://webgems.io/' + return '' + }, } diff --git a/nuxt.config.js b/nuxt.config.js index 6b02e6d..558731d 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -12,6 +12,11 @@ export default { { 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:'theme-color', content: '#ffffff' }, { name: 'msapplication-TileColor', content: '#da532c' }, { rel: 'mask-icon', href: '/safari-pinned-tab.svg', color: '#5bbad5' }, From f69414ae6a709c844ac14c63c9dbfd4a0e7b63a6 Mon Sep 17 00:00:00 2001 From: nautatva Date: Mon, 21 Oct 2019 11:52:22 +0530 Subject: [PATCH 3/8] Adding language attribute, suggested by lighthouse --- nuxt.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nuxt.config.js b/nuxt.config.js index 558731d..5a67f6f 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -6,6 +6,9 @@ export default { ** Headers of the page */ head: { + htmlAttrs: { + lang: 'en' + }, title: 'webgems', meta: [ { charset: 'utf-8' }, From 1197f7a22afc29d859b00e1ba7f3b2871bbcaea6 Mon Sep 17 00:00:00 2001 From: nautatva Date: Tue, 22 Oct 2019 11:23:37 +0530 Subject: [PATCH 4/8] 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 From 4e2304de8929d95cadfbcdc9ebc92923a91a5eaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?well=C3=A1?= Date: Fri, 25 Oct 2019 11:31:37 +0200 Subject: [PATCH 5/8] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ce58855..e498647 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "webgems", + "name": "webgems.io", "version": "1.0.0", "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", From a025186cd2ed00bf12916f969c0b42131b440d69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?well=C3=A1?= Date: Fri, 25 Oct 2019 11:37:46 +0200 Subject: [PATCH 6/8] Update default.vue --- layouts/default.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/default.vue b/layouts/default.vue index c1c19e7..9086db2 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -39,7 +39,7 @@ export default { }, data() { return { - this.prodBaseUrl = 'https://webgems.io/' + prodBaseUrl = 'https://webgems.io/' showNotice: false, } }, @@ -262,4 +262,4 @@ h1 { } } - \ No newline at end of file + From fc8d174805ea6028fb20bed81f0fe6dd7de7b7a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?well=C3=A1?= Date: Fri, 25 Oct 2019 11:41:02 +0200 Subject: [PATCH 7/8] =?UTF-8?q?=F0=9F=90=9B=20fix=20typo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/default.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/default.vue b/layouts/default.vue index 9086db2..c6f6f70 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -39,7 +39,7 @@ export default { }, data() { return { - prodBaseUrl = 'https://webgems.io/' + prodBaseUrl = 'https://webgems.io/', showNotice: false, } }, From 14de25b0cfd157cdc68d1eb299111f3b25e0694b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?well=C3=A1?= Date: Fri, 25 Oct 2019 11:46:18 +0200 Subject: [PATCH 8/8] =?UTF-8?q?=F0=9F=90=9B=20fix=20another=20typo..?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/default.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/default.vue b/layouts/default.vue index c6f6f70..00b5f86 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -39,7 +39,7 @@ export default { }, data() { return { - prodBaseUrl = 'https://webgems.io/', + prodBaseUrl: 'https://webgems.io/', showNotice: false, } },