Skip to content

Commit

Permalink
Fix Education layout and fonts configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo1003 committed Oct 17, 2023
1 parent ec4bce9 commit b08c28b
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 30 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ jobs:
- uses: actions/checkout@v3
- name: Install Roboto fonts
run: sudo apt install -y fonts-roboto
- name: Install Source Han Sans TW fonts
- name: Install Source Sans & Source Han Sans TW fonts
run: |
curl -sL -o SourceSans.zip https://github.com/adobe-fonts/source-sans/releases/download/3.052R/OTF-source-sans-3.052R.zip
curl -sL -o SourceHanSansTW.zip https://github.com/adobe-fonts/source-han-sans/releases/latest/download/SourceHanSansTW.zip
unzip -d SourceSans SourceSans.zip
unzip -d SourceHanSansTW SourceHanSansTW.zip
cp SourceSans/OTF/*.otf /usr/share/fonts/
cp SourceHanSansTW/SubsetOTF/TW/*.otf /usr/share/fonts/
fc-cache -fv
- name: Setup Typst
Expand Down
44 changes: 22 additions & 22 deletions resume.typ
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,27 @@
)

#let sidebar_content = [
#resume_section("Education")
#education_item[
National Yang Ming Chiao Tung University
][
Institute of Computer Science and Engineering
][
Master of Science
][
Aug. 2022 - Now
]

#education_item[
National Yang Ming Chiao Tung University
][
Department of Computer Science
][
Bachelor of Science
][
Aug. 2018 - Jul. 2022
]

#resume_section("Skills")
#skill_item(
"Programming Language",
Expand All @@ -23,9 +44,9 @@
strong[C],
strong[Bash],
"C++",
"C#",
"Python",
"Javascript",
"C#",
"Jsonnet",
)
)
Expand Down Expand Up @@ -97,27 +118,6 @@
- Write Ansible playbook to do CI/CD for complex Nginx configuration files.
]

#resume_section("Education")
#education_item[
National Yang Ming Chiao Tung University
][
Institute of Computer Science and Engineering
][
Master of Science
][
Aug. 2022 - Now
]

#education_item[
National Yang Ming Chiao Tung University
][
Department of Computer Science
][
Bachelor of Science
][
Aug. 2018 - Jul. 2022
]

#resume_section("Personal Project")
#personal_project_item_header(
"rust-osshkeys",
Expand Down
22 changes: 15 additions & 7 deletions template.typ
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#let color_darknight = rgb("#131A28")
#let color_darksky = rgb("#335E99")
#let color_darkgray = rgb("#333333")
#let color_gray = rgb("#555555")

// layout utility
#let justify_align(left_body, right_body) = {
Expand Down Expand Up @@ -42,7 +43,10 @@
)

set text(
font: ("思源黑體 TW"),
font: (
"Source Sans Pro",
"思源黑體 TW",
),
lang: "zh",
size: 11pt,
fill: color_darknight,
Expand Down Expand Up @@ -181,7 +185,7 @@
}

#let resume_time(body) = {
set text(weight: "light", style: "italic", size: 9pt)
set text(weight: "regular", style: "italic", size: 9pt)
body
}

Expand All @@ -195,6 +199,11 @@
body
}

#let resume_department(body) = {
set text(size: 10pt, style: "normal", weight: "medium", fill: color_gray)
body
}

#let resume_location(body) = {
set text(size: 12pt, style: "italic", weight: "light")
body
Expand Down Expand Up @@ -228,11 +237,10 @@
#block[
#resume_organization[#organization]
]
#justify_align[
#resume_degree[#department]
][
#resume_degree[#degree]
]
#resume_department[#department]

#resume_degree[#degree]

#align(right)[
#resume_time[#time_frame]
]
Expand Down

0 comments on commit b08c28b

Please sign in to comment.