2017-03-20 21:38:34 +02:00
# [Basically Basic Jekyll Theme][1]
2017-03-14 03:19:57 +02:00
2017-03-20 22:00:18 +02:00
[![Gem ](https://img.shields.io/gem/v/jekyll-theme-basically-basic.svg?style=flat-square )](https://rubygems.org/gems/jekyll-theme-basically-basic)
2017-03-14 03:19:57 +02:00
[![license ](https://img.shields.io/github/license/mmistakes/jekyll-theme-basically-basic.svg?style=flat-square )](LICENSE.md)
2017-03-07 23:11:32 +02:00
2017-03-20 20:33:08 +02:00
Basically Basic is a [Jekyll theme ](https://jekyllrb.com/docs/themes/ ) meant as
a substitute for the default --- [Minima ](https://github.com/jekyll/minima ).
Conventions and features found there are fully supported by **Basically Basic** ,
with a few enhancements thrown in for good measure:
2017-03-08 23:07:22 +02:00
2017-03-17 21:41:40 +02:00
- Clean responsive design with [six customizable skins ](#skin )
2017-03-08 23:07:22 +02:00
- Curriculum Vitæ/Resume layout powered by [JSON data ](http://registry.jsonresume.org/ )
2017-03-17 21:41:40 +02:00
- About page layout
2017-03-08 23:07:22 +02:00
- Disqus Comments and Google Analytics support
- SEO best practices via [Jekyll SEO Tag ](https://github.com/jekyll/jekyll-seo-tag/ )
2017-03-07 23:11:32 +02:00
2017-03-20 21:38:34 +02:00
[![Basically Basic live preview][2]][1]
[1]: https://mmistakes.github.io/jekyll-theme-basically-basic/
[2]: https://cloud.githubusercontent.com/assets/1376749/24117647/6dede894-0d81-11e7-9c2c-f19bea45e219.jpg (live preview)
2017-03-20 21:17:58 +02:00
2017-03-07 23:11:32 +02:00
## Table of Contents
2017-03-10 23:23:42 +02:00
1. [Installation ](#installation )
2018-01-07 04:23:29 +02:00
1. [Ruby Gem Method ](#ruby-gem-method )
2. [GitHub Pages Method ](#github-pages-method )
1. [Remove the Unnecessary ](#remove-the-unnecessary )
2. [Upgrading ](#upgrading )
2018-01-09 19:40:34 +02:00
1. [Ruby Gem ](#ruby-gem )
2. [Remote Theme ](#remote-theme )
3. [Use Git ](#use-git )
1. [Pull Down Updates ](#pull-down-updates )
4. [Update Files Manually ](#update-files-manually )
3. [Structure ](#structure )
2018-01-07 04:23:29 +02:00
1. [Starting Fresh ](#starting-fresh )
2. [Starting from `jekyll new` ](#starting-from-jekyll-new )
2018-01-09 19:40:34 +02:00
4. [Configuration ](#configuration )
2018-01-07 04:23:29 +02:00
1. [Skin ](#skin )
2. [Google Fonts ](#google-fonts )
3. [Text ](#text )
4. [Navigation ](#navigation )
5. [Pagination ](#pagination )
6. [Author ](#author )
7. [Reading Time ](#reading-time )
8. [Comments (via Disqus) ](#comments-via-disqus )
9. [Google Analytics ](#google-analytics )
2018-01-09 19:40:34 +02:00
5. [Layouts ](#layouts )
2018-01-07 04:23:29 +02:00
1. [`layout: default` ](#layout-default )
2. [`layout: post` ](#layout-post )
3. [`layout: page` ](#layout-page )
4. [`layout: home` ](#layout-home )
5. [`layout: about` ](#layout-about )
6. [`layout: cv` ](#layout-cv )
2018-01-09 19:40:34 +02:00
6. [Customization ](#customization )
2018-01-07 04:23:29 +02:00
1. [Overriding Includes and Layouts ](#overriding-includes-and-layouts )
2. [Customizing Sass (SCSS) ](#customizing-sass-scss )
3. [Customizing JavaScript ](#customizing-javascript )
4. [SVG Icons ](#svg-icons )
5. [Customizing Sidebar Content ](#customizing-sidebar-content )
2018-01-09 19:40:34 +02:00
7. [Development ](#development )
8. [Contributing ](#contributing )
2018-01-07 04:23:29 +02:00
1. [Pull Requests ](#pull-requests )
2018-01-09 19:40:34 +02:00
9. [Credits ](#credits )
2018-01-07 04:23:29 +02:00
1. [Creator ](#creator )
2. [Icons + Demo Images: ](#icons--demo-images )
3. [Other: ](#other )
2018-01-09 19:40:34 +02:00
10. [License ](#license )
2017-03-10 23:23:42 +02:00
2017-03-07 23:11:32 +02:00
## Installation
2018-01-07 04:31:51 +02:00
If you're running Jekyll v3.5+ and self-hosting you can quickly install the
theme as a Ruby gem. If you're hosting with GitHub Pages you can install as a
remote theme or directly copy all of the theme files (see [structure ](#structure )
below) into your project.
2017-03-29 23:32:50 +03:00
### Ruby Gem Method
2018-01-07 04:23:29 +02:00
1. Add this line to your Jekyll site's `Gemfile` :
2017-03-07 23:11:32 +02:00
```ruby
2017-03-20 21:52:25 +02:00
gem "jekyll-theme-basically-basic"
2017-03-07 23:11:32 +02:00
```
2018-01-07 04:23:29 +02:00
2. Add this line to your Jekyll site's `_config.yml` file:
2017-03-07 23:11:32 +02:00
```yaml
theme: jekyll-theme-basically-basic
```
2018-01-07 04:23:29 +02:00
2. Then run [Bundler ](http://bundler.io/ ) to install the theme gem and dependencies:
```terminal
bundle install
```
2017-03-29 23:32:50 +03:00
2018-01-07 04:23:29 +02:00
### GitHub Pages Method
2017-03-29 23:32:50 +03:00
2018-01-07 04:31:51 +02:00
GitHub Pages has added [full support ](https://github.com/blog/2464-use-any-theme-with-github-pages )
for any GitHub-hosted theme.
2017-12-01 16:47:52 +02:00
2018-01-07 04:23:29 +02:00
1. Replace `gem "jekyll"` with:
2017-12-01 16:47:52 +02:00
2018-01-07 04:23:29 +02:00
```ruby
gem "github-pages", group: :jekyll_plugins
```
2017-12-01 16:47:52 +02:00
2018-01-07 04:23:29 +02:00
2. Run `bundle update` and verify that all gems install properly.
2017-12-01 16:47:52 +02:00
2018-01-07 04:31:51 +02:00
3. Add `remote_theme: "mmistakes/jekyll-theme-basically-basic"` to your
`_config.yml` file. Remove any other `theme:` or `remote_theme:` entries.
2017-03-29 23:32:50 +03:00
2018-01-07 04:23:29 +02:00
---
2018-01-02 23:24:55 +02:00
2018-01-07 04:31:51 +02:00
**Note:** Your Jekyll site should be viewable immediately at
< http: / / USERNAME . github . io > . If it's not, you can force a rebuild by
**Customizing Your Site** (see below for more details).
2017-12-01 16:47:52 +02:00
2018-01-07 04:31:51 +02:00
If you're hosting several Jekyll based sites under the same GitHub username you
will have to use Project Pages instead of User Pages. Essentially you rename the
repo to something other than **USERNAME.github.io** and create a `gh-pages`
branch off of `master` . For more details on how to set things up check
[GitHub's documentation ](https://help.github.com/articles/user-organization-and-project-pages/ ).
2017-03-29 23:32:50 +03:00
#### Remove the Unnecessary
If you forked or downloaded the `jekyll-theme-basically-basic` repo you can
safely remove the following files and folders:
- `.codeclimate.yml`
- `.editorconfig`
- `.gitattributes`
- `.github`
- `.scss-lint.yml`
- `CHANGELOG.md`
- `jekyll-theme-basically-basic.gemspec`
- `LICENSE.md`
- `Rakefile`
- `README.md`
- `screenshot.png`
- `/docs`
- `/example`
2018-01-07 04:23:29 +02:00
## Upgrading
2018-01-07 04:31:51 +02:00
If you're using the Ruby Gem or remote theme versions of Basically Basic,
upgrading is fairly painless.
2018-01-07 04:23:29 +02:00
2018-01-07 04:31:51 +02:00
To check which version you are currently using, view the source of your built
site and you should something similar to:
2018-01-07 04:23:29 +02:00
```
<!--
Basically Basic Jekyll Theme 1.2.0
Copyright 2017-2018 Michael Rose - mademistakes.com | @mmistakes
Free for personal and commercial use under the MIT license
https://github.com/mmistakes/jekyll-basically-theme/blob/master/LICENSE.md
-->
```
At the top of every `.html` file, `/assets/css/main.css` , and `/assets/js/main.js` .
2018-01-09 19:40:34 +02:00
### Ruby Gem
2018-01-07 04:23:29 +02:00
2018-01-07 04:31:51 +02:00
Simply run `bundle update` if you're using Bundler (have a `Gemfile` ) or `gem
update jekyll-theme-basically-basic` if you're not.
2018-01-07 04:23:29 +02:00
2018-01-09 19:40:34 +02:00
### Remote Theme
2018-01-07 04:23:29 +02:00
2018-01-07 04:31:51 +02:00
When hosting with GitHub Pages you'll need to push up a commit to force a
rebuild with the latest [theme release ](https://github.com/mmistakes/jekyll-theme-basically-basic/releases ).
2018-01-07 04:23:29 +02:00
2018-01-07 04:31:51 +02:00
An empty commit will get the job done too if you don't have anything to push at
the moment:
2018-01-07 04:23:29 +02:00
```terminal
git commit --allow-empty -m "Force rebuild of site"
```
2018-01-09 19:40:34 +02:00
### Use Git
2018-01-07 04:23:29 +02:00
2018-01-07 04:31:51 +02:00
If you want to get the most out of the Jekyll + GitHub Pages workflow, then
you'll need to utilize Git. To pull down theme updates you must first ensure
there's an upstream remote. If you forked the theme's repo then you're likely
good to go.
2018-01-07 04:23:29 +02:00
To double check, run `git remote -v` and verify that you can fetch from `origin https://github.com/mmistakes/jekyll-theme-basically-basic.git` .
To add it you can do the following:
```terminal
git remote add upstream https://github.com/mmistakes/jekyll-theme-basically-basic.git
```
2018-01-09 19:40:34 +02:00
#### Pull Down Updates
2018-01-07 04:23:29 +02:00
Now you can pull any commits made to theme's `master` branch with:
```terminal
git pull upstream master
```
2018-01-07 04:31:51 +02:00
Depending on the amount of customizations you've made after forking, there's
likely to be merge conflicts. Work through any conflicting files Git flags,
staging the changes you wish to keep, and then commit them.
2018-01-07 04:23:29 +02:00
2018-01-09 19:40:34 +02:00
### Update Files Manually
2018-01-07 04:23:29 +02:00
2018-01-07 04:31:51 +02:00
Another way of dealing with updates is [downloading the theme ](https://github.com/mmistakes/jekyll-theme-basically-basic/archive/master.zip )
--- replacing your layouts, includes, and assets with the newer ones manually.
To be sure that you don't miss any changes it's probably a good idea to review
the theme's [commit history ](https://github.com/mmistakes/jekyll-theme-basically-basic/commits/master )
to see what's changed since.
2018-01-07 04:23:29 +02:00
2018-01-07 04:31:51 +02:00
Here's a quick checklist of the important folders/files you'll want to be
mindful of:
2018-01-07 04:23:29 +02:00
| Name | |
| ---- | --- |
| `_layouts` | Replace all. Apply edits if you customized any layouts. |
| `_includes` | Replace all. Apply edits if you customized any includes. |
| `assets` | Replace all. Apply edits if you customized stylesheets or scripts. |
| `_sass` | Replace all. Apply edits if you customized Sass partials. |
| `_data/theme.yml` | Safe to keep. Verify that there were no major structural changes or additions. |
| `_config.yml` | Safe to keep. Verify that there were no major structural changes or additions. |
---
2018-01-07 04:31:51 +02:00
**Note:** If you're not seeing the latest version, be sure to flush browser and
CDN caches. Depending on your hosting environment older versions of
`/assets/css/main.css` , `/assets/js/main.js` , or `*.html` may be cached.
2018-01-07 04:23:29 +02:00
2017-03-29 23:32:50 +03:00
## Structure
Layouts, includes, Sass partials, and data files are all placed in their default
locations. Stylesheets and scripts in `assets` , and a few development related
files in the project's root directory.
**Please note:** If you installed Basically Basic via the Ruby Gem method, theme
files found in `/_layouts` , `/_includes` , `/_sass` , and `/assets` will be
missing. This is normal as they are bundled with the [`jekyll-theme-basically-basic` ](https://rubygems.org/gems/jekyll-theme-basically-basic ) gem.
2018-01-07 04:23:29 +02:00
```terminal
2017-03-29 23:32:50 +03:00
jekyll-theme-basically-basic
├── _data # data files
| └── theme.yml # theme settings and custom text
├── _includes # theme includes and SVG icons
├── _layouts # theme layouts (see below for details)
├── _sass # Sass partials
├── assets
| ├── javascripts
| | └── main.js
2017-03-29 23:35:59 +03:00
| └── stylesheets
| └── main.scss
2017-03-29 23:32:50 +03:00
├── _config.yml # sample configuration
└── index.md # sample home page (all posts/not paginated)
```
### Starting Fresh
After creating a `Gemfile` and installing the theme you'll need to add and edit
the following files:
- [`_config.yml` ](_config.yml )
- [`/_data/theme.yml` ](_data/theme.yml )
- [`index.md` ](index.md )
**Note:** Consult the [**pagination** ](#pagination ) documentation below for
instructions on how to enable it for the home page.
### Starting from `jekyll new`
Using the `jekyll new` command will get you up and running the quickest.
Edit `_config.yml` and create `_data/theme.yml` as instructed above and you're
good to go.
2017-03-07 23:11:32 +02:00
2017-03-20 20:33:08 +02:00
## Configuration
2017-03-19 18:27:58 +02:00
2017-03-20 20:33:08 +02:00
Configuration of site-wide elements (`lang`, `title` , `description` , `logo` ,
`author` , etc.) happens in your project's `_config.yml` . See the
[example configuration ](example/_config.yml ) in this repo for additional
reference.
| | Description |
| ------------------ | ------------------------------------------------------------------------- |
| `lang` | Used to indicate the language of text (e.g., en-US, en-GB, fr) |
| `title` | Your site's title (e.g., Dungan's Awesome Site) |
| `description` | Short site description (e.g., A blog about grasshopper mash) |
| `url` | The full URL to your site (e.g., https://groverloaf.org) |
| `author` | Global author information (see below) |
| `logo` | Path to a site-wide logo ~100x100px (e.g., /assets/your-company-logo.png) |
| `twitter_username` | Site-wide Twitter username, used as a link in sidebar |
| `github_username` | Site-wide GitHub username, used as a link in sidebar |
For more configuration options be sure to consult the documentation for:
[**jekyll-seo-tag**][jekyll-seo-tag], [**jekyll-feed**][jekyll-feed],
[**jekyll-paginate**][jekyll-paginate], and [**jekyll-sitemap**][jekyll-sitemap].
[jekyll-seo-tag]: https://github.com/jekyll/jekyll-seo-tag
[jekyll-feed]: https://github.com/jekyll/jekyll-feed
[jekyll-paginate]: https://github.com/jekyll/jekyll-paginate
[jekyll-sitemap]: https://github.com/jekyll/jekyll-sitemap
2017-03-07 23:11:32 +02:00
### Skin
2017-03-20 20:33:08 +02:00
This theme comes in six different skins (color variations). To change skins add
one of the following to your [`/_data/theme.yml` ](_data/theme.yml ) file:
2017-03-10 18:48:55 +02:00
2017-03-20 20:42:29 +02:00
| `skin: default` | `skin: night` | `skin: plum` |
| --- | --- | --- |
2017-03-20 20:39:51 +02:00
| ![default-skin ](https://cloud.githubusercontent.com/assets/1376749/24115744/c0618c90-0d7a-11e7-8e2d-ec70f9db0c1b.png ) | ![night-skin ](https://cloud.githubusercontent.com/assets/1376749/24115770/d61127f8-0d7a-11e7-9158-986bee2be8e7.png ) | ![plum-skin ](https://cloud.githubusercontent.com/assets/1376749/24115778/db523a0e-0d7a-11e7-9452-8692b736d67e.png ) |
2017-03-20 20:42:29 +02:00
| `skin: sea` | `skin: soft` | `skin: steel` |
| --- | --- | --- |
2017-03-20 20:43:27 +02:00
| ![sea-skin ](https://cloud.githubusercontent.com/assets/1376749/24115788/e27d818a-0d7a-11e7-8c56-2480e9ae83fb.png ) | ![soft-skin ](https://cloud.githubusercontent.com/assets/1376749/24115790/e6e548e8-0d7a-11e7-8e2d-d8053e8befd1.png ) | ![steel-skin ](https://cloud.githubusercontent.com/assets/1376749/24115799/eb2108e8-0d7a-11e7-8cc3-a6f22e4082ee.png ) |
2017-03-10 18:48:55 +02:00
2017-03-10 19:35:33 +02:00
### Google Fonts
2017-03-20 20:33:08 +02:00
This theme allows you to easily use [Google Fonts ](https://fonts.google.com/ )
throughout the theme. Simply add the following to your
[`/_data/theme.yml` ](_data/theme.yml ), replacing the font `name` and `weights`
accordingly.
2017-03-10 19:35:33 +02:00
```yaml
google_fonts:
- name: "Fira Sans"
weights: "400,400i,600,600i"
- name: "Fira Sans Condensed"
```
2017-03-10 18:48:55 +02:00
### Text
2017-03-20 20:33:08 +02:00
To change text found throughout the theme add the following to your
[`/_data/theme.yml` ](_data/theme.yml ) file and customize as necessary.
2017-03-10 18:48:55 +02:00
```yaml
t:
skip_links: "Skip links"
skip_primary_nav: "Skip to primary navigation"
skip_content: "Skip to content"
skip_footer: "Skip to footer"
2017-03-17 15:56:16 +02:00
menu: "Menu"
2017-03-10 18:48:55 +02:00
home: "Home"
newer: "Newer"
older: "Older"
email: "Email"
subscribe: "Subscribe"
read_more: "Read More"
posts: "Posts"
page: "Page"
of: "of"
2017-03-17 15:36:47 +02:00
min_read: "min read"
2017-03-17 17:56:20 +02:00
present: "Present"
2017-03-10 18:48:55 +02:00
```
2017-03-07 23:11:32 +02:00
### Navigation
2017-03-20 20:33:08 +02:00
By default all internal pages with a `title` will be added to the "off-canvas"
menu. For more granular control and sorting of these menu links:
2017-03-07 23:11:32 +02:00
2017-03-20 20:33:08 +02:00
1. Create a custom list to override the default setting by adding a
`navigation_pages` array to your [`/_data/theme.yml` ](_data/theme.yml ) file.
2017-03-07 23:11:32 +02:00
2. Add raw page paths in the order you'd like:
```yaml
navigation_pages:
- about.md
- cv.md
```
2017-03-20 20:33:08 +02:00
Each menu link's title and URL will be populated based on their `title` and
`permalink` respectively.
2017-03-07 23:11:32 +02:00
### Pagination
2017-03-20 20:33:08 +02:00
Break up the main listing of posts into smaller lists and display them over
multiple pages by [enabling pagination ](http://jekyllrb.com/docs/pagination/ ).
2017-03-07 23:11:32 +02:00
1. Include the `jekyll-paginate` plugin in your `Gemfile` .
```ruby
group :jekyll_plugins do
gem "jekyll-paginate"
end
```
2017-03-20 20:33:08 +02:00
2. Add `jekyll-paginate` to `gems` array in your `_config.yml` file and the
following pagination settings:
2017-03-07 23:11:32 +02:00
```yaml
paginate: 5 # amount of posts to show per page
paginate_path: /page:num/
```
2017-03-20 20:33:08 +02:00
3. Create `index.html` (or rename `index.md` ) in the root of your project and
2017-03-29 23:32:50 +03:00
add the following front matter:
```yaml
layout: home
paginate: true
```
2017-03-07 23:11:32 +02:00
2017-03-08 23:07:22 +02:00
### Author
2017-03-20 20:33:08 +02:00
Author information is used as meta data for post "by lines" and propagates the
2017-03-29 23:32:50 +03:00
`creator` field of Twitter summary cards with the following front matter in
`_config.yml` :
2017-03-08 23:07:22 +02:00
```yaml
author:
name: John Doe
twitter: johndoetwitter
picture: /assets/images/johndoe.png
```
2017-03-29 23:32:50 +03:00
Site-wide author information can be overridden in a document's front matter in
the same way:
2017-03-08 23:07:22 +02:00
```yaml
author:
name: Jane Doe
twitter: janedoetwitter
picture: /assets/images/janedoe.png
```
2017-03-29 23:32:50 +03:00
Or by specifying a corresponding key in the document's front matter, that
2017-03-20 20:33:08 +02:00
exists in `site.data.authors` . E.g., you have the following in the document's
2017-03-29 23:32:50 +03:00
front matter:
2017-03-08 23:07:22 +02:00
```yaml
author: megaman
```
And you have the following in `_data/authors.yml` :
```yaml
megaman:
name: Mega Man
twitter: megamantwitter
picture: /assets/images/megaman.png
drlight:
name: Dr. Light
twitter: drlighttwitter
picture: /assets/images/drlight.png
```
2017-03-20 20:33:08 +02:00
Currently `author.picture` is only used in `layout: about` . Recommended size is
`300 x 300` pixels.
2017-03-08 23:07:22 +02:00
2017-03-17 15:36:47 +02:00
### Reading Time
2017-03-20 20:33:08 +02:00
To enable reading time counts add `read_time: true` to a post or page's YAML
Front Matter.
2017-03-17 15:36:47 +02:00
2017-03-07 23:11:32 +02:00
### Comments (via Disqus)
2017-03-20 20:33:08 +02:00
Optionally, if you have a [Disqus ](https://disqus.com/ ) account, you can show a
comments section below each post.
2017-03-07 23:11:32 +02:00
2018-01-07 04:31:51 +02:00
To enable Disqus comments, add your [Disqus shortname ](https://help.disqus.com/customer/portal/articles/466208 ) to your project's
`_config.yml` file:
2017-03-07 23:11:32 +02:00
```yaml
disqus:
shortname: my_disqus_shortname
```
2017-03-20 20:33:08 +02:00
Comments are enabled by default and will only appear in production when built
with the following [environment value ](http://jekyllrb.com/docs/configuration/#specifying-a-jekyll-environment-at-build-time ):
`JEKYLL_ENV=production`
2017-03-07 23:11:32 +02:00
2017-03-20 20:33:08 +02:00
If you don't want to display comments for a particular post you can disable
2017-03-29 23:32:50 +03:00
them by adding `comments: false` to that post's front matter.
2017-03-07 23:11:32 +02:00
### Google Analytics
2017-03-20 20:33:08 +02:00
To enable Google Analytics, add your [tracking ID ](https://support.google.com/analytics/answer/1032385 )
to `_config.yml` like so:
2017-03-07 23:11:32 +02:00
```yaml
google_analytics: UA-NNNNNNNN-N
```
2017-03-20 20:33:08 +02:00
Similar to comments, the Google Analytics tracking script will only appear in
production when using the following environment value: `JEKYLL_ENV=production` .
2017-03-07 23:11:32 +02:00
## Layouts
2017-03-20 20:33:08 +02:00
This theme provides the following layouts, which you can use by setting the
`layout` [Front Matter ](https://jekyllrb.com/docs/frontmatter/ ) on each page,
like so:
2017-03-07 23:11:32 +02:00
```yaml
---
layout: name
---
```
### `layout: default`
2017-03-20 20:33:08 +02:00
This layout handles all of the basic page scaffolding placing the page content
between the masthead and footer elements. All other layouts inherit this one
and provide additional styling and features inside of the `{{ content }}` block.
2017-03-08 23:07:22 +02:00
2017-03-07 23:11:32 +02:00
### `layout: post`
2017-03-29 23:32:50 +03:00
This layout accommodates the following front matter:
2017-03-08 23:07:22 +02:00
```yaml
# optional alternate title to replace page.title at the top of the page
alt_title: "Basically Basic"
# optional sub-title below the page title
sub_title: "The name says it all"
# optional intro text below titles, Markdown allowed
introduction: |
2017-03-17 21:41:40 +02:00
Basically Basic is a Jekyll theme meant to be a substitute for the default --- [Minima ](https://github.com/jekyll/minima ). Conventions and features found in Minima are fully supported by **Basically Basic** .
2017-03-08 23:07:22 +02:00
# optional call to action links
actions:
- label: "Learn More"
icon: github # references name of svg icon, see full list below
url: "http://url-goes-here.com"
- label: "Download"
icon: download # references name of svg icon, see full list below
url: "http://url-goes-here.com"
2017-03-17 17:53:13 +02:00
image: # URL to a hero image associated with the post (e.g., /assets/page-pic.jpg)
2017-03-08 23:07:22 +02:00
# post specific author data if different from what is set in _config.yml
author:
name: John Doe
twitter: johndoetwitter
comments: false # disable comments on this post
```
2017-03-07 23:11:32 +02:00
### `layout: page`
2017-03-20 20:33:08 +02:00
Visually this layout looks and acts the same as `layout: post` , with two minor
differences.
2017-03-08 23:07:22 +02:00
- Author "by line" and publish date are omitted.
- Disqus comments are omitted.
2017-03-07 23:11:32 +02:00
### `layout: home`
2017-03-29 23:32:50 +03:00
This layout accommodates the same front matter as `layout: page` , with the
2017-03-20 20:33:08 +02:00
addition of the following:
2017-03-08 23:07:22 +02:00
```yaml
paginate: true # enables pagination loop, see section above for additional setup
```
2017-03-07 23:11:32 +02:00
### `layout: about`
2017-03-29 23:32:50 +03:00
This layout accommodates the same front matter as `layout: page` , with the
2017-03-20 20:33:08 +02:00
addition of the following to display an author picture:
2017-03-08 23:07:22 +02:00
```yaml
author:
name: John Doe
2017-03-21 01:53:43 +02:00
picture: /assets/images/johndoe.png
2017-03-08 23:07:22 +02:00
```
2017-03-20 20:33:08 +02:00
Recommended `picture` size is approximately `300 x 300` pixels. If `author`
2017-03-29 23:32:50 +03:00
object is not explicitly set in the about page's front matter the theme
2017-03-20 20:33:08 +02:00
will default to the value set in `_config.yml` .
2017-03-08 23:07:22 +02:00
If blank there no image will appear.
2017-03-07 23:11:32 +02:00
### `layout: cv`
2017-03-29 23:32:50 +03:00
This layout accommodates the same front matter as `layout: page` . It
2017-03-20 20:33:08 +02:00
leverages a [JSON-based file standard ](https://jsonresume.org/schema/ ) for
resume data to conveniently render a curriculum vitæ or resume painlessly.
2017-03-08 23:07:22 +02:00
2017-03-20 20:33:08 +02:00
Simply use JSON Resume's [in-browser resume builder ](http://registry.jsonresume.org/ )
to export a JSON file and save to your project as `_data/cv.json` .
2017-03-08 23:07:22 +02:00
2017-03-07 23:11:32 +02:00
## Customization
2017-03-20 20:33:08 +02:00
The default structure, style, and scripts of this theme can be overridden and
customized in the following two ways.
2017-03-07 23:11:32 +02:00
### Overriding Includes and Layouts
2017-03-20 20:33:08 +02:00
Theme defaults can be [overridden ](http://jekyllrb.com/docs/themes/#overriding-theme-defaults )
by placing a file with the same name into your project's `_includes` or
`_layouts` directory. For instance:
2017-03-07 23:11:32 +02:00
2017-03-20 20:33:08 +02:00
- To specify a custom style path or meta data to the [`_includes/head.html ` ](_includes/head.html )
file, create an `_includes` directory in your project, copy
`_includes/head.html` from Basically Basic's gem folder to
`<your_project>/_includes` and start editing that file.
2017-03-07 23:11:32 +02:00
2017-03-20 20:33:08 +02:00
**ProTip:** to locate the theme's files on your computer run
`bundle show jekyll-theme-basically-basic` . This returns the location of the
gem-based theme files.
2017-03-07 23:11:32 +02:00
### Customizing Sass (SCSS)
2017-03-20 20:33:08 +02:00
To override the default [Sass ](http://sass-lang.com/guide ) (located in theme's
`_sass` directory), do one of the following:
2017-03-07 23:11:32 +02:00
1. Copy directly from the Basically Basic gem
2017-03-20 20:35:45 +02:00
- Go to your local Basically Basic gem installation directory (run
`bundle show jekyll-theme-basically-basic` to get the path to it).
- Copy the contents of `/assets/stylesheets/main.scss` from there to
`<your_project>` .
2017-03-31 15:15:24 +03:00
- Customize what you want inside `<your_project>/assets/stylesheets/main.scss` .
2017-03-07 23:11:32 +02:00
2. Copy from this repo.
2017-03-20 20:35:45 +02:00
- Copy the contents of [assets/stylesheets/main.scss ](assets/stylesheets/main.scss )
to `<your_project>` .
2017-03-31 15:15:24 +03:00
- Customize what you want inside `<your_project/assets/stylesheets/main.scss` .
2017-03-07 23:11:32 +02:00
2017-03-20 20:33:08 +02:00
**Note:** To make more extensive changes and customize the Sass partials bundled
2018-01-07 04:31:51 +02:00
in the gem. You will need to copy the complete contents of the `_sass` directory
to `<your_project>` due to the way Jekyll currently reads those files.
2017-03-07 23:11:32 +02:00
2017-03-20 20:33:08 +02:00
To make basic tweaks to theme's style Sass variables can be overridden by adding
to `<your_project>/assets/stylesheets/main.scss` . For instance, to change the
2018-01-07 04:31:51 +02:00
accent color used throughout the theme add the following:
2017-03-07 23:11:32 +02:00
```scss
$accent-color: red;
```
### Customizing JavaScript
To override the default JavaScript bundled in the theme, do one of the following:
1. Copy directly from the Basically Basic gem
2017-03-20 20:35:45 +02:00
- Go to your local Basically Basic gem installation directory (run
`bundle show jekyll-theme-basically-basic` to get the path to it).
- Copy the contents of `/assets/javascripts/main.js` from there to
`<your_project>` .
- Customize what you want inside `<your_project>/assets/javascripts/main.js` .
2017-03-07 23:11:32 +02:00
2. Copy from this repo.
2017-03-20 20:35:45 +02:00
- Copy the contents of [assets/javascripts/main.js ](assets/javascripts/main.js )
to `<your_project>` .
- Customize what you want inside `<your_project>/assets/javascripts/main.js` .
2017-03-07 23:11:32 +02:00
2017-03-08 23:07:22 +02:00
### SVG Icons
2017-03-23 16:38:57 +02:00
The theme uses social network logos and other iconography saved as SVGs for
performance and flexibility. Said SVGs are located in the `_includes` directory
and prefixed with `icon-` . Each icon has been sized and designed to fit a
`16 x 16` viewbox and optimized with [SVGO ](https://github.com/svg/svgo ).
| Icon | Filename |
2017-03-23 16:28:07 +02:00
| --- | --- |
2017-03-23 16:37:54 +02:00
| < img src = "https://cdn.rawgit.com/mmistakes/jekyll-theme-basically-basic/master/_includes/icon-arrow-left.svg" width = "16" height = "16" > | icon-arrow-left.svg |
| < img src = "https://cdn.rawgit.com/mmistakes/jekyll-theme-basically-basic/master/_includes/icon-arrow-right.svg" width = "16" height = "16" > | icon-arrow-right.svg |
| < img src = "https://cdn.rawgit.com/mmistakes/jekyll-theme-basically-basic/master/_includes/icon-bitbucket.svg" width = "16" height = "16" > | icon-bitbucket.svg |
| < img src = "https://cdn.rawgit.com/mmistakes/jekyll-theme-basically-basic/master/_includes/icon-calendar.svg" width = "16" height = "16" > | icon-calendar.svg |
| < img src = "https://cdn.rawgit.com/mmistakes/jekyll-theme-basically-basic/master/_includes/icon-codepen.svg" width = "16" height = "16" > | icon-codepen.svg |
| < img src = "https://cdn.rawgit.com/mmistakes/jekyll-theme-basically-basic/master/_includes/icon-download.svg" width = "16" height = "16" > | icon-download.svg |
| < img src = "https://cdn.rawgit.com/mmistakes/jekyll-theme-basically-basic/master/_includes/icon-dribbble.svg" width = "16" height = "16" > | icon-dribbble.svg |
| < img src = "https://cdn.rawgit.com/mmistakes/jekyll-theme-basically-basic/master/_includes/icon-email.svg" width = "16" height = "16" > | icon-email.svg |
| < img src = "https://cdn.rawgit.com/mmistakes/jekyll-theme-basically-basic/master/_includes/icon-facebook.svg" width = "16" height = "16" > | icon-facebook.svg |
| < img src = "https://cdn.rawgit.com/mmistakes/jekyll-theme-basically-basic/master/_includes/icon-flickr.svg" width = "16" height = "16" > | icon-flickr.svg |
| < img src = "https://cdn.rawgit.com/mmistakes/jekyll-theme-basically-basic/master/_includes/icon-github.svg" width = "16" height = "16" > | icon-github.svg |
| < img src = "https://cdn.rawgit.com/mmistakes/jekyll-theme-basically-basic/master/_includes/icon-gitlab.svg" width = "16" height = "16" > | icon-gitlab.svg |
| < img src = "https://cdn.rawgit.com/mmistakes/jekyll-theme-basically-basic/master/_includes/icon-googleplus.svg" width = "16" height = "16" > | icon-googleplus.svg |
| < img src = "https://cdn.rawgit.com/mmistakes/jekyll-theme-basically-basic/master/_includes/icon-instagram.svg" width = "16" height = "16" > | icon-instagram.svg |
| < img src = "https://cdn.rawgit.com/mmistakes/jekyll-theme-basically-basic/master/_includes/icon-lastfm.svg" width = "16" height = "16" > | icon-lastfm.svg |
| < img src = "https://cdn.rawgit.com/mmistakes/jekyll-theme-basically-basic/master/_includes/icon-linkedin.svg" width = "16" height = "16" > | icon-linkedin.svg |
| < img src = "https://cdn.rawgit.com/mmistakes/jekyll-theme-basically-basic/master/_includes/icon-pdf.svg" width = "16" height = "16" > | icon-pdf.svg |
| < img src = "https://cdn.rawgit.com/mmistakes/jekyll-theme-basically-basic/master/_includes/icon-pinterest.svg" width = "16" height = "16" > | icon-pinterest.svg |
| < img src = "https://cdn.rawgit.com/mmistakes/jekyll-theme-basically-basic/master/_includes/icon-rss.svg" width = "16" height = "16" > | icon-rss.svg |
| < img src = "https://cdn.rawgit.com/mmistakes/jekyll-theme-basically-basic/master/_includes/icon-soundcloud.svg" width = "16" height = "16" > | icon-soundcloud.svg |
| < img src = "https://cdn.rawgit.com/mmistakes/jekyll-theme-basically-basic/master/_includes/icon-stackoverflow.svg" width = "16" height = "16" > | icon-stackoverflow.svg |
| < img src = "https://cdn.rawgit.com/mmistakes/jekyll-theme-basically-basic/master/_includes/icon-stopwatch.svg" width = "16" height = "16" > | icon-stopwatch.svg |
| < img src = "https://cdn.rawgit.com/mmistakes/jekyll-theme-basically-basic/master/_includes/icon-tumblr.svg" width = "16" height = "16" > | icon-tumblr.svg |
| < img src = "https://cdn.rawgit.com/mmistakes/jekyll-theme-basically-basic/master/_includes/icon-twitter.svg" width = "16" height = "16" > | icon-twitter.svg |
| < img src = "https://cdn.rawgit.com/mmistakes/jekyll-theme-basically-basic/master/_includes/icon-xing.svg" width = "16" height = "16" > | icon-xing.svg |
| < img src = "https://cdn.rawgit.com/mmistakes/jekyll-theme-basically-basic/master/_includes/icon-youtube.svg" width = "16" height = "16" > | icon-youtube.svg |
2017-03-23 16:28:07 +02:00
2017-03-20 20:33:08 +02:00
Fill colors are defined in the `_sass/basically-basic/_icons.scss` partial and
set with `.icon-name` where class name matches the corresponding icon.
2017-03-08 23:07:22 +02:00
For example the Twitter icon is given a fill color of `#1da1f2` like so:
```html
< span class = "icon icon--twitter" > {% include icon-twitter.svg %}< / span >
```
2017-03-20 20:33:08 +02:00
Alongside the SVG assets, there are icon helper includes to aid in generating
social network links.
2017-03-08 23:07:22 +02:00
| Include Parameter | Description | Required |
| ----------------- | ---------------------------------| ----------------------- |
| `username` | Username on given social network | **Required** |
| `label` | Text used for hyperlink | Optional, defaults to `username` |
For example, the following `icon-github.html` include:
```liquid
{% include icon-github.html username=jekyll label='GitHub' %}
```
Will output the following HTML:
```html
< a href = "https://github.com/jekyll" >
< span class = "icon icon--github" > < svg viewBox = "0 0 16 16" xmlns = "http://www.w3.org/2000/svg" fill-rule = "evenodd" clip-rule = "evenodd" stroke-linejoin = "round" stroke-miterlimit = "1.414" > < path d = "M8 0C3.58 0 0 3.582 0 8c0 3.535 2.292 6.533 5.47 7.59.4.075.547-.172.547-.385 0-.19-.007-.693-.01-1.36-2.226.483-2.695-1.073-2.695-1.073-.364-.924-.89-1.17-.89-1.17-.725-.496.056-.486.056-.486.803.056 1.225.824 1.225.824.714 1.223 1.873.87 2.33.665.072-.517.278-.87.507-1.07-1.777-.2-3.644-.888-3.644-3.953 0-.873.31-1.587.823-2.147-.09-.202-.36-1.015.07-2.117 0 0 .67-.215 2.2.82.64-.178 1.32-.266 2-.27.68.004 1.36.092 2 .27 1.52-1.035 2.19-.82 2.19-.82.43 1.102.16 1.915.08 2.117.51.56.82 1.274.82 2.147 0 3.073-1.87 3.75-3.65 3.947.28.24.54.73.54 1.48 0 1.07-.01 1.93-.01 2.19 0 .21.14.46.55.38C13.71 14.53 16 11.53 16 8c0-4.418-3.582-8-8-8" > < / path > < / svg > < / span >
< span class = "label" > GitHub< / span >
< / a >
```
2017-03-07 23:11:32 +02:00
### Customizing Sidebar Content
---
## Development
To set up your environment to develop this theme:
1. Clone this repo
2. `cd` into `/example` and run `bundle install` .
To test the theme the locally as you make changes to it:
1. `cd` into the root folder of the repo (e.g. `jekyll-theme-basically-basic` ).
2017-03-20 20:33:08 +02:00
2. Run `bundle exec rake preview` and open your browser to
`http://localhost:4000/example/` .
2017-03-07 23:11:32 +02:00
2017-03-20 20:33:08 +02:00
This starts a Jekyll server using the theme's files and contents of the
`example/` directory. As modifications are made, refresh your browser to see
any changes.
2017-03-07 23:11:32 +02:00
## Contributing
Found a typo in the documentation? Interested in adding a feature or
[fixing a bug][issues]? Then by all means [submit an issue][new-issue] or take a
stab at submitting a [pull request][using-pull-requests]. If this is your first
pull request, it may be helpful to read up on the [GitHub Flow][github-flow].
[issues]: https://github.com/mmistakes/jekyll-theme-basically-basic/issues
[new-issue]: https://github.com/mmistakes/jekyll-theme-basically-basic/issues/new
[using-pull-requests]: https://help.github.com/articles/using-pull-requests/
[github-flow]: https://guides.github.com/introduction/flow/
### Pull Requests
When submitting a pull request:
1. Clone the repo.
2017-03-20 20:33:08 +02:00
2. Create a branch off of `master` and give it a meaningful name (e.g.
2017-03-07 23:11:32 +02:00
`my-awesome-new-feature` ) and describe the feature or fix.
3. Open a pull request on GitHub.
2017-03-29 23:32:50 +03:00
Sample pages can be found in the [`/docs` ](docs ) and [`/example` ](/example )
folders if you'd like to tackle any "low-hanging fruit" like fixing typos, bad
grammar, etc.
2017-03-07 23:11:32 +02:00
---
## Credits
### Creator
**Michael Rose**
- < https: // mademistakes . com >
- < https: // twitter . com / mmistakes >
- < https: // github . com / mmistakes >
### Icons + Demo Images:
- [Simple Icons ](https://simpleicons.org/ )
- [Noun Project ](https://thenounproject.com )
- [Unsplash ](https://unsplash.com/ )
### Other:
- [Jekyll ](http://jekyllrb.com/ )
- [Susy ](http://susy.oddbird.net/ )
- [Breakpoint ](http://breakpoint-sass.com/ )
---
## License
The MIT License (MIT)
2018-01-03 15:31:39 +02:00
Copyright (c) 2017-2018 Michael Rose and contributors
2017-03-07 23:11:32 +02:00
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.
2018-01-03 15:31:39 +02:00
Basically Basic incorporates icons from [The Noun Project ](https://thenounproject.com/ ).
Icons are distributed under Creative Commons Attribution 3.0 United States (CC BY 3.0 US).
Basically Basic incorporates photographs from [Unsplash ](https://unsplash.com ).
Basically Basic incorporates [Susy ](http://susy.oddbird.net/ ),
Copyright (c) 2017, Miriam Eric Suzanne.
Susy is distributed under the terms of the [BSD 3-clause "New" or "Revised" License ](https://opensource.org/licenses/BSD-3-Clause ).
Basically Basic incorporates [Breakpoint ](http://breakpoint-sass.com/ ).
Breakpoint is distributed under the terms of the [MIT/GPL Licenses ](http://opensource.org/licenses/MIT ).