diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 00000000..e69de29b diff --git a/404.html b/404.html new file mode 100644 index 00000000..702fea15 --- /dev/null +++ b/404.html @@ -0,0 +1,3 @@ +
Thanks for checking out this theme!
Checkout all the options you can configure and the example pages.
theme
)Sets the color theme for your blog.
theme = "toggle"
The "toggle" option allows users to switch between light and dark modes, while "auto" typically follows the user's system preferences.
Defines the navigation menu items for your blog.
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 },
+]
+
Defines the social media links.
socials = [
+ { name = "twitter", url = "https://twitter.com/not_matthias", icon = "twitter" },
+ { name = "github", url = "https://github.com/not-matthias/", icon = "github" },
+]
+
toc
)Enables or disables the table of contents for posts.
toc = true
When enabled, a table of contents will be generated for posts, making it easier for readers to navigate through longer articles.
use_cdn
)Determines whether to use a Content Delivery Network (CDN) for assets.
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
)Specifies the path to the favicon image for your blog.
favicon = "/icon/favicon.png"
This sets the small icon that appears in the browser tab for your website.
fancy_code
)Enables enhanced styling for code blocks.
fancy_code = true
This option adds the language label and a copy button.
dynamic_note
)Allows for the creation of togglable note sections in your content.
dynamic_note = true
When enabled, you can create expandable/collapsible note sections in your blog posts.
You can add anchor links by adding the following to your _index.md
:
insert_anchor_links = "heading"
+
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.
[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
.
comment
)Enables or disables the comment system for posts.
comment = false
After making comment = true
in [extra]
section of you post, save your script from Giscus to templates/_giscus_script.html
. When enabled, this allows readers to leave comments on your blog posts. This feature has to be set for each individual post and is not supported at higher levels.
Example configuration in content/posts/configuration.md:
+++
+title = "Configuring Apollo"
+
+[extra]
+comment = true
++++
+
Comments via utterances can be configured in template/_giscus_script.html
like this:
<script src="https://utteranc.es/client.js"
+ repo="YOUR_NAME/YOUR_REPO"
+ issue-term="pathname"
+ theme="github-light"
+ crossorigin="anonymous"
+ async>
+</script>
+
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
fn main() {
+ println!("Hello World");
+}
+
1 fn main() {
+ 2 println!("Hello World");
+ 3 }
+
Two things are infinite: the universe and human stupidity; and I'm not sure about the universe.
— Albert Einstein
Italics | Bold | Code | StrikeThrough |
---|---|---|---|
italics | bold | code |
IT'S A SECRET TO EVERYBODY.
Stay awhile, and listen!
Lorem ipsum dolor
sit amet, consectetur adipiscing
elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Note: This requires the mathjax
and mathjax_dollar_inline_enable
option set to true
.
$$ 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)) $$
Click here to be redirected. \ No newline at end of file diff --git a/posts/shortcode/index.html b/posts/shortcode/index.html new file mode 100644 index 00000000..90f71ce1 --- /dev/null +++ b/posts/shortcode/index.html @@ -0,0 +1,24 @@ +
Here is an example of the note
shortcode:
This one is static!
This blog assumes basic terminal maturity
This one is clickable!
Syntax:
{{ note(header="Note!", body="This blog assumes basic terminal maturity") }}
+{{ note(clickable=true, hidden = true, header="Quiz!", body="The answer to the quiz!") }}
+
You can also use some HTML in the text:
Literal shortcode:
{{ note(header="Note!", body="<h1>This blog assumes basic terminal maturity</h1>") }}
+
Pretty cool, right?
Finally, you can do something like this (hopefully):
fn main() {
+ println!("Hello World");
+}
+
We can't call another shortcode inside a shortcode, but this is good enough.
Here is the raw markdown:
{{ note(clickable=true, header="Quiz!") }}
+
+# Hello this is markdown inside a note shortcode
+
+\`\`\`rust
+fn main() {
+ println!("Hello World");
+}
+\`\`\`
+
+We can't call another shortcode inside a shortcode, but this is good enough.
+
+{{/* end */}}
+
Finally, we have center
Centered Text
This is centered text
{{ note(center=true, header="Centered Text", body="This is centered text") }}
+
It works good enough for me!
Example project page
Example project page
Example project page
Example project page
Example project page