Default
Jekyll: A GitHub Page with No Theme (2)
C. BinKadal --- Sendirian, Berhad

Jekyll: A GitHub Page with No Theme (2)

Setting the GitHub Page


This page is about building a GitHub Page with no Jekyll theme. It is assumed that you know and have a GitHub account, and know how to setup a GitHub Page.

This following example will use repo

https://github.com/cbkadal/os888/

Before you clone the repo, make sure to set the GitHub Page, i.e.

https://cbkadal.github.io/os888/

INPUT

git clone  git@github.com:cbkadal/os888.git
cd os888
ls -al

OUTPUT

$ git clone  git@github.com:cbkadal/os888.git
Cloning into 'os888'...
remote: Enumerating objects: 6, done.
remote: Counting objects: 100% (6/6), done.
remote: Total 6 (delta 2), reused 6 (delta 2), pack-reused 0
Receiving objects: 100% (6/6), done.
Resolving deltas: 100% (2/2), done.

$ cd os888

$ ls -al
total 12
drwxr-xr-x 3 cbkadal cbkadal 4096 Jul 19 13:57 .
drwxr-xr-x 3 cbkadal cbkadal 4096 Jul 19 13:57 ..
drwxr-xr-x 8 cbkadal cbkadal 4096 Jul 19 13:57 .git

$ 


Download this following:

https://template.vlsm.org/template.zip

INPUT

ls -al
wget https://template.vlsm.org/template.zip
ls -al
unzip -l template.zip 
unzip template.zip 
rm -f template.zip
ls -aF

OUTPUT

$ ls -al
total 12
drwxr-xr-x 3 cbkadal cbkadal 4096 Jul 19 14:02 .
drwxr-xr-x 3 cbkadal cbkadal 4096 Jul 19 13:57 ..
drwxr-xr-x 8 cbkadal cbkadal 4096 Jul 19 13:57 .git

$ wget https://template.vlsm.org/template.zip
--2021-07-19 14:03:53--  https://template.vlsm.org/template.zip
Resolving template.vlsm.org (template.vlsm.org)... 185.199.110.153, 185.199.111.153, 185.199.108.153, ...
Connecting to template.vlsm.org (template.vlsm.org)|185.199.110.153|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 51695 (50K) [application/zip]
Saving to: ‘template.zip’

template.zip         100%[========================>]  50.48K  --.-KB/s    in 0.01s   

2021-07-19 14:03:54 (4.28 MB/s) - ‘template.zip’ saved [51695/51695]

$ ls -al
total 64
drwxr-xr-x 3 cbkadal cbkadal  4096 Jul 19 14:03 .
drwxr-xr-x 3 cbkadal cbkadal  4096 Jul 19 13:57 ..
drwxr-xr-x 8 cbkadal cbkadal  4096 Jul 19 13:57 .git
-rw-r--r-- 1 cbkadal cbkadal 51695 Jul 19 13:50 template.zip

$ unzip -l template.zip 
Archive:  template.zip
  Length      Date    Time    Name
---------  ---------- -----   ----
      645  2021-07-19 13:50   _config.yml
      153  2021-07-04 09:35   .dojekyll
       76  2021-07-04 09:35   .gitignore
      408  2021-07-04 09:35   .template
       95  2021-07-04 09:35   Gemfile
    35149  2021-07-04 09:35   LICENSE
      843  2021-07-19 13:45   Makefile
    15406  2021-07-04 09:35   favicon.ico
    13155  2021-07-19 13:50   000.md
      355  2021-07-16 04:39   about.md
      843  2021-07-19 13:47   index.md
      710  2021-07-16 04:51   links.md
      843  2021-07-19 13:47   README.md
      638  2021-07-16 04:52   tips.md
      905  2021-07-16 04:51   000.pmd
        0  2021-07-04 09:35   assets/
        0  2021-07-19 13:46   _includes/
        0  2021-07-16 04:36   _layouts/
        0  2021-07-04 09:35   SandBox/
        0  2021-07-16 04:36   assets/images/
    23746  2021-07-04 10:48   assets/images/default.jpg
        0  2021-07-04 09:35   assets/scripts/
     1055  2021-07-04 09:35   assets/scripts/includeScript.py
        0  2021-07-04 09:35   assets/js/
        6  2021-07-04 09:35   assets/js/.dummy
        0  2021-07-16 04:19   assets/css/
     3864  2021-07-16 04:18   assets/css/style.css
       16  2021-07-04 09:35   _includes/scripts.html
      960  2021-07-19 13:46   _includes/navbar.html
      506  2021-07-04 09:35   _includes/google-analytics.html
      169  2021-07-16 04:40   _includes/footer.html
      843  2021-07-04 09:35   _includes/head.html
      209  2021-07-04 09:35   _includes/inc001.html
     1183  2021-07-16 04:36   _layouts/layout.html
       59  2021-07-04 09:35   SandBox/.layout
---------                     -------
   102840                     35 files

$ unzip template.zip 
Archive:  template.zip
  inflating: _config.yml             

===== TL;DR =====

  inflating: _includes/inc001.html   
  inflating: _layouts/layout.html    
  inflating: SandBox/.layout         
$ rm -f template.zip

$ ls -aF
./      000.pmd   _config.yml  Gemfile     _includes/  LICENSE   README.md  tips.md
../     about.md  .dojekyll    .git/       index.md    links.md  SandBox/
000.md  assets/   favicon.ico  .gitignore  _layouts/   Makefile  .template

$ 


Last, push it all back to GitHub with the “4 git mantras”.

INPUT

git pull --all
git add -A
git commit -m "os888 GitHub Page"
git push --all

OUTPUT

$ git pull --all
Fetching origin
Already up to date.

$ git add -A

$ git commit -m "os888 GitHub Page"
[master 4d6de66] os888 GitHub Page
 27 files changed, 1960 insertions(+)
 create mode 100644 .dojekyll

===== TL;DR =====

 create mode 100644 index.md
 create mode 100644 links.md
 create mode 100644 tips.md

$ git push --all
Enumerating objects: 37, done.
Counting objects: 100% (37/37), done.
Delta compression using up to 2 threads
Compressing objects: 100% (28/28), done.
Writing objects: 100% (36/36), 46.50 KiB | 6.64 MiB/s, done.
Total 36 (delta 0), reused 0 (delta 0)
To github.com:cbkadal/os888.git
   3b0f490..4d6de66  master -> master

$


Check GitHub Page https://cbkadal.github.io/os888/


NEXT

GitHub Page Configuration Files



Table of Content


© 2021-2024 --- C. BinKadal --- About --- Revision: 0168--21-Apr-2024.