Commit 2a05cdad authored by Vincent Prouillet's avatar Vincent Prouillet

Update to gutenberg 0.1.0

parent 44b52dcf
......@@ -5,6 +5,7 @@ generate_tags_pages = false
generate_categories_pages = false
generate_rss = true
highlight_code = true
compile_sass = true
[extra]
author = "Vincent Prouillet"
var fs = require("fs");
var gulp = require("gulp");
var sass = require("gulp-sass");
var postcss = require("gulp-postcss");
var lost = require("lost");
var autoprefixer = require("autoprefixer");
var sassFiles = "./sass/**/*.scss";
gulp.task("sass", function() {
var processors = [
lost,
autoprefixer({ browsers: ["last 2 versions"] })
];
return gulp.src(sassFiles, {base: "./sass"})
.pipe(sass({outputStyle: "compressed"}).on("error", sass.logError))
.pipe(postcss(processors))
.pipe(gulp.dest("./static/"))
});
gulp.task("watch", function() {
gulp.watch(sassFiles, gulp.parallel("sass"));
});
{
"name": "vincent.is",
"version": "1.0.0",
"description": "vincent.is website",
"main": "index.js",
"scripts": {
"watch": "gulp watch",
"sass": "gulp sass",
"dist": "rm -rf public && gulp sass && gutenberg build"
},
"author": "",
"license": "",
"devDependencies": {
"autoprefixer": "^6.3.6",
"gulp": "gulpjs/gulp#4.0",
"gulp-postcss": "^6.1.0",
"gulp-sass": "^2.2.0",
"lost": "^7.1.0"
}
}
......@@ -52,7 +52,7 @@
<div class="content">
{% block content %}
<div class="list-posts">
{% set posts = sections | get(key="post") %}
{% set posts = get_section(path="post/_index.md") %}
{% for page in posts.pages %}
<article class="post">
<h3 class="post__title"><a href="{{ page.permalink }}">{{ page.title }}</a></h3>
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment