Skip to content

Instantly share code, notes, and snippets.

View Akhigbe-E's full-sized avatar
🧰
Tinkering

Emmanuel Akhigbe Akhigbe-E

🧰
Tinkering
View GitHub Profile
data(){
return ({
description:'Description of the site'
})
}
head(){
return({
title: 'Home page',
meta: [
{
@Akhigbe-E
Akhigbe-E / index.js
Created April 29, 2021 08:21
Schema
{
"@context": "https://schema.org/",
"@type": "Recipe",
"name": "Ewedu Soup",
"author": {
"@type": "Person",
"name": "Emmanuel Akhigbe"
},
"datePublished": "2021-04-24",
"description": "This soup sweet burst.",
@Akhigbe-E
Akhigbe-E / index.js
Created April 29, 2021 08:19
Head function
data() {
return {
title: 'Home page'
}
},
head() {
return {
title: this.title,
meta: [
{
@Akhigbe-E
Akhigbe-E / index.js
Created April 29, 2021 08:17
Head object
head: {
title: 'my website title',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{
hid: 'description',
name: 'description',
content: 'my website description'
}
@Akhigbe-E
Akhigbe-E / gulpfile.js
Last active July 9, 2020 12:59
Run series
const gulp = require('gulp')
const sass = require('gulp-sass')
const transpileSassToCss = (cb) => {
return gulp.src(`src/sass/main.scss`)
.pipe(sass())
.pipe(gulp.dest(`src/css`))
}
const watchSassFile = () => {
@Akhigbe-E
Akhigbe-E / gulpfile.js
Created July 9, 2020 12:39
Watch sass folder
const gulp = require('gulp')
const sass = require('gulp-sass')
const transpileSassToCss = (cb) => {
return gulp.src(`src/sass/main.scss`)
.pipe(sass())
.pipe(gulp.dest(`src/css`))
}
const watchSassFile = () => {
@Akhigbe-E
Akhigbe-E / gulpfile.js
Created July 9, 2020 12:12
Gulp sass added
const gulp = require('gulp')
const sass = require('gulp-sass')
const transpileSassToCss = (cb) => {
return gulp.src(`src/sass/main.scss`)
.pipe(sass())
.pipe(gulp.dest(`src/css`))
}
@Akhigbe-E
Akhigbe-E / gulpfile.js
Created July 9, 2020 11:45
Pipe to destination file
const transpileSassToCss = (cb) => {
return gulp.src(`src/scss/main.scss`)
.pipe(dest(`src/css`))
}
@Akhigbe-E
Akhigbe-E / gulpfile.js
Created July 9, 2020 11:04
Specify task source
const transpileSassToCss = (cb) => {
return gulp.src(`src/scss/main.scss`)
}
@Akhigbe-E
Akhigbe-E / gulpfile.js
Last active July 9, 2020 10:23
Create a simple task with gulp
const helloWorldTask = (cb) => {
console.log(`hello world!`);
cb();
}
exports.default = helloWorldTask;