Coder Social home page Coder Social logo

heioy / alinwrites.github.io Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alinwrites/alinwrites.github.io

0.0 0.0 0.0 579 KB

a simple blog for drabbles

Home Page: https://alinwrites.github.io

License: MIT License

Ruby 3.74% HTML 35.95% SCSS 60.31%

alinwrites.github.io's Introduction

Rain

Rain is a simple and clean Jekyll theme with focus on content. It's a fork of Tale theme with additional customizations.

Features

  • Compatible with GitHub Pages
  • Responsive design
  • Syntax highlighting
  • Markdown and HTML text formatting
  • Pagination of posts
  • Related articles section
  • Links to social media

Getting Started

You will need to install Jekyll on your machine. Installation depends on your operating system and it is explained here.

Then create a new directory and clone this repository:

mkdir rain
cd rain
git clone https://github.com/inelaah/rain.git

Install all dependencies:

bundle install

Site Configuration

There is a configuration file _config.yml in root directory. You should overwrite it to fit to your needs.

An example of _config.yml looks like this:

# Site settings
title:          Rain
description:    "Rain is a simple and clean Jekyll theme with focus on content."
url:            https://github.com/inelaah/rain

# Author
author:
  name:         Inela Avdic Hukic
  email:        [email protected]
  url:          https://inelaah.com

# Build settings
markdown:       kramdown

# Assets
sass:
  sass_dir:     _sass
  style:        compressed

# Gems
plugins:
  - jekyll-feed
  - jekyll-paginate
  # - jemoji #Uncomment this to allow emoji in your post

# Permalinks
permalink:      /:year-:month-:day/:title
paginate:       5

# Related posts settings
related_posts_section:
  max_count:        5
  min_common_tags:  2

# Links to social media
social:
  email: [email protected]
  github: https://github.com/inelaah
  twitter: https://twitter.com
  linkedin: https://ba.linkedin.com/in/inela-avdic-hukic-322354131

Favicons

It is recommended to put your own favicons:

  • apple-touch-icon.png (180x180)
  • favicon-32x32.png (32x32)
  • favicon-16x16.png (16x16)
  • mstile-150x150.png (150x150)
  • android-chrome-192x192.png (192x192)
  • android-chrome-512x512.png (512x512)

in /assets directory. They're easily created via Favicon Generator.

Related Articles

Related articles section is based on article tags. For every post that you want to have this section you should define tags. To include related articles in the bottom of the content you should define related_posts_section property in configuration file. It contains two fields: max_count and min_common_tags:

  • max_count represents the maximum number of related articles shown on a single article.
  • min_common_tags represents the minimum number of common tags for two articles to become related articles.

Links to social media

To include links to social media in the top right corner of your page you need to define social property. It contains email, GitHub, Twitter and LinkedIn fields. You can leave out any of these if you don't want them to show up on your page.

Customizing Rain theme

If you want to customize Rain theme you can fork this project and make some changes. If you just want to change the style then you can find Sass files in _sass/rain directory.

Adding your own posts

You can see an example of post structure in _posts directory. After you clone this project you should clean the _posts directory and add your own posts.

Build and serve

bundle exec jekyll serve

Head over to http://127.0.0.1:4000/ to see your page.

License

Rain is licensed under the MIT license. Check the LICENSE file for details.

Author

Inela Avdic Hukic

alinwrites.github.io's People

Contributors

alinwrites avatar inelaah 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.