๐Ÿ“ฆ prasanthc41m / blog

A blog from prasanthk.com

โ˜… 0 stars โ‘‚ 0 forks ๐Ÿ‘ 0 watching โš–๏ธ The Unlicense
๐Ÿ“ฅ Clone https://github.com/prasanthc41m/blog.git
HTTPS git clone https://github.com/prasanthc41m/blog.git
SSH git clone git@github.com:prasanthc41m/blog.git
CLI gh repo clone prasanthc41m/blog
Prasanth K Prasanth K edited cfcc01b 2 years ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ _data
๐Ÿ“ _includes
๐Ÿ“ _layouts
๐Ÿ“ _posts
๐Ÿ“ _sass
๐Ÿ“ assets
๐Ÿ“„ _config.yml
๐Ÿ“„ .gitignore
๐Ÿ“„ 404.html
๐Ÿ“„ about.md
๐Ÿ“„ archive.html
๐Ÿ“„ Gemfile
๐Ÿ“„ index.html
๐Ÿ“„ README.md
๐Ÿ“„ UNLICENSE.txt
๐Ÿ“„ README.md


Installation

Just fork this repository and adjust the _config.yml to use with Github Pages and your page is done.

Features

  • supports dark mode on macOS Mojave
  • optional sidebar
  • MathJax support
  • no external ressources
  • included archive page
  • supports pagination
  • feed generation
  • responsive
  • syntax highlighting

Based on

Installation (jekyll-remote-theme method)

You can use this theme with the jekyll-remote-theme plugin. Just create an empty repo, copy over the index.html file and add this to your _config.yml:

remote_theme: niklasbuschmann/contrast@v2.11

plugins:
  - jekyll-remote-theme

Note: to enable icons you also need to copy over the _data folder.

Config

Your _config.yml could for example look like this:

title: "Blog Title"
author: "Blog Author"
description: "My personal blog about ... something"
permalink: /:title/
lang: "en"
excerpt_separator: "\n\n\n"
date_format: "%B %d, %Y"

# Layout

show_excerpts: true        # show article excerpts on the home page
show_frame: true           # adds a gray frame to the site
show_sidebar: false        # show a sidebar instead of the usual header

# Menu

navigation:                # accepts {file, title, url, icon, sidebaricon}
  - {file: "index.html"}
  - {file: "README.md"}

external:                  # shows a footer with social links - for available icons see fontawesome.com/icons
  - {title: Mail, icon: envelope, url: "mailto:niklasbuschmann@users.noreply.github.com"}
  - {title: Github, icon: github, url: "https://github.com/niklasbuschmann/contrast"}
  - {title: Subscribe, icon: rss, url: "/feed.xml"}

comments:
#  disqus_shortname: ""    # see https://disqus.com/
#  isso_domain: ""         # see https://posativ.org/isso/

plugins:
 - jekyll-feed

MathJax

Contrast comes preinstalled with a leightweight alternative to MathJax called KaTeX. To display equations in a post simply set mathjax: true in the article's front matter.

License

public domain

Screenshots

screenshot

screenshot

screenshot

blog