Git Product home page Git Product logo

start-jekyll's Introduction

Getting Started with Jekyll

In this repository I will be sharing my journey of learning Jekyll that I will be using to build my personal blog.

Installation

I will follow the Jekyll Installation Guide to install Jekyll.

Version of prerequisites on my system are as follows:

  • ubuntu 20.04.2
  • ruby 2.7.0p0
  • gem 3.1.2
  • gcc 9.3.0
  • make 4.2.1
sudo apt-get install ruby-full build-essential zlib1g-dev
gem install jekyll bundler

Creating a new Jekyll blog

Create a new Jekyll site at ./myblog.

jekyll new myblog

Jekyll Plugins

Jalali date

https://github.com/mehdisadeghi/jekyll-jalali

KaTeX

There is no need to install jekyll-katex plugin. Just add the following lines to _includes/head.html according to the KaTeX documentation.

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" integrity="sha384-R4558gYOUz8mP9YWpZJjofhk+zx0AS11p36HnD2ZKj/6JR5z27gSSULCNHIRReVs" crossorigin="anonymous">
<!-- The loading of KaTeX is deferred to speed up page rendering -->
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js" integrity="sha384-z1fJDqw8ZApjGO3/unPWUPsIymfsJmyrDVWC8Tv/a1HeOtGmkwNd/7xUS0Xcnvsx" crossorigin="anonymous"></script>
<!-- To automatically render math in text elements, include the auto-render extension: -->
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/auto-render.min.js" integrity="sha384-+XBljXPPiv+OzfbB3cVmLHf4hdUFHlWNZN5spNQ7rmHTXpd7WvJum6fIACpNNfIR" crossorigin="anonymous"
    onload="renderMathInElement(document.body);"></script>

Modify the Theme

https://github.com/jekyll/minima

Building the blog

Build the site and make it available on a local server.

cd myblog
bundle exec jekyll serve

Note: Pass the --livereload option to serve to automatically refresh the page with each change you make to the source files:

bundle exec jekyll serve --livereload

Browse to http://localhost:4000 to see the blog.

start-jekyll's People

Contributors

m3y54m avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.