←
Documentation for this blog
About this theme
The theme is maintained in a repo on my account, forked from someone else’s theme of the same name. The modifications include:
- Addition of local Katex v0.16.7 (CSS/JS/font) files for rendering math on client side. I chose not to go with a CDN hosted version of Katex to have all scripts be hosted on the same domain.
- A dark or light theme button in the top right, and the associated JS file. This was obtained from another user’s Github hosted portfolio.
- Minor changes like syntax highlighting for code blocks, removal of analytics and SEO plugin, changes to default fonts and code blocks.
- Options to have uppercase titles, commentary appear above the archive page, the index content appear on top, and display update date in post.
Creating a new post
Add a new post to the _posts
folder with the name YYYY-MM-DD-title.md
, with the front matter similar to that of this post. The URL used is the title
from the file name, while the displayed title is sourced from the front matter. The site is tested locally using bundle exec jekyll serve
, while Github pages deployments are available directly on the home page.
Sample elements
Code
1
2
3
4
5
def print_hi(name)
puts "Hi, #{name}"
end
print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
def print(name):
print(f"Hi, {name}")
print_hi('Tom')
# prints 'Hi, Tom' to STDOUT.
def print(name):
print(f"Hi, {name}")
print_hi('Tom')
# prints 'Hi, Tom' to STDOUT.
def print(name):
print(f"Hi, {name}")
print_hi('Tom')
# prints 'Hi, Tom' to STDOUT.
def print(name):
print(f"Hi, {name}")
print_hi('Tom')
# prints 'Hi, Tom' to STDOUT.
def print(name):
print(f"Hi, {name}")
print_hi('Tom')
# prints 'Hi, Tom' to STDOUT.
Math / LaTeX
\[\left[ \frac{-\hbar^2}{2\mu}\nabla^2 + V(\mathbf{r},t)\right] \Psi(\mathbf{r},t)\]Horizontal line
Image that inverts with the theme
Image that doesn’t invert
Table of contents
Blockquote
The following is a blockquote:
Fear is the response to loud noises, or loss of support.
Tables
Tables | Are | Cool | Four |
---|---|---|---|
col 3 is | right-aligned | $1600 | one |
col 2 is | centered | $12 | two |
zebra stripes | are neat | $1 | 3 |
Heading with title
This is a reference for which a footnote is available below. 1
-
This is the source for that reference. ↩