feat: add example articles
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 806 B |
@@ -0,0 +1,40 @@
|
||||
---
|
||||
title: Demo
|
||||
author: kleπek
|
||||
draft: false
|
||||
thumbnail: ./thumbnail.jpg
|
||||
date: 2026-01-01
|
||||
---
|
||||
|
||||
## Images
|
||||
|
||||
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 <i icon="atom"></i> text
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"base_url": "http://localhost/",
|
||||
"title": "<i icon=notepad-text></i> My Blog",
|
||||
"signature": "By <b>Me</b>",
|
||||
"lang": "en",
|
||||
"custom_head": "",
|
||||
"rss_link": "<i icon=rss></i> RSS",
|
||||
"back_link": "<i icon=undo-2></i> Back to home",
|
||||
"copyright": "<a style=\"text-decoration:none;color:inherit;\" target=_blank href=\"https://creativecommons.org/licenses/by-nc/4.0/\">CC BY-NC</a>"
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user