The Hematite Theme
A responsive theme designed with course websites in mind.
Features
Syntax Highlighting
Hematite uses Rogue for syntax highlighting and has its own rogue theme. For example,
Python Example
def my_function():
if 1 == 2:
assert False
else:
variable = 123.4 + 1 / 2
# Now print something!
print("This is Python")
if __name__ == "__main__":
import sys
my_function()
sys.exit(1)
HTML Example
<!DOCTYPE html>
<html lang="en">
<head>
<title>Test...</title>
<script>
if (true || 1 || false) {
alert(`Testing...`);
}
// JS Comment 1
/* JS comment 2 */
</script>
<style>
:root {
color: red;
}
</style>
<!-- An HTML comment -->
</head>
<body>
<h1>Header</h1>
<p>Paragraph</p>
</body>
</html>
Java Example
package foo.bar;
public class Foo {
public static void main(String[] args) {
System.out.println("Hmm...");
}
}
Calendar Layout
Select the calendar
layout to display a visual calendar. Calendar layout example.
Math
By including katex: true
in a site’s header, \(\KaTeX\) can be loaded.
Write math by wrapping expressions in $$
. For example,
### $$\KaTeX$$ example
$$\text{This}\qquad$$ is an example of $$\KaTeX$$ usage.
\\[
f^{(n)}\left(z\right) = \frac{n!}{2\pi i} \oint_\gamma \frac{f(w)}{\left(w - z\right)^{n + 1}} dw
\\]
renders as
Result
\(\KaTeX\) example
\(\text{This}\qquad\) is an example of \(\KaTeX\) usage.
\[ f^{(n)}\left(z\right) = \frac{n!}{2\pi i} \oint_\gamma \frac{f(w)}{\left(w - z\right)^{n + 1}} dw \]
Other features
This theme also supports blog-like posts (they show up on the calendar) and searchable content.
See the documentation posts for more!
Recent posts
-
Recent Posts Widget 05 Sep 2022
With version 0.1.16 of the Hematite theme comes a “recent posts” widget. Writing # Recent posts {% include recent_posts.html %} renders as Recent Posts Widget ...
-
Quick Setup — GitHub Pages 22 Aug 2022
For more general quickstart instructions, see the Quickstart guide. Steps Follow the instructions on jekyllrb.com to create a new static site. Open Gemfile in your new site and comment out t...
-
Testing Table Styles 28 May 2022
12345 Testing... # This is a test, this function is being used to fill space. def foo(): pass ;;;; \(f^{(n)}(z) = \frac{n!}{2πi}\oint_{|z-z_0|=\rho} ...
-
Remark and Mermaid 23 May 2022
The upcoming release of Hematite comes with Mermaid-js bundled! To enable it (like \(\KaTeX\)), add mermaid: true to your frontmatter. For example, on this page, --- layout: post title: "Remark an...
-
Configuring User-Configurable Settings 20 May 2022
The Hematite theme comes with a user-configurable settings page. Settings are stored using localStorage. The settings GUI looks like this <!-- Include the settings GUI in a page with t...
-
Custom Site Icon 20 May 2022
Favicons can be set for both individual pages and the entire site with the favicon_url option. For example, this page has frontmatter, --- layout: post title: Custom Site Favicon favicon_url: asset...
-
Example post 3 16 May 2022
The Hematite theme supports creating blog posts. It now supports tags! Try clicking on one of the tags associated with this document.
-
Example post 2 16 May 2022
Pages can now be excluded from internal search indexing! To do this, add noindex: true to the header of a page. Any value of noindex that is not nil will prevent a page from being indexed. Note th...