Skip to content

barepants/crossing-jekyll

Repository files navigation

Crossing

A Jekyll theme.

Screenshot

Demo × Download

Demo images are from Unsplash.

Cover images

Site cover image:

# _config.yml
image: /crossing-jekyll/images/site-image.jpg

Post cover image:

---
image: /crossing-jekyll/images/post-image.jpg
---

Author information

To have author bylines and bio at bottom of posts, add configuration like the following in _config.yml:

authors:
  johndoe:
    name: John Doe
    website: https://github.com/barepants
    bio: An awesome bio # Author info at bottom of post only shows if bio exists
    avatar: /crossing-jekyll/images/avatar.jpg

and specify the author in the Front Matter of posts:

---
author: johndoe
---

Social meta tags

Crossing generates Open Graph and Twitter Cards meta tags automatically for better social media sharing. There are two extra settings:

# _config.yml
og_image: /images/og-image.jpg # Fallback og:image when no page.image or site.image. at least 200 x 200px.
twitter_site: # twitter:site. Your Twitter username without "@"

Meta description

page.excerpt is used for meta description of posts and pages. It is the first paragraph by default for posts. For pages you have to set it in the Front Matter:

---
excerpt: An excerpt
---

Twitter Cards requires meta description. Facebook could infer it from the page if it's empty.

License

CC0