From 5e4d759614c4b50b004f887c92df2e4d6aead34e Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Sun, 24 May 2026 23:01:12 +0200 Subject: Sidenote / alert --- README.md | 2 - content/posts/local-llm-inference-1.md | 7 ++-- layouts/shortcodes/alert.html | 71 ++++++---------------------------- 3 files changed, 16 insertions(+), 64 deletions(-) diff --git a/README.md b/README.md index 7a80488..d1032c1 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,6 @@ ## TODO -- [ ] Cleanup articles -- [ ] Move to drafts - [ ] Table of content: `tableOfContents: true` - [ ] Multi parts series diff --git a/content/posts/local-llm-inference-1.md b/content/posts/local-llm-inference-1.md index 7e1db3e..33039f7 100644 --- a/content/posts/local-llm-inference-1.md +++ b/content/posts/local-llm-inference-1.md @@ -85,7 +85,8 @@ There are a few axis I want to experiment inference speed against: And of course an agentic coding scenario. -## LLM usage - -- Parsing logs and create markdown tables +{{< alert info "LLM usage in this article" >}} +- Parsing logs and creating markdown tables +- Generating charts - Acting as Publisher +{{< /alert >}} diff --git a/layouts/shortcodes/alert.html b/layouts/shortcodes/alert.html index b980b41..bb07868 100644 --- a/layouts/shortcodes/alert.html +++ b/layouts/shortcodes/alert.html @@ -2,72 +2,25 @@ {{ $title := .Get 1 }}
- {{ if $title }} -

{{ $title }}

- {{ end }} -

+

{{ if eq $severity "info" }} - - + + {{ else if eq $severity "warning" }} - - + + {{ else if eq $severity "error" }} - - + + {{ else if eq $severity "success" }} - - + + - {{ end }} - {{.Inner}} -

+ {{ if $title }}{{ $title }}{{ end }} +

+
{{.Inner | markdownify}}
-- cgit v1.3