Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/eshlox/simplicity.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrzemysław Kołodziejczyk <eshlox@vertolabs.com>2017-12-28 19:22:16 +0300
committerPrzemysław Kołodziejczyk <eshlox@vertolabs.com>2017-12-28 19:22:16 +0300
commit99d3745fdddd270e36273d63eeb0eb81efe4bb6c (patch)
treebf7e16bb0d1f1f5ad6bf41fc07a11f1d1764f0bb /README.md
parent3fca61c0b10eb87d2759c6a37cbf41def2b8c42c (diff)
Improved documentation
Diffstat (limited to 'README.md')
-rw-r--r--README.md130
1 files changed, 127 insertions, 3 deletions
diff --git a/README.md b/README.md
index 185c0b4..ded5317 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,130 @@
-# WIP :fire:
+# Simplicity
-# Development
+Very simple, clean and readable (I think so) Hugo theme.
+- Responsive design
+- Clean typography
+- Google Analytics
+- Lightbox
+- Disqus
+- OpenGraph support
+- Schema Structured Data
+- Twitter card
+- Creative commons licence icon in footer (optional)
+- HTML5 grid
+- No JS frameworks, no CSS frameworks, no jQuery
+
+# Demo
+
+You can preview this theme on my personal blog - [eshlox.net](https://eshlox.net).
+
+## Table of Contents
+
+- [Table of Contents](#table-of-contents)
+- [Getting Started](#getting-started)
+ - [exampleSite](#examplesite)
+ - [config.toml](#configtoml)
+ - [favicons](#favicons)
+- [Shortcodes](#shortcodes)
+ - [figure](#figure)
+- [Development](#development)
+- [Browsers support](#browsers-support)
+- [License](#license)
+
+## Getting Started
+
+Run the following commands in your Hugo site directory to download the theme:
+
+```
+mkdir themes
+cd themes
+git clone https://github.com/eshlox/simplicity.git
+```
+
+### exampleSite
+
+Look inside `exampleSite` directory to find out how to configure your site.
+
+That's how the structure looks like:
+
+```
+exampleSite/
+├── config.toml
+├── content
+│   ├── categories
+│   │   └── _index.md
+│   ├── _index.md
+│   ├── posts
+│   │   ├── 2016
+│   │   │   └── lorem-ipsum.md
+│   │   ├── 2017
+│   │   │   ├── images.md
+│   │   │   └── typography.md
+│   │   └── _index.md
+│   └── tags
+│   └── _index.md
+├── public
+└── static
+ └── images
+ └── image-1.jpg
+```
+
+Every `_index.md` file contains title, language and slug.
+
+### config.toml
+
+Copy `config.toml` from `exampleSite` to the root directory of your Hugo site and modify it according to your needs.
+
+### favicons
+
+This theme contains default favicon with `S` letter. If you want to change it, create a directory `static/assets/img` inside the root of your Hugo site and put there your favicon files. They shoud have names: `favicon.ico` and `apple-touch-icon.png`.
+
+## Shortcodes
+
+This theme includes additional shortcodes.
+
+### figure
+
+Use [figure](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figure) to embed an image.
+
+```
+{{< figure src="/images/image-1.jpg" title="Photo" >}}
+```
+
+You can also use lightbox plugin to display image in full-screen mode ([baguetteBox.js](https://github.com/feimosi/baguetteBox.js)).
+
+```
+{{< figure src="/images/image-1.jpg" title="Photo" lightbox="true" >}}
+```
+
+## Development
+
+This theme uses `webpack`. You can install all required libraries using [yarn](https://github.com/yarnpkg/yarn).
+
+```
yarn install
-npm run build
+```
+
+When you change SCSS or Javascript files, you can compile changes using `npm run build` command.
+
+To review your changes, you can use `npm run start` command which will run `hugo serve` with content from `exampleSite`.
+
+## Browsers support
+
+Theme uses [HTML5 grid](https://caniuse.com/#feat=css-grid).
+
+Dekstop:
+
+- Firefox (latest)
+- Chrome (latest)
+
+Mobile:
+
+- Firefox (latest)
+- Chrome (latest)
+
+It probably works in other browsers but it's not tested yet.
+
+## Licence
+
+This theme is released under the MIT license. Please read the [license](https://github.com/eshlox/simplicity/blob/master/LICENSE) for more information.