-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblog.qmd
57 lines (46 loc) · 1.53 KB
/
blog.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
---
title: "포스트"
listing:
type: default
fields: [image, title, description, reading-time, categories, date]
page-size: 6
feed: true
contents: posts
sort-ui: false
filter-ui: false
sort: "date desc"
categories: true
page-layout: full
title-block-banner: false
comments: false
---
```{r write-redirects}
#| echo: false
#| warning: false
# list names of post folders,
# adapted from Dr. Danielle Navarro,
# a legit Data Witch
# https://blog.djnavarro.net/porting-to-quarto/#netlify-redirects
posts <- list.dirs(
path = here::here("posts"),
full.names = FALSE,
recursive = FALSE
)
# extract the slugs
slugs <- stringr::str_remove(posts, "\\d{4}-\\d{2}-\\d{2}-(?!\\d)")
# lines to insert to a netlify _redirect file
redirects <- paste0("/", slugs, " ", "/posts/", posts)
# write the _redirect file
writeLines(redirects, here::here("_site", "_redirects"))
```
:::: {.columns}
::: {.column width="50%"}
새 글이 발행되면 알려드려요.
<iframe src="https://embeds.beehiiv.com/312bf770-2ddc-411b-b3b9-92b811774acc?slim=true" data-test-id="beehiiv-embed" height="52" frameborder="0" scrolling="no" style="margin: 0; border-radius: 0px !important; background-color: transparent;"></iframe>
:::
::: {.column width="50%"}
포스팅을 독려해주실 수 있어요.
<a href="https://www.buymeacoffee.com/taemobang"><img src="https://img.buymeacoffee.com/button-api/?text=Buy me a coffee&emoji=&slug=taemobang&button_colour=40DCA5&font_colour=ffffff&font_family=Comic&outline_colour=000000&coffee_colour=FFDD00" /></a>
:::
::::
<br>