Skip to content

Latest commit

 

History

History
117 lines (94 loc) · 2.72 KB

index.md

File metadata and controls

117 lines (94 loc) · 2.72 KB
title layout katex lang sidebarindex
Hematite Theme
home
true
en
1

The Hematite Theme

Gem Version

A responsive theme designed with course websites in mind.

Please [report bugs on GitHub.](https://github.com/personalizedrefrigerator/jekyll-hematite-theme/issues/new?assignees=&labels=bug&template=bug_report.md)

Features

Syntax Highlighting

Hematite uses Rogue for syntax highlighting and has its own rogue theme. For example,

Python Example ```py 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)

</details>

<details markdown=1><summary>HTML Example</summary>
```html
<!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 ```java package foo.bar;

public class Foo { public static void main(String[] args) { System.out.println("Hmm..."); } }

</details>


## Calendar Layout
Select the `calendar` layout to display a visual calendar. [Calendar layout example](example/calendar).

## Math
By including `katex: true` in a site's header, $$\KaTeX$$ can be loaded.

Write math by wrapping expressions in `$$`. For example,

```tex
### $$\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]({{ "assets/html/all_tags.html#tag__documentation" | relative_url }}) posts for more!

Recent posts

{% include recent_posts.html %}