refactor(): change folder structure to be an actual hugo theme
This commit is contained in:
parent
9b7f46fb02
commit
23c4dc308c
|
@ -1,6 +1,7 @@
|
|||
.idea
|
||||
npm-debug.log
|
||||
public/**/*.css
|
||||
static/css/theme.css
|
||||
static/css/theme.min.css
|
||||
node_modules
|
||||
public/fonts
|
||||
!public/fonts/.gitkeep
|
||||
static/fonts
|
||||
!static/fonts/.gitkeep
|
|
@ -0,0 +1,20 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016 AUBM
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
2
TOTO.md
2
TOTO.md
|
@ -1,3 +1 @@
|
|||
- Add support for code highlighting
|
||||
- Display a list of categories and tags in the navbar
|
||||
- Change folder structure to be a actual theme for Hugo
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
+++
|
||||
+++
|
18
gulpfile.js
18
gulpfile.js
|
@ -1,24 +1,20 @@
|
|||
var gulp = require('gulp');
|
||||
var gutil = require('gulp-util');
|
||||
var sass = require('gulp-sass');
|
||||
var browserSync = require('browser-sync').create();
|
||||
|
||||
gulp.task('fonts', function() {
|
||||
gulp.src('./node_modules/bootstrap-sass/assets/fonts/bootstrap/*')
|
||||
.pipe(gulp.dest('./public/fonts'));
|
||||
});
|
||||
|
||||
gulp.task('serve', ['fonts', 'sass'] , function () {
|
||||
browserSync.init({ server: { baseDir: "./public" } });
|
||||
gulp.watch("public/**/*.scss", ['sass']);
|
||||
gulp.watch("public/*.html").on('change', browserSync.reload);
|
||||
.pipe(gulp.dest('./static/fonts'));
|
||||
});
|
||||
|
||||
gulp.task('sass', function() {
|
||||
return gulp.src("./public/**/*.scss")
|
||||
return gulp.src("./static/css/theme.scss")
|
||||
.pipe(sass().on('error', handleError))
|
||||
.pipe(gulp.dest('./public'))
|
||||
.pipe(browserSync.stream());
|
||||
.pipe(gulp.dest('./static/css'));
|
||||
});
|
||||
|
||||
gulp.task('default', function() {
|
||||
gulp.start('fonts', 'sass');
|
||||
});
|
||||
|
||||
function handleError(err) {
|
||||
|
|
|
@ -6,12 +6,11 @@
|
|||
"bootstrap-sass": "^3.3.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"browser-sync": "^2.11.1",
|
||||
"gulp": "^3.9.0",
|
||||
"gulp-sass": "^2.1.1",
|
||||
"gulp-util": "^3.0.7"
|
||||
},
|
||||
"scripts": {
|
||||
"serve": "gulp serve"
|
||||
"build": "gulp"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
//@import "../../node_modules/bootstrap-sass/assets/stylesheets/bootstrap";
|
||||
@import "./variables.scss";
|
||||
@import "./custom-bootstrap.scss";
|
||||
@import "./mixins.scss";
|
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 84 KiB |
|
@ -0,0 +1,14 @@
|
|||
# theme.toml template for a Hugo theme
|
||||
# See https://github.com/spf13/hugoThemes#themetoml for an example
|
||||
|
||||
name = "Code Editor"
|
||||
license = "MIT"
|
||||
licenselink = "https://github.com/aubm/hugo-code-editor-theme/blob/master/LICENSE.md"
|
||||
description = "Inspired by Atom editor"
|
||||
homepage = "http://www.aubm.net/"
|
||||
tags = ["Atom", "Code"]
|
||||
min_version = 0.14
|
||||
|
||||
[author]
|
||||
name = "Aurélien Baumann (Aubm)"
|
||||
homepage = "http://www.aubm.net"
|
Loading…
Reference in New Issue