Jekyll Chirpy Theme Text and Typography
This page demonstrates examples of text, typography, math equations, diagrams, flowcharts, pictures, videos, and more.
Introduction
Jekyll is a tool for building static websites. This website is built using the Jekyll Chirpy theme with my own style changes. I copied this post from the source code for Cotes Chung’s demonstration website for the Jekyll Chirpy theme and modified it for testing this website. This post demonstrates the text and typography styles of this Jekyll theme. — Conrad Halling
Headings
H1 — heading
H2 — heading
H3 — heading
H4 — heading
Paragraph
Quisque egestas convallis ipsum, ut sollicitudin risus tincidunt a. Maecenas interdum malesuada egestas. Duis consectetur porta risus, sit amet vulputate urna facilisis ac. Phasellus semper dui non purus ultrices sodales. Aliquam ante lorem, ornare a feugiat ac, finibus nec mauris. Vivamus ut tristique nisi. Sed vel leo vulputate, efficitur risus non, posuere mi. Nullam tincidunt bibendum rutrum. Proin commodo ornare sapien. Vivamus interdum diam sed sapien blandit, sit amet aliquam risus mattis. Nullam arcu turpis, mollis quis laoreet at, placerat id nibh. Suspendisse venenatis eros eros.
Lists
Ordered list
- Firstly
- Secondly
- Thirdly
Unordered list
- Chapter
- Section
- Paragraph
- Section
ToDo list
-
Job
- Step 1
- Step 2
- Step 3
Description list
- Sun
- the star around which the earth orbits
- Moon
- the natural satellite of the earth, visible by reflected light from the sun
Block Quote
This line shows the block quote.
This is a double block quote.
Prompts
An example showing the
tip
type prompt.
An example showing the
info
type prompt.
An example showing the
warning
type prompt.
An example showing the
danger
type prompt.
Tables
Company | Contact | Country |
---|---|---|
Alfreds Futterkiste | Maria Anders | Germany |
Island Trading | Helen Bennett | UK |
Magazzini Alimentari Riuniti |
Giovanni Rovelli | Italy |
Links
Jekyll Theme Chirpy source code
Footnote
Click the hook will locate the footnote1, and here is another footnote2.
Inline Code
This is an example of Inline Code
.
Keyboard Input
This is an example of keyboard entry text.
You can also create a new document by pressing the Ctrl+N shortcut.
Computer Output
I was trying to boot my computer, but I got this hilarious message:
Keyboard not found
Press F1 to continue
Highlighted Text
I need to highlight these very important words.
Subscripts
The chemical formula for water is H2O.
Superscripts
There are 103 milliliters in a liter.
Horizontal Rule
This text is separated by a horizontal rule…
…from this text.
Filepath
Here is the /path/to/the/file.extend
.
Console I/O
See the Rouge Documentation for more information.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$ ssh-keygen
Generating public/private ed25519 key pair.
Enter file in which to save the key (/Users/halto/.ssh/id_ed25519):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /Users/halto/.ssh/id_ed25519
Your public key has been saved in /Users/halto/.ssh/id_ed25519.pub
The key fingerprint is:
SHA256:VuHuWL14ynXlWDgHrgM1BOV8hy5/nR+KX1n0s2+r5to halto@arcturus
The key's randomart image is:
+--[ED25519 256]--+
| ooo |
| . = . |
| o = + o|
| o o = =.|
| S + o =.*|
| . + o = BB|
| . o * +*+|
| . +o+o.=|
| oo=E.o+|
+----[SHA256]-----+
Code Blocks
Common
1
This is a common code snippet, without syntax highlight.
Specific Coding Languages
1
2
3
4
if [ $? -ne 0 ]; then
echo "The command was not successful.";
#do the needful / exit
fi;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import numpy as np
import pandas as pd
import sklearn.datasets
# Load Iris Data from scikit-learn into a pandas DataFrame.
# This requires some customization.
bunch = sklearn.datasets.load_iris(as_frame=True)
iris = bunch["frame"] # this is the DataFrame
species_names = bunch["target_names"] # names of targets
# Add a species column and drop the target column.
iris["species"] = [species_names[x] for x in iris["target"]]
iris = iris.drop(columns=["target"])
print(iris.info())
print()
print(iris.head())
print()
# Extract the data for Iris versicolor as a NumPy array.
# This is not needed, since plt.hist() accepts a pandas Series.
versicolor_petal_length = iris[iris["species"] == "versicolor"]["petal length (cm)"].to_numpy()
print(versicolor_petal_length)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="author" content="Dave Gray">
<meta name="description" content="HTML tutorial, Chapter 9 Forms & Inputs">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My First Web Page</title>
<link rel="stylesheet" href="../css/main.css">
<link rel="shortcut icon" href="../img/sphaerula.png" type="image/x-icon">
</head>
<body>
<header>
<h1>My Goals for the Year</h1>
<nav aria-label="primary navigation">
<!-- <h2>Primary Navigation</h2> -->
<ul>
<li>
<a href="#html">Learning HTML</a>
</li>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
html {
font-size: 22px;
}
body {
background-color: #333;
color: whitesmoke;
}
a {
color: aliceblue;
}
a:visited {
color: lightgray;
}
a:hover, a:active {
color: #eee;
}
1
2
3
4
5
6
7
8
9
10
11
class AccountNumber
{
public int $accountNumber;
public int $routingNumber;
public function __construct(int $accountNumber, int $routingNumber)
{
$this->accountNumber = $accountNumber;
$this->routingNumber = $routingNumber;
}
}
1
2
3
4
5
6
7
8
9
10
11
// Throw a custom error.
const makeError3 = () => {
try {
throw new CustomError3("This is a custom error!");
} catch (err) {
console.error(err.name); // CustomError3
console.error(err.message);
console.error(err.stack);
console.log(err.constructor.name); // CustomError3
}
};
Specific Filename
1
2
3
@import
"colors/light-typography",
"colors/dark-typography";
Mathematics
The mathematics powered by MathJax:
\[\begin{equation} \sum_{n=1}^\infty 1/n^2 = \frac{\pi^2}{6} \label{eq:series} \end{equation}\]We can reference the equation as \eqref{eq:series}.
When $a \ne 0$, there are two solutions to $ax^2 + bx + c = 0$ and they are
\[x = {-b \pm \sqrt{b^2-4ac} \over 2a}\]Mermaid SVG
gantt
title Adding GANTT diagram functionality to mermaid
apple :a, 2017-07-20, 1w
banana :crit, b, 2017-07-23, 1d
cherry :active, c, after b a, 1d
Images
Default with Caption
Full screen width and center alignment
Left Aligned
Float to Left
Praesent maximus aliquam sapien. Sed vel neque in dolor pulvinar auctor. Maecenas pharetra, sem sit amet interdum posuere, tellus lacus eleifend magna, ac lobortis felis ipsum id sapien. Proin ornare rutrum metus, ac convallis diam volutpat sit amet. Phasellus volutpat, elit sit amet tincidunt mollis, felis mi scelerisque mauris, ut facilisis leo magna accumsan sapien. In rutrum vehicula nisl eget tempor. Nullam maximus ullamcorper libero non maximus. Integer ultricies velit id convallis varius. Praesent eu nisl eu urna finibus ultrices id nec ex. Mauris ac mattis quam. Fusce aliquam est nec sapien bibendum, vitae malesuada ligula condimentum.
Float to Right
Praesent maximus aliquam sapien. Sed vel neque in dolor pulvinar auctor. Maecenas pharetra, sem sit amet interdum posuere, tellus lacus eleifend magna, ac lobortis felis ipsum id sapien. Proin ornare rutrum metus, ac convallis diam volutpat sit amet. Phasellus volutpat, elit sit amet tincidunt mollis, felis mi scelerisque mauris, ut facilisis leo magna accumsan sapien. In rutrum vehicula nisl eget tempor. Nullam maximus ullamcorper libero non maximus. Integer ultricies velit id convallis varius. Praesent eu nisl eu urna finibus ultrices id nec ex. Mauris ac mattis quam. Fusce aliquam est nec sapien bibendum, vitae malesuada ligula condimentum.
Dark/Light Mode & Shadow
The image below will toggle dark/light mode based on theme preference, notice it has shadows.