Browse Source

refactor(): change folder structure to be an actual hugo theme

master
kendo5731 6 years ago
parent
commit
23c4dc308c
  1. 7
      .gitignore
  2. 20
      LICENSE.md
  3. 2
      TOTO.md
  4. 2
      archetypes/default.md
  5. 18
      gulpfile.js
  6. 0
      layouts/404.html
  7. 0
      layouts/_default/list.html
  8. 0
      layouts/_default/single.html
  9. 0
      layouts/index.html
  10. 0
      layouts/partials/footer.html
  11. 0
      layouts/partials/header.html
  12. 3
      package.json
  13. 0
      static/css/_custom-bootstrap.scss
  14. 0
      static/css/_mixins.scss
  15. 0
      static/css/_variables.scss
  16. 1
      static/css/theme.scss
  17. 0
      static/fonts/.gitkeep
  18. 0
      static/img/twitthome_schema.png
  19. 0
      static/js/theme.js
  20. 14
      theme.toml

7
.gitignore

@ -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

20
LICENSE.md

@ -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

@ -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

2
archetypes/default.md

@ -0,0 +1,2 @@
+++
+++

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) {

0
public/fonts/.gitkeep → layouts/404.html

0
layouts/_default/list.html

0
layouts/_default/single.html

0
public/index.html → layouts/index.html

0
layouts/partials/footer.html

0
layouts/partials/header.html

3
package.json

@ -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"
}
}

0
public/css/_custom-bootstrap.scss → static/css/_custom-bootstrap.scss

0
public/css/_mixins.scss → static/css/_mixins.scss

0
public/css/_variables.scss → static/css/_variables.scss

1
public/css/theme.scss → static/css/theme.scss

@ -1,4 +1,3 @@
//@import "../../node_modules/bootstrap-sass/assets/stylesheets/bootstrap";
@import "./variables.scss";
@import "./custom-bootstrap.scss";
@import "./mixins.scss";

0
static/fonts/.gitkeep

0
public/img/twitthome_schema.png → static/img/twitthome_schema.png

Before

Width:  |  Height:  |  Size: 84 KiB

After

Width:  |  Height:  |  Size: 84 KiB

0
public/js/theme.js → static/js/theme.js

14
theme.toml

@ -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…
Cancel
Save