From 14375c5289e84690cacd0ec9b511cefef088f0a5 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 2 Jan 2021 16:47:15 +0100 Subject: Use Pygments for syntax highlighting, design adjustments, preload fonts --- content/blog/test2/_index.md | 13 ------------- content/blog/test2/index.md | 13 +++++++++++++ content/index.md | 15 +++++++++++++++ 3 files changed, 28 insertions(+), 13 deletions(-) delete mode 100644 content/blog/test2/_index.md create mode 100644 content/blog/test2/index.md (limited to 'content') diff --git a/content/blog/test2/_index.md b/content/blog/test2/_index.md deleted file mode 100644 index 9d1ebd2..0000000 --- a/content/blog/test2/_index.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -date: 2020-12-21 -title: Test Page 2 -category: per ---- - -# Test Page 2 - -``` - - /----\ -- | | - - \----/ -``` diff --git a/content/blog/test2/index.md b/content/blog/test2/index.md new file mode 100644 index 0000000..9d1ebd2 --- /dev/null +++ b/content/blog/test2/index.md @@ -0,0 +1,13 @@ +--- +date: 2020-12-21 +title: Test Page 2 +category: per +--- + +# Test Page 2 + +``` + - /----\ +- | | + - \----/ +``` diff --git a/content/index.md b/content/index.md index 8c49e44..3d2462c 100644 --- a/content/index.md +++ b/content/index.md @@ -12,6 +12,21 @@ Welcome to my website! I'm Volpeon and here's an [inline link](#c). Welcome to my website! I'm Volpeon and here's an [inline link](#d). +```lua +function Header(el) + if el.level == 1 then + el.classes = el.classes .. {'c-page__prefixed', 'c-page__prefixed--h1'} + elseif el.level == 2 then + el.classes = el.classes .. {'c-page__prefixed', 'c-page__prefixed--h2'} + elseif el.level == 3 then + el.classes = el.classes .. {'c-page__prefixed', 'c-page__prefixed--h3'} + end + return el +end +``` + +Welcome to my website! I'm Volpeon and here's an [inline link](#e). + ## Subtitle ### Last one -- cgit v1.2.3-70-g09d2