diff --git a/articles.example/2026-01-01/atom.png b/articles.example/2026-01-01/atom.png new file mode 100644 index 0000000..8210eec Binary files /dev/null and b/articles.example/2026-01-01/atom.png differ diff --git a/articles.example/2026-01-01/index.md b/articles.example/2026-01-01/index.md new file mode 100644 index 0000000..191cb44 --- /dev/null +++ b/articles.example/2026-01-01/index.md @@ -0,0 +1,40 @@ +--- +title: Demo +author: kleπek +draft: false +thumbnail: ./thumbnail.jpg +date: 2026-01-01 +--- + +## Images + +PNG: ![png file](./atom.png) + +## highlight.js + +```typescript +function test(arg1: string, arg2: number): string { + return `${arg1}: ${arg2}` +} +``` + +```text +text/plain +``` + +## Mermaid + +```mermaid +flowchart LR + A --> B +``` + +## LaTex + +$$\Large\color{Red}{\frac{\Delta K}{2}=\frac{T_{2}}{x_{2}(x_{2}-x_{1})}-\frac{T_{1}}{x_{1}(x_{2}-x_{1})}}$$ + +Inline LaTex $$\frac{\Delta K}{2}$$ in text + +## Lucide Icons + +Icon inside text diff --git a/articles.example/config.json b/articles.example/config.json new file mode 100644 index 0000000..ea62d4d --- /dev/null +++ b/articles.example/config.json @@ -0,0 +1,10 @@ +{ + "base_url": "http://localhost/", + "title": " My Blog", + "signature": "By Me", + "lang": "en", + "custom_head": "", + "rss_link": " RSS", + "back_link": " Back to home", + "copyright": "CC BY-NC" +} \ No newline at end of file diff --git a/articles.example/style.scss b/articles.example/style.scss new file mode 100644 index 0000000..447f687 --- /dev/null +++ b/articles.example/style.scss @@ -0,0 +1,191 @@ +/* +================================================= +https://www.joshwcomeau.com/css/custom-css-reset/ +================================================= +*/ + +/* + 1. Use a more-intuitive box-sizing model. +*/ +*, +*::before, +*::after { + box-sizing: border-box; +} +/* + 2. Remove default margin + */ +* { + margin: 0; +} +/* + 3. Allow percentage-based heights in the application + */ +html, +body, div#app { + height: 100%; +} +/* + Typographic tweaks! + 4. Add accessible line-height + 5. Improve text rendering + */ +body { + line-height: 1.5; + -webkit-font-smoothing: antialiased; +} +/* + 6. Improve media defaults + */ +img, +picture, +video, +canvas, +svg { + display: block; + max-width: 100%; +} +/* + 7. Remove built-in form typography styles + */ +input, +button, +textarea, +select { + font: inherit; +} +/* + 8. Avoid text overflows + */ +p, +h1, +h2, +h3, +h4, +h5, +h6 { + overflow-wrap: break-word; +} +/* + 9. Create a root stacking context + */ +#root, +#__next { + isolation: isolate; +} + +/* +================================================= +https://blog.koley.in/2019/339-bytes-of-responsive-css +https://www.swyx.io/css-100-bytes +https://gist.github.com/JoeyBurzynski/617fb6201335779f8424ad9528b72c41 +================================================= +*/ + +html, +body { + padding: 0; + max-width: 100%; + color: #222; + font-family: Verdana, serif; +} + +body { + background-color: #eee; +} + +main { + padding: 1.5rem; + margin: auto; + background-color: #ccc; + min-height: 100%; +} + +table { + border-collapse: collapse; + width: 100%; + font-size: 0.9em; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + margin: 1em 0 0.5em; +} + +p, +ul, +ol, +pre, +img, +blockquote, +details { + margin-bottom: 1em; + color: #444; +} + +hr { + opacity: 25%; + border-bottom: 0; + margin-bottom: 0.5em; +} + +textarea, +input, +select, +pre, +.mono { + font-family: monospace; +} + +@media only screen and (min-width: 768px) { + main { + max-width: 42rem; + } + table { + font-size: inherit; + } +} + +/* + * MD BLOG + */ + +nav { + display: flex; + align-items: flex-end; +} + +.home nav { + margin-bottom: 1em; + vertical-align: text-bottom; +} + +.home .nav-title { + font-size: xx-large; +} + +nav .nav-title { + font-size: larger; + font-weight: bold; + color: inherit; + display: inline-block; + flex-grow: 1; +} + +nav .nav-items { + display: flex; +} + +.article-published { + font-style: italic; +} + +.link-home { + text-decoration: none; + float: right; + line-height: 2.4; +}