Retour au classement

poole/lanyon

CSSlanyon.getpoole.com

A content-first, sliding sidebar theme for Jekyll.

jekylljekyll-theme
Croissance des étoiles
Étoiles
3.3k
Forks
2.9k
Croissance hebdomadaire
Issues
23
1k2k3k
déc. 2013févr. 2018mai 2022juil. 2026
Artefactsnpmnpm install lanyon
README

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.

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>

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>

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

Dépôts similaires
jekyll/jekyll

:globe_with_meridians: Jekyll is a blog-aware static site generator in Ruby

RubyRubyGemsMIT Licenserubyjekyll
jekyllrb.com
51.6k10.3k
tabler/tabler

Tabler is free and open-source HTML Dashboard UI Kit built on Bootstrap

HTMLMIT Licensedashboardhtml
tabler.io
41.3k4.4k
academicpages/academicpages.github.io

Github Pages template based upon HTML and Markdown for personal, portfolio-based websites.

SCSSMIT Licensegithub-pagespersonal-website
academicpages.github.io
17.3k8k
alshedivat/al-folio

A beautiful, simple, clean, and responsive Jekyll theme for academics

HTMLMIT Licensejekylljekyll-theme
alshedivat.github.io/al-folio/
15.9k13.1k
mmistakes/minimal-mistakes

:triangular_ruler: Jekyll theme for building a personal site, blog, project documentation, or portfolio.

HTMLMIT Licensejekylljekyll-theme
mmistakes.github.io/minimal-mistakes/
13.5k27.3k
cotes2020/jekyll-theme-chirpy

A minimal, responsive, and feature-rich Jekyll theme for technical writing.

HTMLMIT Licensejekyll-themepwa
chirpy.cotes.page
10.2k7.2k
home-assistant/home-assistant.io

:blue_book: Home Assistant User documentation

HTMLOtherdocumentationjekyll
home-assistant.io
9.6k8.4k
just-the-docs/just-the-docs

A modern, high customizable, responsive Jekyll theme for documentation with built-in search.

SCSSMIT Licensejekylljekyll-theme
just-the-docs.com
9.1k3.8k
primer/octicons

A scalable set of icons handcrafted with ❤️ by GitHub

JavaScriptnpmMIT Licensesvgocticons
primer.style/octicons/
8.7k838
daattali/beautiful-jekyll

✨ Build a beautiful and simple website in literally minutes. Demo at https://beautifuljekyll.com

HTMLMIT Licensejekylljekyll-theme
beautifuljekyll.com
5.8k17.3k
mqtt/mqtt.org

The mqtt.org website

SCSSscssjekyll
mqtt.org
5.1k931
github/choosealicense.com

A site to provide non-judgmental guidance on choosing a license for your open source project

HTMLMIT Licensejekyllopen-source
choosealicense.com
4.2k1.6k