Skip to content

Commit 486f93f

Browse files
committed
update : update readme
1 parent 81f0385 commit 486f93f

8 files changed

+425
-9
lines changed

README.md

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,49 @@
1-
# sookim blog
2-
This repository contains a static website for my blog, built with Ignite. It showcases my skills and experience in a user-friendly format.
1+
![create_post](https://github.com/sookim-1/k-swift-ignite-blog/actions/workflows/create_post.yml/badge.svg)
2+
![build-and-deploy](https://github.com/sookim-1/k-swift-ignite-blog/actions/workflows/build-and-deploy.yml/badge.svg)
3+
4+
## k-swift-ignite-blog 설명
5+
6+
해당 저장소는 Swift 언어로 Static Website를 편리하게 작성하도록 도와주는 [Ignite](https://github.com/twostraws/Ignite)라이브러리를 사용했습니다.
7+
8+
개인용도로 매주 개발과 관련된 내용을 회고느낌으로 작성한 블로그배포 저장소입니다.
9+
10+
> 예시
11+
12+
![sample_website_capture](./docs/sample_website_capture.png)
13+
14+
- 실제 구현된 웹사이트를 확인 👉 [sookim-1 주간회고록](https://sookim-1.github.io/)
15+
- 자세한 개발 경험 확인 👉 [Ignite로 T.W.L 블로그 마이그레이션 및 오픈소스 기여 후기](./docs/Ignite로 T.W.L 블로그 마이그레이션 및 오픈소스 기여 후기.md)
16+
17+
## 커스텀 방법
18+
19+
해당 저장소를 활용하여 개인 T.W.L 블로그를 구축할 수 있습니다.
20+
21+
1. 해당 저장소 를 fork 합니다.
22+
2. `Content` 폴더에 마크다운 문서를 추가합니다.
23+
3. `Global.swift` 에서 변수들을 알맞는 값으로 변경합니다.
24+
25+
> 게시글 마크다운 형식 예시
26+
27+
```markdown
28+
---
29+
author: sookim-1
30+
description: Ignite 마이그레이션
31+
date: 2025-01-01 23:00
32+
tags: iOS, Swift
33+
published: true
34+
---
35+
# 번호 : 001, 작성일자: 2025-01-01
36+
```
37+
38+
## 워크플로 실행 방법
39+
40+
### 깃허브 페이지 자동 배포 워크플로
41+
1. [Content](./Content) 폴더에 마크다운문서를 추가합니다.
42+
2. 추가한 후 main브랜치에 Merge되면 [build-and-deploy.yml](./.github/workflows/build-and-deploy.yml) 워크플로가 동작합니다.
43+
3. 워크플로가 통과되면 userName.github.io 원격저장소에 배포됩니다.
44+
45+
### 문서 작성 워크플로
46+
1. [create_post.yml](./.github/workflows/create_post.yml) 워크플로를 동작합니다.
47+
2. 문서번호, 작성일자, 회고 시작일, 회고 종료일을 입력받아서 문서를 작성하여 PR이 진행됩니다.
48+
3. 문서내용을 수정하여 PR을 Merge하면 위의 블로그 배포방법 순서로 배포됩니다.
49+

Sources/Components/SocialFooter.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ public struct SocialFooter: Component {
1616
]
1717

1818
let urlStrings = [
19-
"https://github.com/sookim-1",
20-
"https://www.linkedin.com/in/sookim1",
21-
"https://sookim-1.medium.com"
19+
githubAddress,
20+
linkedInAddress,
21+
blogAddress
2222
]
2323

2424
public func body(context: PublishingContext) -> [any PageElement] {

Sources/Global.swift

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import Foundation
2+
3+
// mailto:<your_email>@gmail.com
4+
let gmailAddress = "mailto:[email protected]"
5+
6+
// https://www.linkedin.com/in/<your_linkedin>
7+
let linkedInAddress = "https://www.linkedin.com/in/soohwan-kim-80250623a/"
8+
9+
let blogAddress = "https://sookim-1.tistory.com/"
10+
11+
// <your_github_name>
12+
let githubProfileName = "sookim-1"
13+
14+
// https://github.com/<your_github_name>
15+
let githubAddress = "https://github.com/\(githubProfileName)"
16+
17+
// https://<your_github_name>.github.io
18+
let githubPagesAddress = "https://\(githubProfileName).github.io"
19+
20+
// <your_github_name>/<your_github_name>.github.io
21+
let githubDeployAddress = "\(githubProfileName)/\(githubProfileName).github.io"

Sources/Site.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ struct IgniteWebsite {
1515
}
1616

1717
struct SookimSite: Site {
18-
var name = "sookim-1"
18+
var name = githubProfileName
1919
var titleSuffix = " – My T.W.L Site"
20-
var url = URL(string: "https://sookim-1.github.io")!
20+
var url = URL(string: githubPagesAddress)!
2121
var builtInIconsEnabled = true
2222

23-
var author = "sookim-1"
23+
var author = githubProfileName
2424

2525
var homePage = Home()
2626
var theme = MyTheme()
2727
var tagPage = Tags()
2828
var favicon = URL(string: "/images/favicon.png")
29-
var feedConfiguration = FeedConfiguration(mode: .full, contentCount: 20, image: .init(url: "https://sookim-1.github.io/images/favicon.png", width: 32, height: 32))
29+
var feedConfiguration = FeedConfiguration(mode: .full, contentCount: 20, image: .init(url: "\(githubPagesAddress)/images/favicon.png", width: 32, height: 32))
3030

3131
var pages: [any StaticPage] {
3232
Home()

0 commit comments

Comments
 (0)