Skip to content

Commit 16206d3

Browse files
initial commit
0 parents  commit 16206d3

File tree

105 files changed

+21522
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+21522
-0
lines changed

.DS_Store

6 KB
Binary file not shown.

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
_site
2+
.sass-cache
3+
.jekyll-cache
4+
.jekyll-metadata
5+
vendor

404.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
layout: page
3+
title: Page not found
4+
permalink: 404.html
5+
---
6+
7+
Ups... Something went wrong. Go back to the Home Page and start over!
8+
9+
[Go to the Home Page]({{ site.url }}{{ site.baseurl }})

Gemfile

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# frozen_string_literal: true
2+
3+
source "https://rubygems.org"
4+
gemspec
5+
gem 'kramdown-parser-gfm'
6+
gem 'webrick'

Gemfile.lock

+84
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
PATH
2+
remote: .
3+
specs:
4+
jekyll-sleek (0.1.9)
5+
jekyll (~> 3.6)
6+
jekyll-seo-tag (~> 2.3)
7+
jekyll-sitemap (~> 1.1)
8+
9+
GEM
10+
remote: https://rubygems.org/
11+
specs:
12+
addressable (2.8.6)
13+
public_suffix (>= 2.0.2, < 6.0)
14+
colorator (1.1.0)
15+
concurrent-ruby (1.2.3)
16+
em-websocket (0.5.3)
17+
eventmachine (>= 0.12.9)
18+
http_parser.rb (~> 0)
19+
eventmachine (1.2.7)
20+
ffi (1.16.3)
21+
forwardable-extended (2.6.0)
22+
http_parser.rb (0.8.0)
23+
i18n (1.14.4)
24+
concurrent-ruby (~> 1.0)
25+
jekyll (3.9.5)
26+
addressable (~> 2.4)
27+
colorator (~> 1.0)
28+
em-websocket (~> 0.5)
29+
i18n (>= 0.7, < 2)
30+
jekyll-sass-converter (~> 1.0)
31+
jekyll-watch (~> 2.0)
32+
kramdown (>= 1.17, < 3)
33+
liquid (~> 4.0)
34+
mercenary (~> 0.3.3)
35+
pathutil (~> 0.9)
36+
rouge (>= 1.7, < 4)
37+
safe_yaml (~> 1.0)
38+
jekyll-sass-converter (1.5.2)
39+
sass (~> 3.4)
40+
jekyll-seo-tag (2.8.0)
41+
jekyll (>= 3.8, < 5.0)
42+
jekyll-sitemap (1.4.0)
43+
jekyll (>= 3.7, < 5.0)
44+
jekyll-watch (2.2.1)
45+
listen (~> 3.0)
46+
kramdown (2.4.0)
47+
rexml
48+
kramdown-parser-gfm (1.1.0)
49+
kramdown (~> 2.0)
50+
liquid (4.0.4)
51+
listen (3.9.0)
52+
rb-fsevent (~> 0.10, >= 0.10.3)
53+
rb-inotify (~> 0.9, >= 0.9.10)
54+
mercenary (0.3.6)
55+
pathutil (0.16.2)
56+
forwardable-extended (~> 2.6)
57+
public_suffix (5.0.5)
58+
rake (10.5.0)
59+
rb-fsevent (0.11.2)
60+
rb-inotify (0.10.1)
61+
ffi (~> 1.0)
62+
rexml (3.2.6)
63+
rouge (3.30.0)
64+
safe_yaml (1.0.5)
65+
sass (3.7.4)
66+
sass-listen (~> 4.0.0)
67+
sass-listen (4.0.0)
68+
rb-fsevent (~> 0.9, >= 0.9.4)
69+
rb-inotify (~> 0.9, >= 0.9.7)
70+
webrick (1.8.1)
71+
72+
PLATFORMS
73+
arm64-darwin-23
74+
ruby
75+
76+
DEPENDENCIES
77+
bundler (>= 1.12)
78+
jekyll-sleek!
79+
kramdown-parser-gfm
80+
rake (~> 10.0)
81+
webrick
82+
83+
BUNDLED WITH
84+
2.5.9

LICENSE.txt

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2017
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

+193
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,193 @@
1+
# Sleek
2+
3+
[![Gem Version](https://badge.fury.io/rb/jekyll-sleek.svg)](https://badge.fury.io/rb/jekyll-sleek) [![Build Status](https://travis-ci.org/janczizikow/sleek.svg?branch=master)](https://travis-ci.org/janczizikow/sleek) [![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/janczizikow/sleek)
4+
5+
A modern [Jekyll](https://jekyllrb.com/) theme focused on speed performance & SEO best practices.
6+
7+
> ⚠️ This theme is no longer actively maintained.
8+
9+
![Sleek Jekyll Theme](./sleek.jpg)
10+
11+
## Features
12+
13+
* Compatible with [Github Pages](https://pages.github.com/)
14+
* Minimal, responsive and speed performance optimized
15+
* SEO friendly, with help of [Jekyll SEO Plugin](https://github.com/jekyll/jekyll-seo-tag)
16+
* Easy [Google Tag Manager](https://tagmanager.google.com/) Integration
17+
* Support for [Disqus](https://disqus.com/) comments
18+
* Form submissions with [Formspree](#formspree)
19+
20+
[Preview Demo](https://janczizikow.github.io/sleek/)
21+
22+
## Installation
23+
24+
### System Requirements
25+
26+
To use this project, you'll need the following things on your local machine:
27+
28+
#### Jekyll
29+
30+
```shell
31+
gem install jekyll
32+
```
33+
34+
#### NodeJS (8 or greater)
35+
36+
Download and open the [NodeJS installer](https://nodejs.org/en/)
37+
38+
#### Gulp CLI (optional, but recommended)
39+
40+
```shell
41+
npm install --global gulp-cli
42+
```
43+
44+
### Up & Running
45+
46+
1. [Fork the repo](https://github.com/janczizikow/sleek/fork)
47+
2. Clone or download the repo into directory of your choice: `git clone https://github.com/your-github-username/sleek.git`
48+
3. Inside the directory run `bundle install` and `npm install`
49+
4. If you want to use [gulp.js](https://gulpjs.com/) run `gulp` or `npm start`
50+
* if you don't want to use gulp you can run `bundle exec jekyll serve` instead
51+
52+
#### Installing to existing jekyll project
53+
54+
Add this line to your Jekyll site's `Gemfile`:
55+
56+
```ruby
57+
gem "jekyll-sleek"
58+
```
59+
60+
And add this line to your Jekyll site's `_config.yml`:
61+
62+
```yaml
63+
theme: jekyll-sleek
64+
```
65+
66+
And then execute:
67+
68+
$ bundle
69+
70+
Or install it yourself as:
71+
72+
$ gem install jekyll-sleek
73+
74+
## File Structure Overview
75+
76+
```bash
77+
sleek
78+
├── _includes # theme includes
79+
├── _js # javascript files (by default jquery will be included with the scripts inside)
80+
├── _layouts # theme layouts (see below for details)
81+
├── _pages # pages folder (empty by default)
82+
├── _posts # blog posts
83+
├── _sass # Sass partials
84+
├── assets
85+
| ├── css # minified css files
86+
| ├── img # images and icons used for the template
87+
| └── js # bundled and minified files from _js folder
88+
├── _config.yml # sample configuration
89+
├── gulpfile.js # gulp tasks (tasks autorunner)
90+
├── index.md # sample home page (blog page)
91+
└── package.json # gulp tasks
92+
```
93+
94+
## Usage
95+
96+
You can modify the theme by changing the settings in `_config.yml`.
97+
98+
### Posts
99+
100+
Create a new Markdown file such as 2017-01-13-my-post.md in _post folder. Configure YAML Front Matter (stuff between `---`):
101+
102+
```yaml
103+
---
104+
layout: post # needs to be post
105+
title: Getting Started with Sleek # title of your post
106+
featured-img: sleek #optional - if you want you can include hero image
107+
---
108+
```
109+
110+
#### Images
111+
112+
In case you want to add a hero image to the post, apart from changing featured-img in YAML, you also need to add the image file to the project. To do so, just upload an image in .jpg format to `_img` folder. The name must before the .jpg file extension has to match with featured-img in YAML. Next, run `gulp img` from command line to generate optimized version of the image and all the thumbnails. You have to restart the jekyll server to see the changes.
113+
114+
Sleek uses [Lazy Sizes](https://github.com/aFarkas/lazysizes). Lazy Loader for loading images. Check the link for more info. Lazy Sizes doesnt’t require any configuration and it’s going to be included in your bundled js file.
115+
116+
### Pages
117+
118+
The home page is located under index.md file. To change the content or design you have to edit the default.html file in `_layouts` folder.
119+
120+
In order to add a new page, create a new html or markdown file under root directory or inside _pages folder. To add a link in navigation add it in `_config.yml`:
121+
122+
```yaml
123+
# THEME SETTINGS
124+
navigation: # Navigation links
125+
- {name: 'Home', link: '/'}
126+
- {name: 'About', link: '/about'}
127+
- {name: 'Contact', link: '/contact'}
128+
```
129+
130+
`name` is the text that will be shown and link, well, it's a link.
131+
132+
### Site configuration
133+
134+
Sleek comes with [`jekyll-seo-tag`](https://github.com/jekyll/jekyll-seo-tag) plugin preinstalled to make sure your website gets the most useful meta tags. See [usage](https://github.com/jekyll/jekyll-seo-tag/blob/master/docs/usage.md) to know how to set it up.
135+
136+
Additionally, in `_config.yml` you can find custom theme settings under `# THEME SETTINGS` comment. Here's a brief overview of those custom settings:
137+
138+
- `navigation` - collection of links that will be shown in the header
139+
- `tagline` - text that will be displayed on the homepage under the heading.
140+
- `hero_img` - background image of the homepage hero section
141+
142+
Other settings usually enable/disable certain feature, and are discussed with the next sections.
143+
144+
### Google Tag Manager
145+
146+
To enable Google Tag Manager, add the uncomment the following line in `_config.yml`:
147+
148+
```yaml
149+
google_tag_manager: GTM-XXXXXXX
150+
```
151+
152+
Replace `GTM-XXXXXXX` with your Google Tag Manager Container ID.
153+
154+
**Note** by default GTM tracking snippet will be also included in development environment.
155+
156+
Google Tag Manager was chosen for this project as it's more flexible than Google Analytics, and it can be used to add GA to your site.
157+
158+
### Disqus
159+
160+
To enable Disqus comments, add your [Disqus shortname](https://help.disqus.com/customer/portal/articles/466208) to `_config.yml`:
161+
162+
```yaml
163+
disqus:
164+
shortname: my_disqus_shortname
165+
```
166+
167+
### Formspree
168+
169+
To use [Formspree](https://formspree.io/) with your email address, you need to change the following:
170+
171+
Change `[email protected]` email in `_config.yml`
172+
173+
```yaml
174+
175+
```
176+
177+
You can check if it works by simply submitting the form.
178+
179+
If you have a Formspree Gold Account, you can take advantage of using AJAX to submit form. To do so, uncomment last function in `_js/scripts.js` and run `gulp js`. Now the form will be submitted asynchronously, without leaving the page.
180+
181+
## Contributing
182+
183+
Bug reports and pull requests are welcome on GitHub at [https://github.com/janczizikow/sleek](https://github.com/janczizikow/sleek). This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
184+
185+
## Development
186+
187+
To set up your environment to develop this theme, run `bundle install` and `npm install`.
188+
189+
The theme is setup just like a normal Jekyll site! Check out [file structure overview](#file-structure-overview) for details. To test the theme, run `gulp` and open your browser at `http://localhost:3000`. This starts a Jekyll server using the theme. Add pages, documents, data, etc. like normal to test the theme's contents. As you make modifications to the theme and to the content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
190+
191+
## License
192+
193+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

_config.yml

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# SITE CONFIGURATION
2+
title: Kerner Lab # your site title
3+
author: Kerner Lab
4+
description: > # Meta description of Homepage
5+
Website for Kerner Lab at Arizona State University.
6+
baseurl: "" # the subpath of your site, e.g. /blog
7+
url: "https://kerner-lab.github.io" # the base hostname & protocol for your site, e.g. http://example.com
8+
9+
# # SEO PLUGIN
10+
# social:
11+
# name: Your Name
12+
# links:
13+
# - https://twitter.com/BenBalter
14+
# - https://www.facebook.com/ben.balter
15+
# - https://www.linkedin.com/in/BenBalter
16+
# - https://plus.google.com/+BenBalter
17+
# - https://github.com/benbalter
18+
# - https://keybase.io/benbalter
19+
20+
# THEME SETTINGS
21+
navigation: # Navigation links
22+
- {name: 'Home', link: '/'}
23+
- {name: 'About', link: '/about'}
24+
- {name: 'Contact', link: '/contact'}
25+
26+
tagline: >
27+
Website for Kerner Lab at Arizona State University
28+
29+
hero_img: posts/sleek_lg.jpg # Main background image: use the path from /assets/img/ => This will output /assets/img/posts/sleek_lg.jpg
30+
31+
email: [email protected] # email for form submission
32+
33+
# twitter_username: jan_czizikow # replace with your_twitter_username or comment to remove link from footer
34+
# github_username: janczizikow # replace with your_github_username or comment to remove link from footer
35+
# instagram_username: shanlongjj # replace with your_instagram_username or comment to remove link from footer
36+
37+
# disqus:
38+
# shortname: janczizikow # to enable comments replace with your_disqus_shortname
39+
40+
# google_tag_manager: GTM-XXXXXXX # Uncomment to enable GTM. Replace GTM-XXXXXXX with your GTM container ID
41+
42+
service_worker: true
43+
44+
# BUILD SETTINGS
45+
markdown: kramdown
46+
kramdown:
47+
input: GFM
48+
highlighter: rouge # or pygments or null
49+
# theme: jekyll-sleek # Uncomment if you're using the theme as a ruby gem
50+
exclude:
51+
- README.md
52+
- node_modules
53+
- script
54+
- package.json
55+
- package-lock.json
56+
- Gemfile
57+
- Gemfile.lock
58+
- vendor
59+
- npm-debug.log
60+
- gulpfile.js
61+
- sleek.jpg
62+
63+
include: ['_pages']
64+
permalink: /:title/
65+
66+
compress_html:
67+
clippings: all
68+
69+
plugins:
70+
- jekyll-sitemap
71+
- jekyll-seo-tag

_img/posts/.gitkeep

Whitespace-only changes.

_img/posts/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
If you would like to generate images for your post, place them in this directory. You should also run `gulp img` from the command line, so that the images are generated with the right naming conventions for different. If you want more details, please check `gulpfile.js` line `134`.

0 commit comments

Comments
 (0)