1.0.4 • Published 5 years ago

saber-theme-tufte v1.0.4

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

saber-theme-tufte

npm

A Saber theme inspired by Tufte.

Install

yarn add saber-theme-tufte

In your saber-config.yml:

theme: tufte

This theme works best with following plugins:

  • saber-plugin-query-posts: Inject posts to homepage's page prop, generate tag pages
yarn add saber-plugin-query-posts
plugins:
  - resolve: saber-plugin-query-posts

Layouts

  • post: For individual blog posts.
  • page: For normal page with only the header and footer.
  • default: A home page to show all your posts.

The default page can be customized with a title, subtitle, and description:

layout: default
# Inject post list as `page.posts` (by saber-plugin-query-posts)
injectAllPosts: true
title:
subtitle: 
description: 

Site Config

Configure site title, description etc in your saber-config.yml:

siteConfig:
  title: My Site
  description: About this website.
  author: My Name
  email: my@email.com

Theme Config

Navbar

Configure nav to show a set of links in header and optional repository link:

themeConfig:
  nav:
    - text: Home
      link: /
    - text: About
      link: /about.html

License

MIT.

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago