diff --git a/content/markdown-syntax.md b/content/markdown-syntax.md index 30c419f..b172dc7 100644 --- a/content/markdown-syntax.md +++ b/content/markdown-syntax.md @@ -5,7 +5,7 @@ description = "Sample article showcasing basic Markdown syntax and formatting fo [taxonomies] tags = ["markdown", "css", "html"] [extra] -cover_image = "images/markdown-content.png" +cover_image = "images/markdown-syntax.png" +++ This article offers a sample of basic Markdown syntax that can be used in Zola content files, also it shows whether basic HTML elements are decorated with CSS in a Kita theme. @@ -50,6 +50,20 @@ The blockquote element represents content that is quoted from another source, op [^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015. +## Links + +To create a link, enclose the link text in brackets and then follow it immediately with the URL in parentheses. + +[GitHub](https://github.com) + +To quickly turn a URL or email address into a link, enclose it in angle brackets. + + + +## Images + +![Markdown Guide](/images/markdown-syntax.png) + ## Tables Tables aren't part of the core Markdown spec, but Zola supports supports them out-of-the-box. diff --git a/content/pages/about.md b/content/pages/about.md index 2a5d528..1e49596 100644 --- a/content/pages/about.md +++ b/content/pages/about.md @@ -4,3 +4,14 @@ path = "about" +++ ## Hello World + +```rust,linenos,hl_lines=5-7 +fn infix_binding_power(op: char) -> (u8, u8) { + match op { + '+' | '-' => (1, 2), + '*' | '/' => (3, 4), + '.' => (6, 5), + _ => panic!("bad op: {:?}"), + } +} +``` diff --git a/static/images/markdown-content.png b/static/images/markdown-content.png deleted file mode 100644 index b31e1a5..0000000 Binary files a/static/images/markdown-content.png and /dev/null differ diff --git a/static/images/markdown-syntax.png b/static/images/markdown-syntax.png new file mode 100644 index 0000000..6fb52fa Binary files /dev/null and b/static/images/markdown-syntax.png differ diff --git a/static/main.css b/static/main.css index 4dc6206..93f8a58 100644 --- a/static/main.css +++ b/static/main.css @@ -1912,6 +1912,10 @@ article { border-radius: 0.5rem; } +.prose-img\:rounded-lg :is(:where(img):not(:where([class~="not-prose"],[class~="not-prose"] *))) { + border-radius: 0.5rem; +} + .dark\:bg-white\/80:is(.dark *) { background-color: rgb(255 255 255 / 0.8); } diff --git a/templates/index.html b/templates/index.html index 69a0958..a557258 100644 --- a/templates/index.html +++ b/templates/index.html @@ -6,7 +6,7 @@ {% include "partials/header.html" %}
{% block main %} diff --git a/templates/partials/profile.html b/templates/partials/profile.html index 565431e..9d53878 100644 --- a/templates/partials/profile.html +++ b/templates/partials/profile.html @@ -2,7 +2,7 @@
{% if config.extra.profile.avatar_url %}