diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5df1b9b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.sass-cache diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..5acd0f2 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,6 @@ +[submodule "modules/evil-icons"] + path = modules/evil-icons + url = https://github.com/outpunk/evil-icons.git +[submodule "modules/normalize-scss"] + path = modules/normalize-scss + url = https://github.com/JohnAlbin/normalize-scss.git diff --git a/README.md b/README.md new file mode 100644 index 0000000..0eabf82 --- /dev/null +++ b/README.md @@ -0,0 +1,29 @@ +# light-hugo + +This a responsive hugo theme using [normalize.css](https://github.com/necolas/normalize.css/) ([sass](https://github.com/JohnAlbin/normalize-scss)). It is material in nature and very bare boned. +No javascript is used. Just straight up HTML and CSS. + +## Page support + +There is support for the following types... + +* Posts +* Pages + +The posts will be treated as blogs and pages will be treated with a similar fashion. There is a GitHub css theme used for the markdown generated for posts and pages from [markdown styles](https://github.com/mixu/markdown-styles). + +## Config +The following config options are available for displaying custom content... + +```toml +title = "Tony Blyler" + +[Params] +description = "Programmer, deal with it" +logo = "/images/logo.png" +email = "tblyler@example.com" +github = "tblyler" +facebook = "example" +twitter = "tonyblyler" +linkedin = "tblyler" +``` diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..ac36e06 --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,2 @@ ++++ ++++ diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..fadee8c --- /dev/null +++ b/build.sh @@ -0,0 +1,37 @@ +#!/bin/bash +if ! which sass &> /dev/null; then + echo 'sass is missing from PATH' 1>&2 + exit 1 +fi + +if ! which awk &> /dev/null; then + echo 'awk is missing from PATH' 1>&2 + exit 1 +fi + +SASS_VERSION=$(sass --version | awk '{ print $2}' | tr '.' ' ') +SASS_MAJOR=$(echo "${SASS_VERSION}" | awk '{ print $1 }') +SASS_MINOR=$(echo "${SASS_VERSION}" | awk '{ print $2 }') + +if [ ${SASS_MAJOR} -lt 3 ] || ([ ${SASS_MAJOR} -eq 3 ] && [ ${SASS_MINOR} -lt 4 ]); then + echo 'sass version must be >= 3.4' 1>&2 + echo "version ${SASS_VERSION} installed" 1>&2 + exit 1 +fi + +if [ "${1}" = "watch" ]; then + sass --sourcemap=none --watch ./scss:./static/css + exit $? +fi + +echo 'Compiling sass' +sass --sourcemap=none --style compressed --update ./scss:./static/css + +RETURN=$? + +if [ $RETURN -ne 0 ]; then + echo 'Failure' 1>&2 + exit $RETURN +fi + +echo 'Success' diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..4acf980 --- /dev/null +++ b/layouts/404.html @@ -0,0 +1,6 @@ +{{ partial "header.html" . }} +