Skip to content

Commit e5633ce

Browse files
author
rajavm
committed
Theme changed with custom orange color code F97205
1 parent 0e0a7da commit e5633ce

Some content is hidden

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

46 files changed

+3732
-1482
lines changed

.jekyll-metadata

4.3 KB
Binary file not shown.

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Released under MIT License
22

3-
Copyright (c) 2013 Mark Otto.
3+
Copyright (c) 2014 Mark Otto.
44

55
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:
66

README.md

Lines changed: 70 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,111 +1,124 @@
1-
# Poole
1+
# Lanyon
22

3-
*The Strange Case of Dr. Jekyll and Mr. Hyde* tells the story of a lawyer investigating the connection of two persons, Dr. Henry Jekyll and Mr. Edward Hyde. Chief among the novel's supporting cast is a man by the name of Mr. Poole, Dr. Jekyll's loyal butler.
3+
Lanyon is an unassuming [Jekyll](http://jekyllrb.com) theme that places content first by tucking away navigation in a hidden drawer. It's based on [Poole](http://getpoole.com), the Jekyll butler.
44

5-
-----
6-
7-
Poole is the butler for [Jekyll](http://jekyllrb.com), the static site generator. It's designed and developed by [@mdo](https://twitter.com/mdo) to provide a clear and concise foundational setup for any Jekyll site. It does so by furnishing a full vanilla Jekyll install with example templates, pages, posts, and styles.
8-
9-
![Poole](https://f.cloud.github.com/assets/98681/1834359/71ae4048-73db-11e3-9a3c-df38eb170537.png)
10-
11-
See Poole in action with [the demo site](http://demo.getpoole.com).
12-
13-
There are currently two official themes built on Poole:
14-
15-
* [Hyde](http://hyde.getpoole.com)
16-
* [Lanyon](http://lanyon.getpoole.com)
17-
18-
Individual theme feedback and bug reports should be submitted to the theme's individual repository.
5+
![Lanyon](https://f.cloud.github.com/assets/98681/1825266/be03f014-71b0-11e3-9539-876e61530e24.png)
6+
![Lanyon with open sidebar](https://f.cloud.github.com/assets/98681/1825267/be04a914-71b0-11e3-966f-8afe9894c729.png)
197

208

219
## Contents
2210

2311
- [Usage](#usage)
2412
- [Options](#options)
25-
- [Rems, `font-size`, and scaling](#rems-font-size-and-scaling)
13+
- [Sidebar menu](#sidebar-menu)
14+
- [Themes](#themes)
15+
- [Reverse layout](#reverse-layout)
2616
- [Development](#development)
2717
- [Author](#author)
2818
- [License](#license)
2919

3020

3121
## Usage
3222

33-
### 1. Install dependencies
23+
Lanyon is a theme built on top of [Poole](https://github.com/poole/poole), which provides a fully furnished Jekyll setup—just download and start the Jekyll server. See [the Poole usage guidelines](https://github.com/poole/poole#usage) for how to install and use Jekyll.
24+
25+
26+
## Options
27+
28+
Lanyon includes some customizable options, typically applied via classes on the `<body>` element.
29+
3430

35-
Poole is built on Jekyll and uses its built-in SCSS compiler to generate our CSS. Before getting started, you'll need to install the Jekyll gem:
31+
### Sidebar menu
3632

37-
```bash
38-
$ gem install jekyll
33+
Create a list of nav links in the sidebar by assigning each Jekyll page the correct layout in the page's [front-matter](http://jekyllrb.com/docs/frontmatter/).
34+
35+
```
36+
---
37+
layout: page
38+
title: About
39+
---
3940
```
4041

41-
**Windows users:** Windows users have a bit more work to do, but luckily [@juthilo](https://github.com/juthilo) has your back with his [Run Jekyll on Windows](https://github.com/juthilo/run-jekyll-on-windows) guide.
42+
**Why require a specific layout?** Jekyll will return *all* pages, including the `atom.xml`, and with an alphabetical sort order. To ensure the first link is *Home*, we exclude the `index.html` page from this list by specifying the `page` layout.
4243

43-
**Need syntax highlighting?** Poole includes support for Pygments or Rouge, so install your gem of choice to make use of the built-in styling. Read more about this [in the Jekyll docs](http://jekyllrb.com/docs/templates/#code_snippet_highlighting).
4444

45-
### 2a. Quick start
45+
### Themes
4646

47-
To help anyone with any level of familiarity with Jekyll quickly get started, Poole includes everything you need for a basic Jekyll site. To that end, just download Poole and start up Jekyll.
47+
Lanyon ships with eight optional themes based on the [base16 color scheme](https://github.com/chriskempson/base16). Apply a theme to change the color scheme (mostly applies to sidebar and links).
4848

49-
### 2b. Roll your own Jekyll site
49+
![Lanyon with red theme](https://f.cloud.github.com/assets/98681/1825270/be065110-71b0-11e3-9ed8-9b8de753a4af.png)
50+
![Lanyon with red theme and open sidebar](https://f.cloud.github.com/assets/98681/1825269/be05ec20-71b0-11e3-91ea-a9138ef07186.png)
5051

51-
Folks wishing to use Jekyll's templates and styles can do so with a little bit of manual labor. Download Poole and then copy what you need (likely `_layouts/`, `*.html` files, `atom.xml` for RSS, and `public/` for CSS, JS, etc.).
52+
There are eight themes available at this time.
5253

53-
### 3. Running locally
54+
![Available theme classes](https://f.cloud.github.com/assets/98681/1817044/e5b0ec06-6f68-11e3-83d7-acd1942797a1.png)
5455

55-
To see your Jekyll site with Poole applied, start a Jekyll server. In Terminal, from `/poole` (or whatever your Jekyll site's root directory is named):
56+
To use a theme, add any one of the available theme classes to the `<body>` element in the `default.html` layout, like so:
5657

57-
```bash
58-
$ jekyll serve
58+
```html
59+
<body class="theme-base-08">
60+
...
61+
</body>
5962
```
6063

61-
Open <http://localhost:4000> in your browser, and voilà.
64+
To create your own theme, look to the Themes section of [included CSS file](https://github.com/poole/lanyon/blob/master/public/css/lanyon.css). Copy any existing theme (they're only a few lines of CSS), rename it, and change the provided colors.
6265

63-
### 4. Serving it up
6466

65-
If you host your code on GitHub, you can use [GitHub Pages](https://pages.github.com) to host your project.
67+
### Reverse layout
6668

67-
1. Fork this repo and switch to the `gh-pages` branch.
68-
1. If you're [using a custom domain name](https://help.github.com/articles/setting-up-a-custom-domain-with-github-pages), modify the `CNAME` file to point to your new domain.
69-
2. If you're not using a custom domain name, **modify the `baseurl` in `_config.yml`** to point to your GitHub Pages URL. Example: for a repo at `github.com/username/poole`, use `http://username.github.io/poole/`. **Be sure to include the trailing slash.**
70-
3. Done! Head to your GitHub Pages URL or custom domain.
69+
![Lanyon with reverse layout](https://f.cloud.github.com/assets/98681/1825265/be03f2e4-71b0-11e3-89f1-360705524495.png)
70+
![Lanyon with reverse layout and open sidebar](https://f.cloud.github.com/assets/98681/1825268/be056174-71b0-11e3-88c8-5055bca4307f.png)
7171

72-
No matter your production or hosting setup, be sure to verify the `baseurl` option file and `CNAME` settings. Not applying this correctly can mean broken styles on your site.
72+
Reverse the page orientation with a single class.
73+
74+
```html
75+
<body class="layout-reverse">
76+
...
77+
</body>
78+
```
7379

74-
## Options
7580

76-
Poole includes some customizable options, typically applied via classes on the `<body>` element.
81+
### Sidebar overlay instead of push
7782

83+
Make the sidebar overlap the viewport content with a single class:
7884

79-
### Rems, `font-size`, and scaling
85+
```html
86+
<body class="sidebar-overlay">
87+
...
88+
</body>
89+
```
90+
91+
This will keep the content stationary and slide in the sidebar over the side content. It also adds a `box-shadow` based outline to the toggle for contrast against backgrounds, as well as a `box-shadow` on the sidebar for depth.
8092

81-
Poole is built almost entirely with `rem`s (instead of pixels). `rem`s are like `em`s, but instead of building on the immediate parent's `font-size`, they build on the root element, `<html>`.
93+
It's also available for a reversed layout when you add both classes:
8294

83-
By default, we use the following:
95+
```html
96+
<body class="layout-reverse sidebar-overlay">
97+
...
98+
</body>
99+
```
84100

85-
```css
86-
html {
87-
font-size: 16px;
88-
line-height: 1.5;
89-
}
90-
@media (min-width: 38em) {
91-
html {
92-
font-size: 20px;
93-
}
94-
}
101+
### Sidebar open on page load
95102

103+
Show an open sidebar on page load by modifying the `<input>` to add the `checked` boolean attribute:
104+
105+
```html
106+
<input type="checkbox" class="sidebar-checkbox" id="sidebar-checkbox" checked>
96107
```
97108

98-
To easily scale your site's typography and components, simply customize the base `font-size`s here.
109+
Using Liquid you can also conditionally show the sidebar open on a per-page basis. For example, here's how you could have it open on the homepage only:
99110

111+
```html
112+
<input type="checkbox" class="sidebar-checkbox" id="sidebar-checkbox" {% if page.title =="Home" %}checked{% endif %}>
113+
```
100114

101115
## Development
102116

103-
Poole has two branches, but only one is used for active development.
117+
Lanyon has two branches, but only one is used for active development.
104118

105119
- `master` for development. **All pull requests should be to submitted against `master`.**
106120
- `gh-pages` for our hosted site, which includes our analytics tracking code. **Please avoid using this branch.**
107121

108-
CSS is handled via Jeykll's built-in Sass compiler. Source Sass files are located in `_sass/`, included into `styles.scss`, and compile to `styles.css`.
109122

110123
## Author
111124

_config.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,19 @@ permalink: pretty
77
# Setup
88
title: Raja
99
tagline: Version 0.1
10+
#description: 'A reserved <a href="http://jekyllrb.com" target="_blank">Jekyll</a> theme that places the utmost gravity on content with a hidden drawer. Made by <a href="https://twitter.com/mdo" target="_blank">@mdo</a>.'
1011
url: https://rajavm.github.io/
12+
baseurl: ''
1113
paginate: 1
12-
baseurl: ""
13-
14-
# Assets
15-
#
16-
# We specify the directory for Jekyll so we can use @imports.
17-
sass:
18-
sass_dir: _sass
19-
style: :compressed
14+
gems: [jekyll-paginate]
2015

2116
# About/contact
2217
author:
23-
name: Mark Otto
24-
url: https://twitter.com/mdo
25-
email: markdotto@gmail.com
18+
name: RajendraKumar VM
19+
url: https://twitter.com/raja_vm
20+
email: perfectcyberwarrior@gmail.com
2621

2722
# Custom vars
28-
version: 2.0.0
29-
github:
30-
repo: https://github.com/rajavm/rajavm.github.io
23+
version: 1.0.0
24+
3125

32-
# PAGINATION
33-
gems: [jekyll-paginate]

_includes/head.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<head>
2-
<meta charset="UTF-8">
32
<link href="http://gmpg.org/xfn/11" rel="profile">
3+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
4+
<meta http-equiv="content-type" content="text/html; charset=utf-8">
45

56
<!-- Enable responsiveness on mobile devices-->
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
78

89
<title>
910
{% if page.title == "Home" %}
@@ -14,12 +15,15 @@
1415
</title>
1516

1617
<!-- CSS -->
17-
<link rel="stylesheet" href="{{ site.baseurl }}/styles.css">
18+
<link rel="stylesheet" href="{{ site.baseurl }}/public/css/poole.css">
19+
<link rel="stylesheet" href="{{ site.baseurl }}/public/css/syntax.css">
20+
<link rel="stylesheet" href="{{ site.baseurl }}/public/css/lanyon.css">
21+
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=PT+Serif:400,400italic,700%7CPT+Sans:400">
1822

1923
<!-- Icons -->
2024
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ site.baseurl }}/public/apple-touch-icon-precomposed.png">
2125
<link rel="shortcut icon" href="{{ site.baseurl }}/public/favicon.ico">
2226

2327
<!-- RSS -->
24-
<link rel="alternate" type="application/atom+xml" title="{{ site.title }}" href="{{ site.baseurl }}/atom.xml">
28+
<link rel="alternate" type="application/rss+xml" title="RSS" href="/atom.xml">
2529
</head>

_includes/sidebar.html

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<!-- Target for toggling the sidebar `.sidebar-checkbox` is for regular
2+
styles, `#sidebar-checkbox` for behavior. -->
3+
<input type="checkbox" class="sidebar-checkbox" id="sidebar-checkbox">
4+
5+
<!-- Toggleable sidebar -->
6+
<div class="sidebar" id="sidebar">
7+
<div class="sidebar-item">
8+
<p>{{ site.description }}</p>
9+
</div>
10+
11+
<nav class="sidebar-nav">
12+
<a class="sidebar-nav-item{% if page.url == site.baseurl %} active{% endif %}" href="{{ site.baseurl }}/">Home</a>
13+
14+
{% comment %}
15+
The code below dynamically generates a sidebar nav of pages with
16+
`layout: page` in the front-matter. See readme for usage.
17+
{% endcomment %}
18+
19+
{% assign pages_list = site.pages | sort:"url" %}
20+
{% for node in pages_list %}
21+
{% if node.title != null %}
22+
{% if node.layout == "page" %}
23+
<a class="sidebar-nav-item{% if page.url == node.url %} active{% endif %}" href="{{ node.url }}">{{ node.title }}</a>
24+
{% endif %}
25+
{% endif %}
26+
{% endfor %}
27+
28+
<!-- <a class="sidebar-nav-item" href="{{ site.github.repo }}/archive/v{{ site.version }}.zip">Download</a>
29+
<a class="sidebar-nav-item" href="{{ site.github.repo }}">GitHub project</a>
30+
<span class="sidebar-nav-item">Currently v{{ site.version }}</span>-->
31+
</nav>
32+
33+
<div class="sidebar-item">
34+
<p>Powered by <a href="https://jekyllrb.com/"> Jekyll</a><br>
35+
&copy; {{ site.time | date: '%Y' }}. All rights reserved.
36+
</p>
37+
</div>
38+
</div>

_layouts/default.html

Lines changed: 38 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,49 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="en-us">
33

44
{% include head.html %}
55

6-
<body>
6+
<body class="layout-reverse theme-base-09">
7+
78

8-
<div class="container content">
9-
<header class="masthead">
10-
<h3 class="masthead-title">
11-
<a href="{{ site.baseurl }}/" title="Home">{{ site.title }}</a>
12-
<small>{{ site.tagline }}</small>
13-
</h3>
14-
</header>
9+
{% include sidebar.html %}
1510

16-
<main>
11+
<!-- Wrap is the content to shift when toggling the sidebar. We wrap the
12+
content to avoid any CSS collisions with our real content. -->
13+
<div class="wrap">
14+
<div class="masthead">
15+
<div class="container">
16+
<h3 class="masthead-title">
17+
<a href="{{ site.baseurl }}/" title="Home">{{ site.title }}</a>
18+
<small>{{ site.tagline }}</small>
19+
</h3>
20+
</div>
21+
</div>
22+
23+
<div class="container content">
1724
{{ content }}
18-
</main>
19-
20-
<footer class="footer">
21-
<small>
22-
Powered by <a href="https://jekyllrb.com/"> Jekyll</a><br>
23-
&copy; <time datetime="{{ site.time | date_to_xmlschema }}">{{ site.time | date: '%Y' }}</time>. All rights reserved.
24-
</small>
25-
</footer>
25+
</div>
2626
</div>
2727

28+
<label for="sidebar-checkbox" class="sidebar-toggle"></label>
29+
30+
<script>
31+
(function(document) {
32+
var toggle = document.querySelector('.sidebar-toggle');
33+
var sidebar = document.querySelector('#sidebar');
34+
var checkbox = document.querySelector('#sidebar-checkbox');
35+
36+
document.addEventListener('click', function(e) {
37+
var target = e.target;
38+
39+
if(!checkbox.checked ||
40+
sidebar.contains(target) ||
41+
(target === checkbox || target === toggle)) return;
42+
43+
checkbox.checked = false;
44+
}, false);
45+
})(document);
46+
</script>
47+
2848
</body>
2949
</html>

_layouts/page.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: default
33
---
44

5-
<article class="page">
5+
<div class="page">
66
<h1 class="page-title">{{ page.title }}</h1>
77
{{ content }}
8-
</article>
8+
</div>

0 commit comments

Comments
 (0)