All Projects → poole → Lanyon

poole / Lanyon

Licence: other
A content-first, sliding sidebar theme for Jekyll.

Programming Languages

CSS
56736 projects
HTML
75241 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Lanyon

tactile
Tactile is a Jekyll theme for GitHub Pages
Stars: ✭ 70 (-97.62%)
Mutual labels:  jekyll, jekyll-theme
jekyll-clean-dark
Dark clean theme for jekyll
Stars: ✭ 198 (-93.27%)
Mutual labels:  jekyll, jekyll-theme
junior-theme
⚫ A striking black and white theme for Jekyll. Built as a developer blog + portfolio.
Stars: ✭ 66 (-97.76%)
Mutual labels:  jekyll, jekyll-theme
online-resume
A Jekyll theme for resume / cv based on Markdown. Demo: https://tarrex.github.io/online-resume
Stars: ✭ 27 (-99.08%)
Mutual labels:  jekyll, jekyll-theme
jekyll-theme-Hydrogen
👍轻盈、简洁的Jekyll主题,A Lightweight and Concise Jekyll theme For You.
Stars: ✭ 60 (-97.96%)
Mutual labels:  jekyll, jekyll-theme
unifreak.github.io
FangHao's blog
Stars: ✭ 20 (-99.32%)
Mutual labels:  jekyll, jekyll-theme
mr-brown
Mr.Brown is a responsive Jekyll theme
Stars: ✭ 21 (-99.29%)
Mutual labels:  jekyll, jekyll-theme
marat
📜 Jekyll theme inspired by L'Ami du peuple
Stars: ✭ 46 (-98.44%)
Mutual labels:  jekyll, jekyll-theme
academic
Jekyll theme with a focus on simplicity, typography and flexibility
Stars: ✭ 71 (-97.59%)
Mutual labels:  jekyll, jekyll-theme
forever-jekyll
A simple, elegant & full featured Jekyll theme.
Stars: ✭ 26 (-99.12%)
Mutual labels:  jekyll, jekyll-theme
event-jekyll-theme
Jekyll Theme package for your event
Stars: ✭ 119 (-95.96%)
Mutual labels:  jekyll, jekyll-theme
End2end
💎 Clean Jekyll theme
Stars: ✭ 263 (-91.06%)
Mutual labels:  jekyll, jekyll-theme
fuse-core
The 'Fuse Core' Jekyll theme.
Stars: ✭ 29 (-99.01%)
Mutual labels:  jekyll, jekyll-theme
gereksiz
A minimalist Jekyll theme
Stars: ✭ 52 (-98.23%)
Mutual labels:  jekyll, jekyll-theme
horcrux
Generate you own online gallery easily. Photo is the horcrux of memory.
Stars: ✭ 34 (-98.84%)
Mutual labels:  jekyll, jekyll-theme
jekyll-theme-hamilton
A minimal and beautiful Jekyll theme best for writing and note-taking.
Stars: ✭ 128 (-95.65%)
Mutual labels:  jekyll, jekyll-theme
Just The Docs
A modern, high customizable, responsive Jekyll theme for documention with built-in search.
Stars: ✭ 3,747 (+27.32%)
Mutual labels:  jekyll, jekyll-theme
jekyll-atlantic-theme
Jekyll Atlantic is a beautiful Tailwind CSS theme. It shows best practices for using Tailwind with Jekyll.
Stars: ✭ 40 (-98.64%)
Mutual labels:  jekyll, jekyll-theme
startbootstrap-stylish-portfolio-jekyll
Jekyll theme based on Stylish Portfolio Bootstrap theme
Stars: ✭ 20 (-99.32%)
Mutual labels:  jekyll, jekyll-theme
prasad
[ WIP ] Prasad is a complete Jekyll theme designed for portfolio and blog for developers.
Stars: ✭ 14 (-99.52%)
Mutual labels:  jekyll, jekyll-theme

Lanyon

Lanyon is an unassuming Jekyll theme that places content first by tucking away navigation in a hidden drawer. It's based on Poole, the Jekyll butler.

Lanyon Lanyon with open sidebar

Contents

Usage

Lanyon is a theme built on top of Poole, which provides a fully furnished Jekyll setup—just download and start the Jekyll server. See the Poole usage guidelines for how to install and use Jekyll.

Options

Lanyon includes some customizable options, typically applied via classes on the <body> element.

Sidebar menu

Create a list of nav links in the sidebar by assigning each Jekyll page the correct layout in the page's front-matter.

---
layout: page
title: About
---

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.

Themes

Lanyon ships with eight optional themes based on the base16 color scheme. Apply a theme to change the color scheme (mostly applies to sidebar and links).

Lanyon with red theme Lanyon with red theme and open sidebar

There are eight themes available at this time.

Available theme classes

To use a theme, add any one of the available theme classes to the <body> element in the default.html layout, like so:

<body class="theme-base-08">
  ...
</body>

To create your own theme, look to the Themes section of included CSS file. Copy any existing theme (they're only a few lines of CSS), rename it, and change the provided colors.

Reverse layout

Lanyon with reverse layout Lanyon with reverse layout and open sidebar

Reverse the page orientation with a single class.

<body class="layout-reverse">
  ...
</body>

Sidebar overlay instead of push

Make the sidebar overlap the viewport content with a single class:

<body class="sidebar-overlay">
  ...
</body>

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.

It's also available for a reversed layout when you add both classes:

<body class="layout-reverse sidebar-overlay">
  ...
</body>

Sidebar open on page load

Show an open sidebar on page load by modifying the <input> tag within the sidebar.html layout to add the checked boolean attribute:

<input type="checkbox" class="sidebar-checkbox" id="sidebar-checkbox" checked>

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:

<input type="checkbox" class="sidebar-checkbox" id="sidebar-checkbox" {% if page.title =="Home" %}checked{% endif %}>

Development

Lanyon has two branches, but only one is used for active development.

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

Author

Mark Otto

License

Open sourced under the MIT license.

<3

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].