Skip to content

Commit

Permalink
Change font
Browse files Browse the repository at this point in the history
  • Loading branch information
QubitPi committed Aug 20, 2024
1 parent 69b0ac4 commit 8aa83c8
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ A static blog template built with [Astro](https://astro.build).
- [x] [庞中华行楷 for Chinese](https://www.fonts101.com/fonts/view/Script/62094/US_Declaration) ([example post](https://leadership.qubitpi.org/posts/%E5%AD%99%E5%AD%90%E5%85%B5%E6%B3%95%E8%AE%A1%E7%AF%87%E7%AC%AC%E4%B8%80/))
- [x] [DX Red Mailbox Bold for Korean](https://www.fonts101.com/fonts/view/Script/62094/US_Declaration) ([example post](https://leadership.qubitpi.org/posts/%EB%82%98%EC%9D%98-%EC%95%84%EC%A0%80%EC%94%A8/))
- [x] [US Declaration](https://www.fonts101.com/fonts/view/Script/62094/US_Declaration) ([example post](https://leadership.qubitpi.org/posts/declaration-of-independence/))
- [x] [Blackletter for Latin Manuscript](https://www.fontsquirrel.com/fonts/chomsky) ([example post](https://leadership.qubitpi.org/posts/pro-lege-manilia/))
- [x] [Latin font](https://fontesk.com/sweynheim-pannartz-font/) ([example post](https://leadership.qubitpi.org/posts/pro-lege-manilia/))
- [x] [GFS Porson for Ancient Greek](https://www.oocities.org/greekfonts/) ([example post](https://leadership.qubitpi.org/posts/reading-notes-de-administrando-imperio/))

> [!NOTE]
Expand Down
Binary file added public/fonts/SweynheimPannartz.otf
Binary file not shown.
2 changes: 1 addition & 1 deletion src/components/PostCard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const { remarkPluginFrontmatter } = await entry.render()
const fontSwitch = {
'font-USDeclaration': entry.data.font == 'USDeclaration',
'font-Chomsky': entry.data.font == 'Chomsky',
'font-SweynheimPannartz': entry.data.font == 'SweynheimPannartz',
'font-PangZhonghuaXingKai': entry.data.font == 'PangZhonghuaXingKai',
'font-DXRedMailboxBold': entry.data.font == 'DXRedMailboxBold',
'font-Porson': entry.data.font == 'Porson',
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/pro-lege-manilia/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ image: cover.png
tags: [Public Speech]
category: Latin
draft: false
font: Chomsky
font: SweynheimPannartz
---

Quamquam mihi semper frequens conspectus vester multo iucundissimus, hic autem locus ad agendum amplissimus, ad dicendum
Expand Down
2 changes: 1 addition & 1 deletion src/pages/posts/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const { Content } = await entry.render()
const fontSwitch = {
'font-USDeclaration': entry.data.font == 'USDeclaration',
'font-Chomsky': entry.data.font == 'Chomsky',
'font-SweynheimPannartz': entry.data.font == 'SweynheimPannartz',
'font-PangZhonghuaXingKai': entry.data.font == 'PangZhonghuaXingKai',
'font-DXRedMailboxBold': entry.data.font == 'DXRedMailboxBold',
'font-Porson': entry.data.font == 'Porson',
Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
fontFamily: {
sans: ["Ubuntu", "sans-serif", ...defaultTheme.fontFamily.sans],
Ubuntu: ["Ubuntu", "sans-serif", ...defaultTheme.fontFamily.sans],
Chomsky: ["Chomsky"],
SweynheimPannartz: ["SweynheimPannartz"],
PangZhonghuaXingKai: ["PangZhonghuaXingKai"],
DXRedMailboxBold: ["DXRedMailboxBold", "DXRedMailboxBold", "DXRedMailboxBold"],
Porson: ["Porson"],
Expand Down

0 comments on commit 8aa83c8

Please sign in to comment.