Skip to content

Commit

Permalink
Switch to Apollo Zola theme
Browse files Browse the repository at this point in the history
  • Loading branch information
robbins committed Aug 25, 2024
1 parent 4415d00 commit 498dc40
Show file tree
Hide file tree
Showing 32 changed files with 404 additions and 119 deletions.
50 changes: 5 additions & 45 deletions config.toml
Original file line number Diff line number Diff line change
@@ -1,50 +1,10 @@
# The URL the site will be built for
base_url = "https://robbins.page"

# Whether to automatically compile all Sass files in the sass directory
compile_sass = true

# Whether to build a search index to be used later on by a JavaScript library
build_search_index = false

theme = "hermit_zola"
title = "Nathanael Robbins"

[markdown]
# Whether to do syntax highlighting
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
highlight_code = true
theme = "apollo"
taxonomies = [{ name = "tags" }]

[extra]
home_subtitle = "Computer Science Student, UofT"

footer_copyright = ''

hermit_menu = [
{ link = "/projects", name = "Projects" },
{ link = "/blog", name = "Blog" },
{ link = "/about", name = "About" }
theme = "auto"
socials = [
]

hermit_social = [
{ name = "github", link = "https://github.com/robbins" },
{ name = "linkedin", link = "https://www.linkedin.com/in/nathanael-robbins-03561b96" },
menu = [
]

[extra.highlightjs]
enable = true
clipboard = true
theme = "vs2015"

[extra.disqus]
enable = false
# Take this from your Disqus account
shortname = "my-supa-dupa-blog"

[extra.author]
name = "Nathanael Robbins"
email = "nathanael@robbins.page"

[extra.google_analytics]
enable = false
id = "UA-4XXXXXXX-X"
8 changes: 8 additions & 0 deletions content/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
+++
title= "Apollo Theme"
template = "homepage.html"
+++

Thanks for checking out this theme!

Checkout all the [options you can configure](./posts/configuration) and the [example pages](./tags/example/).
3 changes: 2 additions & 1 deletion content/about.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
+++
title="About"
title = "About"
path = "about"
+++
4 changes: 0 additions & 4 deletions content/blog/_index.md

This file was deleted.

7 changes: 7 additions & 0 deletions content/posts/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
+++
paginate_by = 7
title = "Posts"
sort_by = "date"

insert_anchor_links = "heading"
+++
132 changes: 132 additions & 0 deletions content/posts/configuration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
+++
title = "Configuring Apollo"
date = "2024-07-09"

[taxonomies]
tags=["documentation"]

[extra]
repo_view = true
+++

## Theme Mode (`theme`)

Sets the color theme for your blog.

- Type: String
- Options: "light", "dark", "auto", "toggle"
- Default: "toggle"
- Usage: `theme = "toggle"`

The "toggle" option allows users to switch between light and dark modes, while "auto" typically follows the user's system preferences.

## Menu

Defines the navigation menu items for your blog.

- Type: Array of objects
- Default: []
- Usage:
```toml
menu = [
{ name = "/posts", url = "/posts", weight = 1 },
{ name = "/projects", url = "/projects", weight = 2 },
{ name = "/about", url = "/about", weight = 3 },
{ name = "/tags", url = "/tags", weight = 4 },
]
```

## Socials

Defines the social media links.

- Type: Array of objects
- Default: []
- Usage:
```toml
socials = [
{ name = "twitter", url = "https://twitter.com/not_matthias", icon = "twitter" },
{ name = "github", url = "https://github.com/not-matthias/", icon = "github" },
]
```

## Table of Contents (`toc`)

Enables or disables the table of contents for posts.

- Type: Boolean
- Default: true
- Usage: `toc = true`

When enabled, a table of contents will be generated for posts, making it easier for readers to navigate through longer articles.

## CDN Usage (`use_cdn`)

Determines whether to use a Content Delivery Network (CDN) for assets.

- Type: Boolean
- Default: false
- Usage: `use_cdn = false`

When set to true, the theme will attempt to load assets from a CDN, which can improve loading times for visitors from different geographic locations.

## Favicon (`favicon`)

Specifies the path to the favicon image for your blog.

- Type: String
- Default: "/icon/favicon.png"
- Usage: `favicon = "/icon/favicon.png"`

This sets the small icon that appears in the browser tab for your website.

## Comments (`comment`)

Enables or disables the comment system for posts.

- Type: Boolean
- Default: false
- Usage: `comment = false`

After making `comment = true` save your script from [Giscus](https://giscus.app) to `templates/_giscus_script.html`.
When enabled, this allows readers to leave comments on your blog posts.


## Fancy Code Styling (`fancy_code`)

Enables enhanced styling for code blocks.

- Type: Boolean
- Default: true
- Usage: `fancy_code = true`

This option adds the language label and a copy button.

## Dynamic Notes (`dynamic_note`)

Allows for the creation of togglable note sections in your content.

- Type: Boolean
- Default: true
- Usage: `dynamic_note = true`

When enabled, you can create expandable/collapsible note sections in your blog posts.

## Source code (`repo_view`)

Do you want to link to the source code of your blog post? You can turn on the `repo_view` inside the `[extra]` section of your blog post.

```toml
[extra]
repo_view = true
repo_url = "https://github.com/not-matthias/apollo/tree/main/content" # Alternatively add the repo here
```

The `repo_url` can be set in the `[extra]` section or in your `config.toml`.

## Anchor Links

You can add anchor links by adding the following to your `_index.md`:
```toml
insert_anchor_links = "heading"
```
84 changes: 84 additions & 0 deletions content/posts/markdown.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
+++
title = "Markdown Test"
date = "2022-01-01"
updated = "2022-05-01"

[taxonomies]
tags=["example"]
+++

# H1
## H2
### H3


Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Aliquet sagittis id consectetur purus ut. In pellentesque massa placerat duis ultricies. Neque laoreet suspendisse interdum consectetur libero id. Justo nec ultrices dui sapien eget mi proin. Nunc consequat interdum varius sit amet mattis vulputate. Sollicitudin tempor id eu nisl nunc mi ipsum. Non odio euismod lacinia at quis. Sit amet nisl suscipit adipiscing. Amet mattis vulputate enim nulla aliquet porttitor lacus luctus accumsan. Sit amet consectetur adipiscing elit pellentesque habitant. Ac placerat vestibulum lectus mauris. Molestie ac feugiat sed lectus vestibulum mattis ullamcorper velit sed. [Google](https://www.google.com)

![Markdown Logo](https://markdown-here.com/img/icon256.png)

## Code Block

```rust
fn main() {
println!("Hello World");
}
```


```rust,hl_lines=2,linenos
fn main() {
println!("Hello World");
}
```

## Ordered List

1. First item
2. Second item
3. Third item

## Unordered List

- List item
- Another item
- And another item

## Nested list

- Fruit
- Apple
- Orange
- Banana
- Dairy
- Milk
- Cheese

## Quote

> Two things are infinite: the universe and human stupidity; and I'm not sure about the
> universe.<br>
> — <cite>Albert Einstein</cite>

## Table Inline Markdown

| Italics | Bold | Code | StrikeThrough |
| --------- | -------- | ------ | ----------------- |
| *italics* | **bold** | `code` | ~~strikethrough~~ |

## Foldable Text

<details>
<summary>Title 1</summary>
<p>IT'S A SECRET TO EVERYBODY.</p>
</details>

<details>
<summary>Title 2</summary>
<p>Stay awhile, and listen!</p>
</details>

## Code tags

Lorem ipsum `dolor` sit amet, `consectetur adipiscing` elit.
`Lorem ipsum dolor sit amet, consectetur adipiscing elit.`
22 changes: 22 additions & 0 deletions content/posts/math-symbol.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
+++
title = "Math Symbol Example"
date = "2023-01-06"

[taxonomies]
tags=["example"]
+++

Note: This requires the `mathjax` and `mathjax_dollar_inline_enable` option set to `true`.

# Inline Math

- $(a+b)^2$ = $a^2 + 2ab + b^2$
- A polynomial P of degree d over $\mathbb{F}_p$ is an expression of the form
$P(s) = a_0 + a_1 . s + a_2 . s^2 + ... + a_d . s^d$ for some
$a_0,..,a_d \in \mathbb{F}_p$

# Displayed Math

$$
p := (\sum_{k∈I}{c_k.v_k} + \delta_v.t(x))·(\sum_{k∈I}{c_k.w_k} + \delta_w.t(x)) − (\sum_{k∈I}{c_k.y_k} + \delta_y.t(x))
$$
Loading

0 comments on commit 498dc40

Please sign in to comment.