Skip to content

Commit 8342d9c

Browse files
committed
deploy: 093ec0b
1 parent a3e0fcc commit 8342d9c

File tree

2 files changed

+279
-0
lines changed

2 files changed

+279
-0
lines changed

post/markdown_example.md

Lines changed: 233 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,233 @@
1+
---
2+
title: 예제 마크다운 Test...!
3+
date: 2024-08-14
4+
category: Test
5+
tag: Example
6+
slug: example_markdown
7+
---
8+
9+
# h1 Heading 8-)
10+
11+
## h2 Heading
12+
13+
### h3 Heading
14+
15+
#### h4 Heading
16+
17+
##### h5 Heading
18+
19+
###### h6 Heading
20+
21+
## Horizontal Rules
22+
23+
---
24+
25+
---
26+
27+
---
28+
29+
![iconhabit](../project_images/iconhabit-ios-screenshot-1.png)
30+
31+
![Image](../assets/post_images/tutorial1_light.png)
32+
33+
## Typographic replacements
34+
35+
Enable typographer option to see result.
36+
37+
(c) (C) (r) (R) (tm) (TM) (p) (P) +-
38+
39+
test.. test... test..... test?..... test!....
40+
41+
!!!!!! ???? ,, -- ---
42+
43+
"Smartypants, double quotes" and 'single quotes'
44+
45+
## Emphasis
46+
47+
**This is bold text**
48+
49+
**This is bold text**
50+
51+
_This is italic text_
52+
53+
_This is italic text_
54+
55+
~~Strikethrough~~
56+
57+
## Blockquotes
58+
59+
> Blockquotes can also be nested...
60+
>
61+
> > ...by using additional greater-than signs right next to each other...
62+
> >
63+
> > > ...or with spaces between arrows.
64+
65+
## Lists
66+
67+
Unordered
68+
69+
- Create a list by starting a line with `+`, `-`, or `*`
70+
- Sub-lists are made by indenting 2 spaces:
71+
- Marker character change forces new list start:
72+
- Ac tristique libero volutpat at
73+
* Facilisis in pretium nisl aliquet
74+
- Nulla volutpat aliquam velit
75+
- Very easy!
76+
77+
Ordered
78+
79+
1. Lorem ipsum dolor sit amet
80+
2. Consectetur adipiscing elit
81+
3. Integer molestie lorem at massa
82+
83+
4. You can use sequential numbers...
84+
5. ...or keep all the numbers as `1.`
85+
86+
Start numbering with offset:
87+
88+
57. foo
89+
1. bar
90+
91+
## Code
92+
93+
Inline `code`
94+
95+
Indented code
96+
97+
// Some comments
98+
line 1 of code
99+
line 2 of code
100+
line 3 of code
101+
102+
Block code "fences"
103+
104+
```
105+
Sample text here...
106+
```
107+
108+
Syntax highlighting
109+
110+
```js
111+
var foo = function (bar) {
112+
return bar++;
113+
};
114+
115+
console.log(foo(5));
116+
```
117+
118+
## Tables
119+
120+
| Option | Description |
121+
| ------ | ------------------------------------------------------------------------- |
122+
| data | path to data files to supply the data that will be passed into templates. |
123+
| engine | engine to be used for processing templates. Handlebars is the default. |
124+
| ext | extension to be used for dest files. |
125+
126+
Right aligned columns
127+
128+
| Option | Description |
129+
| -----: | ------------------------------------------------------------------------: |
130+
| data | path to data files to supply the data that will be passed into templates. |
131+
| engine | engine to be used for processing templates. Handlebars is the default. |
132+
| ext | extension to be used for dest files. |
133+
134+
## Links
135+
136+
[link text](http://dev.nodeca.com)
137+
138+
[link with title](http://nodeca.github.io/pica/demo/ "title text!")
139+
140+
Autoconverted link https://github.com/nodeca/pica (enable linkify to see)
141+
142+
## Images
143+
144+
![Minion](https://octodex.github.com/images/minion.png)
145+
![Stormtroopocat](https://octodex.github.com/images/stormtroopocat.jpg "The Stormtroopocat")
146+
147+
Like links, Images also have a footnote style syntax
148+
149+
![Alt text][id]
150+
151+
With a reference later in the document defining the URL location:
152+
153+
[id]: https://octodex.github.com/images/dojocat.jpg "The Dojocat"
154+
155+
## Plugins
156+
157+
The killer feature of `markdown-it` is very effective support of
158+
[syntax plugins](https://www.npmjs.org/browse/keyword/markdown-it-plugin).
159+
160+
### [Emojies](https://github.com/markdown-it/markdown-it-emoji)
161+
162+
> Classic markup: :wink: :cry: :laughing: :yum:
163+
>
164+
> Shortcuts (emoticons): :-) :-( 8-) ;)
165+
166+
see [how to change output](https://github.com/markdown-it/markdown-it-emoji#change-output) with twemoji.
167+
168+
### [Subscript](https://github.com/markdown-it/markdown-it-sub) / [Superscript](https://github.com/markdown-it/markdown-it-sup)
169+
170+
- 19^th^
171+
- H~2~O
172+
173+
### [\<ins>](https://github.com/markdown-it/markdown-it-ins)
174+
175+
++Inserted text++
176+
177+
### [\<mark>](https://github.com/markdown-it/markdown-it-mark)
178+
179+
==Marked text==
180+
181+
### [Footnotes](https://github.com/markdown-it/markdown-it-footnote)
182+
183+
Footnote 1 link[^first].
184+
185+
Footnote 2 link[^second].
186+
187+
Inline footnote^[Text of inline footnote] definition.
188+
189+
Duplicated footnote reference[^second].
190+
191+
[^first]: Footnote **can have markup**
192+
193+
and multiple paragraphs.
194+
195+
[^second]: Footnote text.
196+
197+
### [Definition lists](https://github.com/markdown-it/markdown-it-deflist)
198+
199+
Term 1
200+
201+
: Definition 1
202+
with lazy continuation.
203+
204+
Term 2 with _inline markup_
205+
206+
: Definition 2
207+
208+
{ some code, part of Definition 2 }
209+
210+
Third paragraph of definition 2.
211+
212+
_Compact style:_
213+
214+
Term 1
215+
~ Definition 1
216+
217+
Term 2
218+
~ Definition 2a
219+
~ Definition 2b
220+
221+
### [Abbreviations](https://github.com/markdown-it/markdown-it-abbr)
222+
223+
This is HTML abbreviation example.
224+
225+
It converts "HTML", but keep intact partial entries like "xxxHTMLyyy" and so on.
226+
227+
\*[HTML]: Hyper Text Markup Language
228+
229+
### [Custom containers](https://github.com/markdown-it/markdown-it-container)
230+
231+
::: warning
232+
_here be dragons_
233+
:::

post/til_250915.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
title: TIL Flutter Web에서 라우터와 슬러그
3+
date: 2025-09-15
4+
category: Flutter
5+
tag: TIL
6+
slug: til_250915
7+
---
8+
9+
## TIL – Flutter Web에서 라우터와 슬러그 이해하기
10+
11+
### 1. 왜 라우터 패키지가 필요할까?
12+
13+
Flutter Web은 브라우저 위에서 실행되기 때문에, 주소창의 URL이 곧 사용자가 접근하는 경로가 됩니다.
14+
15+
하지만 단순히 Navigator만 사용하면 주소창이 `/`에 고정되고, 새로고침이나 북마크, 직접 URL 입력 시 원하는 페이지로 이동하지 못합니다.
16+
17+
👉 그래서 go_router 같은 라우터 패키지가 필요합니다.
18+
19+
- URL 경로(/about, /posts/slug)와 위젯을 쉽게 매핑
20+
21+
- 브라우저의 뒤로/앞으로 버튼, 새로고침, 직접 URL 입력을 모두 자연스럽게 지원
22+
23+
- 공유 가능한 URL을 통해 웹다운 사용자 경험 제공
24+
25+
### 2. 슬러그(Slug)란?
26+
27+
현재 제 블로그 포스트들은 스택 구조 없이 slug를 기반으로 표시되고 있습니다.
28+
29+
Slug는 블로그 글이나 페이지를 구분하는 고유 문자열 ID입니다.
30+
31+
주로 URL에 포함되어 사람이 읽기 좋은 형태로 작성됩니다.
32+
33+
예시:
34+
35+
`https://ph-value.github.io/posts/til_250915`
36+
37+
여기서 `til_250925` 이 slug입니다.
38+
39+
- Slug를 쓰면 DB의 숫자 ID 대신 의미 있는 URL을 만들 수 있어,
40+
사용자가 기억하기 쉽고 SEO에도 유리합니다.
41+
42+
### 3. 정리
43+
44+
- Flutter Web에서는 URL이 앱의 라우팅과 직결되므로 라우터 패키지가 사실상 필수
45+
46+
- 슬러그는 각 콘텐츠를 식별하는 짧고 읽기 좋은 고유 문자열로, 블로그나 CMS에서 흔히 사용됨

0 commit comments

Comments
 (0)