Satak blog

Logo

Blog posts from Satak

Satak's GitHub page

11 January 2020

GitHub pages

by Satak

Introduction

GitHub offers a nice way to serve static web pages directly from GitHub repository to your own subdomain. It also can use Jekyll (with Liquid templating language) and you can write your web content in a nice markdown format: https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet

You can either pick a ready made Jekyll theme or you can write your own styling. Here I go through how to start with the ready made themes. To setup this, it takes less than 10 minutes!

Note that if you want to make folders to your GitHub page you must first clone your GitHub pages repository to your local machine, then do all these changes there and commit those changes to the master branch. To see your end result it usually takes couple minutes to propagate to the public webpage.

Step-By-Step Guide

# Blog posts

<ul>
  {% for post in site.posts %}
    <li>
      <a href="{{ post.url }}">{{ post.title }}</a>
    </li>
  {% endfor %}
</ul>

theme: jekyll-theme-minimal
author: <here put your own GitHub username or your actual name or nick>

Example with a custom title, description and logo from the assets folder:

title: 'Satak blog'
description: 'Blog posts from Satak'
theme: jekyll-theme-minimal
author: Satak
logo: '/assets/logo.gif'
---
layout: post
title: 'My first blog posts'
categories: [test]
tags: [test, cats, dogs]
---

This is my first blog post!

### Subtitle here

More text here with cat pictures from my repository

![Picture of my cute cat](/assets/cute_cat.png)

GitHub pages ready

https://help.github.com/en/github/working-with-github-pages/managing-a-custom-domain-for-your-github-pages-site

tags: github pages - tech - web