Last Edited: February 23, 2023
This light theme website-boilerplate combines Webpack, Jekyll, Bootstrap and much more. Additionally, you can just add other packages from npm and/or gems from RubyGems as you like.
Further, it has an easily exchangeable WebGL canvas header as a 3D animated background. The GLSLX shader files are also watched in the development mode of this boilerplate. That means, if you edit them and save your changes, the shaders will be recompiled and reloaded immediately.
You are welcome to use this boilerplate to edit the existing shaders or to create a completely new WebGL header. I am curious what you will develop. If you need inspiration, check out Shadertoy or GLSL Sandbox for fragment shaders and Vertexshaderart for vertex shaders. There you can see what’s possible.
For a dark version of this boilerplate look here. You can use one of these boilerplates as a starting template to make your web appearance, blogging and portfolio awesome. They base heavily on the magnificent work of Stephen Arsenault, Nathan Randecker, me Sitdisch and many more.
If you don’t need those website-boilerplates with all the bells and whistles, but want a WebGL canvas boilerplate as a quick and easy live editor, or if you just want the pure minimized canvas bundles as 3D animated backgrounds for your website, look here.
To enable local operation of this boilerplate on your machine, you have to do the following:
MYSTARTUPFILE
in use sudo apt update
sudo apt-get install autoconf ruby-full build-essential zlib1g-dev
echo '# Install Ruby Gems to ~/gems' >> ~/$MYSTARTUPFILE
echo 'export GEM_HOME="$HOME/gems"' >> ~/$MYSTARTUPFILE
echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/$MYSTARTUPFILE
source ~/$MYSTARTUPFILE
MYSTARTUPFILE
gem install jekyll -v 4.2.2
OUTDATED
]xcode-select --install
export SDKROOT=$(xcrun --show-sdk-path)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install ruby
echo 'export PATH="/usr/local/opt/ruby/bin:/usr/local/lib/ruby/gems/3.0.0/bin:$PATH"' >> ~/$MYSTARTUPFILE
source ~/$MYSTARTUPFILE
MYSTARTUPFILE
gem install --user-install jekyll
echo 'export PATH="$HOME/.gem/ruby/X.X.0/bin:$PATH"' >> ~/$MYSTARTUPFILE
to adapt your startup file (replace X.X.
with your Ruby version ruby -v
)CONSIDER:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
source ~/$MYSTARTUPFILE
nvm install 16.19.1
to install Node.jsgit clone https://github.com/mythemeway/Light-Particle
or your fork to your local machinecd Light-Particle
npm install
CONSIDER:
If you’ve already installed Ruby, Jekyll, nvm and Node.js you only have to do the last three steps.
That’s it. Now every time you want to run the website locally in development mode, go to your Light-Particle directory on your local machine and execute npm start
. Your website will then appear at http://localhost:8080
.
If you execute npm run build
instead, a one off build of your website in production mode will be put into the ~/Light-Particle/docs
directory.
The following video shows an outdated
example setup of the dark boilerplate on Ubuntu. This also applies to the light one.
Customize your site and user settings e. g. while adapting the scss files under ~/Light-Particle/src/styles/
or the following _config.yml
file located at ~/Light-Particle
.
# Site settings
title: # insert a page-name
description: # insert a website description.
baseurl: /Light-Particle
# User settings
username: # insert a username
user_title: # insert your title
user_picture: # insert a path to your pic e.g. "/assets/img/User_picture.png" (size e.g. 254x254)
user_description: # descripe your experiences
email: # insert your_email_address
github_username: # insert your Github username
twitter_username: # insert your Twitter username
youtube_channel_id: # your Youtube channel id
linkedin_username: # insert your Linkedin username
facebook_username: # insert your Facebook username
instagram_username: # insert your Instagram username
# Google Search Console
google_site_verification: # your meta tag (no quotation marks)
CONSIDER:
<username>.github.io
, just set baseurl:
to nothing; otherwise, it will only be used in the specified subdirectory e. g. <username>.github.io
/Light-Particle
For an example of how to change the user_picture:
of the dark boilerplate, see the video below. This also applies to the light one.
If you get tired of your current header, you can anytime easily switch to another one.
The previews below are clickable and linked to their respective GitHub repositories.
mtw-canvas-disks [included]
Note: Fragment shader is based on CoordSys - intersection [License: MIT; Copyright: ©️ 2013 Inigo Quilez; Changes: made]
mtw-canvas-malachite [included] [default]
Note: Fragment shader is based on Glare of water [License: CC BY 3.0; Copyright: ©️ 2019 Jan Mróz; Changes: made]
Note: Fragment shader is based on ARQVOID :: 240 chars [License: CC BY-NC-SA 3.0; Copyright: ©️ 2021 ENDESGA & Xor; Changes: made]
Note: Fragment shader is based on Glare of water [License: CC BY 3.0; Copyright: ©️ 2019 Jan Mróz; Changes: made]
~/Light-Particle/canvas.config.js
p2c
) and save it//
// SECTION: PATH TO CANVAS (p2c) IN USE
//
// const p2c = './src/canvas/mtw-canvas-disks';
const p2c = './src/canvas/mtw-canvas-malachite';
That’s it.
mtw-canvas-new
into the ~/Light-Particle/src/canvas
directory//
// SECTION: PATH TO CANVAS (p2c) IN USE
//
// const p2c = './src/canvas/mtw-canvas-disks';
// const p2c = './src/canvas/mtw-canvas-malachite';
const p2c = './src/canvas/mtw-canvas-new';
CONSIDER:
mtw-canvas-new
must have a main.js
fileshaders.glslx
filesHere is one procedure of getting your website published at GitHub Pages:
git clone https://github.com/<username>/Light-Particle
(replace <username>
)npm run build
to put a one off build of your website into the ~/Light-Particle/docs
directory.git add .
, commit git commit -am "my changes"
and push git push
your changes to GitHubhttps://<username>.github.io/Light-Particle/
(replace <username>
) and be proudNow every time you want to change your published website, go to your Light-Particle directory on your local machine and repeat steps 5
–8
.
CONSIDER:
The following video shows an outdated
example setup of the dark boilerplate on Github pages. This also applies to the light one.
Light-Particle based on the extraordinary work of: