Skip to content

Commit

Permalink
Customization
Browse files Browse the repository at this point in the history
  • Loading branch information
QubitPi committed Oct 2, 2024
1 parent 69b0ac4 commit e0f1f55
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 5 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ 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://www.1001fonts.com/sweynheim-pannartz-font.html)[^1] ([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/))

[^1]: https://ilovetypography.com/2016/04/18/the-first-roman-fonts/

> [!NOTE]
>
> I was actually going to pick up the [ZephGreek](https://www.loebclassics.com/page/logo) but realized that the
Expand Down
Binary file removed public/fonts/Chomsky.otf
Binary file not shown.
Binary file removed public/fonts/Chomsky.ttf
Binary file not shown.
Binary file added public/fonts/SweynheimPannartz.ttf
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
Binary file added src/content/posts/greyhound/cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions src/content/posts/greyhound/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: Leadership Lessons from "Greyhound"
published: 2024-08-30
description: Leadership is about genuinely loving something big beyond leader's work with a sense of perfectionism
image: cover.png
tags: [Leadership]
category: English
draft: false
---

<iframe width="100%" height="468" src="https://www.youtube.com/embed/Uz1LdWuwcps?si=U-eowJrtswb4leXY" title="Greyhound Finale battle" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>

Leader doesn't sit on top and overseas but instead is very knowledgeable and sharp at every aspect of the team work.
There was a scene in the movie when two torpedoes were fired approaching the destroyer Captain Krause was on. Within a
flash of seconds, he ordered the proceeding course of direction of the ship which eventually have both torpedoes missed
the destroyer successfully. Captain Krause was indeed a master of his work instead of being a boss who simply sends out
paycheck to his subordinates and had himself sitting in a couch and enjoy champaign every day.
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
10 changes: 9 additions & 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 Expand Up @@ -176,4 +176,12 @@ const jsonLd = {
font-style: normal;
font-display: swap;
}

@font-face {
font-family: 'SweynheimPannartz';
src: url('/fonts/SweynheimPannartz.ttf') format('truetype');
font-weight: normal;
font-style: normal;
font-display: swap;
}
</style>
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", "SweynheimPannartz", "SweynheimPannartz"],
PangZhonghuaXingKai: ["PangZhonghuaXingKai"],
DXRedMailboxBold: ["DXRedMailboxBold", "DXRedMailboxBold", "DXRedMailboxBold"],
Porson: ["Porson"],
Expand Down

0 comments on commit e0f1f55

Please sign in to comment.