diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..2559ed9 --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,7 @@ +{ + "title": "{{ replace .TranslationBaseName "-" " " | title }}", + "date": "{{ .Date }}", + "tags": [], + "categories": [], + "draft": true +} diff --git a/archetypes/section1.md b/archetypes/section1.md new file mode 100644 index 0000000..f6cf09a --- /dev/null +++ b/archetypes/section1.md @@ -0,0 +1,13 @@ +{ + "title": "{{ replace .TranslationBaseName "-" " " | title }}", + "linktitle": "{{ replace .TranslationBaseName "-" " " | title }}", + "short_description": "", + "date": "{{ .Date }}", + "aliases": 0, + "categories": [], + "mydates": "", + "draft": false, + "author": "" +} + +This is content diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..1cfcc8a --- /dev/null +++ b/config.toml @@ -0,0 +1,26 @@ +baseURL = "/" +enableRobotsTXT = true +languageCode = "en-us" +theme = "my-theme" +title = "my website" + +# Pagination +paginate = 4 +#paginatePath = "path" + +[params] +metadescription = "website" +sharedescription = "website" +sharetitle = "website" +theme = "website" +debug = true + +[taxonomies] +category = "categories" +tag = "tags" +mydate = "mydates" + +[sitemap] +changefreq = "daily" +priority = 0.5 +filename = "sitemap.xml" diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..1132e7e --- /dev/null +++ b/content/_index.md @@ -0,0 +1,11 @@ +{ + "date": "2017-12-27T12:06:48+02:00", + "tags": [ + "Finance", + "Technology", + "Startup" + ], + "title": "Website Title" +} + +Home page diff --git a/content/section1/first.md b/content/section1/first.md new file mode 100644 index 0000000..6b9f535 --- /dev/null +++ b/content/section1/first.md @@ -0,0 +1,13 @@ +{ + "title": "First", + "linktitle": "First", + "short_description": "", + "date": "2018-02-21T21:12:49+01:00", + "aliases": 0, + "categories": [], + "mydates": "2018-02-01", + "draft": false, + "author": "" +} + +This is content diff --git a/content/section1/second.md b/content/section1/second.md new file mode 100644 index 0000000..4002285 --- /dev/null +++ b/content/section1/second.md @@ -0,0 +1,13 @@ +{ + "title": "Second", + "linktitle": "Second", + "short_description": "", + "date": "2018-02-21T21:15:28+01:00", + "aliases": 0, + "categories": [], + "mydates": "2017-01-01", + "draft": false, + "author": "" +} + +This is content diff --git a/layouts/.gitkeep b/layouts/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/package.json b/package.json new file mode 100644 index 0000000..26accea --- /dev/null +++ b/package.json @@ -0,0 +1,65 @@ +{ + "name": "project", + "version": "1.0.0", + "description": "project", + "main": "index.js", + "webpackConfig": { + "inputFolder": "/themes/my-theme/src/", + "outputFolder": "/themes/my-theme/static/", + "prodServer": "/" + }, + "scripts": { + "start": "npm-run-all --parallel webpack-watch hugo-server", + "hugo-server": "hugo server -D --debug", + "webpack-watch": "webpack --watch --config webpack.conf.js", + "build": "rm -rf public && webpack --config webpack.conf.js && hugo", + "build-staging": "rm -rf public && webpack --config webpack.conf.js && hugo --config=staging.config.toml" + }, + "repository": { + "type": "git", + "url": "" + }, + "bugs": { + "url": "" + }, + "homepage": "", + "devDependencies": { + "autoprefixer": "^7.1.1", + "babel-core": "^6.25.0", + "babel-loader": "^7.1.1", + "babel-preset-es2015-webpack": "^6.4.3", + "copy-webpack-plugin": "^4.0.1", + "css-loader": "^0.28.4", + "datocms-client": "^0.3.25", + "extract-text-webpack-plugin": "^2.1.2", + "file-loader": "^0.11.2", + "fluidable": "git+https://github.com/andri/fluidable.git", + "friendly-errors-webpack-plugin": "^1.6.1", + "html-loader": "^0.4.5", + "html-webpack-harddisk-plugin": "^0.1.0", + "html-webpack-plugin": "^2.29.0", + "image-webpack-loader": "^3.3.1", + "imagemin-webpack-plugin": "^1.5.0-beta.0", + "json-loader": "^0.5.4", + "node-sass": "^4.5.3", + "normalize.sass": "^3.0.3", + "npm-run-all": "^4.0.2", + "optimize-css-assets-webpack-plugin": "^2.0.0", + "postcss-loader": "^2.0.6", + "sass-loader": "^6.0.6", + "sass-resources-loader": "^1.2.1", + "slick-carousel": "^1.8.1", + "stringify-object": "^3.2.0", + "style-loader": "^0.18.2", + "transfer-webpack-plugin": "^0.1.4", + "url-loader": "^0.5.9", + "urlize.js": "^1.0.1", + "webpack": "^3.0.0", + "webpack-dev-server": "^2.5.0", + "webpack-merge": "^4.1.0" + }, + "dependencies": { + "bourbon": "^5.0.0", + "jquery": "^3.2.1" + } +} diff --git a/themes/my-theme/LICENSE.md b/themes/my-theme/LICENSE.md new file mode 100644 index 0000000..315bcec --- /dev/null +++ b/themes/my-theme/LICENSE.md @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2017 YOUR_NAME_HERE + +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. diff --git a/themes/my-theme/archetypes/default.md b/themes/my-theme/archetypes/default.md new file mode 100644 index 0000000..ac36e06 --- /dev/null +++ b/themes/my-theme/archetypes/default.md @@ -0,0 +1,2 @@ ++++ ++++ diff --git a/themes/my-theme/layouts/404.html b/themes/my-theme/layouts/404.html new file mode 100644 index 0000000..610a658 --- /dev/null +++ b/themes/my-theme/layouts/404.html @@ -0,0 +1,12 @@ + + {{partial "vendor/head" .}} +
+ {{partial "header/markup" .}} +The page you’re looking for can’t be found.
+