diff --git a/README.md b/README.md new file mode 100644 index 0000000..00b49ac --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +# Digital Garden + +A digital garden is a collection of notes, essays, and other content that is continuously updated and interconnected. +It is a way to share knowledge and ideas in a more organic and evolving manner compared to traditional blogs or websites. diff --git a/_assets/stylesheets/application.css b/_assets/stylesheets/application.css index 356ecfd..01b8c3e 100644 --- a/_assets/stylesheets/application.css +++ b/_assets/stylesheets/application.css @@ -3,8 +3,8 @@ @tailwind utilities; :root { - --font-serif: "Merriweather", serif; - --font-sans: "Mulish", sans-serif; + --font-serif: "Merriweather", Georgia, serif; + --font-sans: "Mulish", --apple-system, Helvetica, Arial, sans-serif; } body { @@ -19,6 +19,14 @@ h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif), serif; } +.font-serif { + font-family: var(--font-serif), serif; +} + +.font-sans { + font-family: var(--font-sans), sans-serif; +} + .boundary { @apply w-full p-10; } diff --git a/_config.yml b/_config.yml index 2fe484e..38f3261 100644 --- a/_config.yml +++ b/_config.yml @@ -8,7 +8,7 @@ baseurl: "" permalink: /:title/ # the name of your site, e.g. ACME Corp. -title: "Yaodong Zhao" +title: "yaodong.dev" plugins: - jekyll-feed @@ -22,3 +22,6 @@ exclude: - postcss.config.js - tailwind.config.js - tsconfig.json + - README.md + - .idea + - .github diff --git a/_includes/fonts.html b/_includes/head.html similarity index 78% rename from _includes/fonts.html rename to _includes/head.html index f0341fa..175fbe5 100644 --- a/_includes/fonts.html +++ b/_includes/head.html @@ -1,3 +1,4 @@ + diff --git a/_includes/header.html b/_includes/header.html deleted file mode 100644 index 447b433..0000000 --- a/_includes/header.html +++ /dev/null @@ -1,13 +0,0 @@ -
-
- - - - - {{ site.title }} -
-
About
-
diff --git a/_includes/navigation.html b/_includes/navigation.html new file mode 100644 index 0000000..abc5eaf --- /dev/null +++ b/_includes/navigation.html @@ -0,0 +1,16 @@ +
+
+ + + + + + + + + {{ site.title }} +
+
About
+
diff --git a/_includes/post-icon.html b/_includes/post-stage.html similarity index 85% rename from _includes/post-icon.html rename to _includes/post-stage.html index 69e0575..9b24a4b 100644 --- a/_includes/post-icon.html +++ b/_includes/post-stage.html @@ -1,6 +1,6 @@ {% if include.stage == "seedlings" %} @@ -10,7 +10,7 @@ {% elsif include.stage == "budding" %} @@ -21,7 +21,7 @@ {% elsif include.stage == "evergreen" %} @@ -30,7 +30,7 @@ {% else %} diff --git a/_layouts/default.html b/_layouts/default.html index bd875fe..c4fd246 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -1,16 +1,17 @@ - - - - - {{ page.title }} - {% include fonts.html %} - - - -
- {% include header.html %} - {{ content }} -
- + + + + + {{ page.title }} + {% include head.html %} + + +
+ {% include navigation.html %} +
+
+ {{ content }} +
+ diff --git a/_layouts/post.html b/_layouts/post.html index 77aff85..f7c4cc1 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -2,18 +2,31 @@ layout: default --- -
+
-
-

{{ page.title }}

-
- Planted on {{ page.created_date | date_to_string }}{% if page.updated_date %}, Last tended on {{ page.updated_date | date_to_string }}{% endif %} +
+ +
+
+ {% include post-stage.html stage=page.stage %} + {{ page.stage | upcase }} +
+
+

{{ page.title }}

+
+
+
+
+

Planted on {{ page.created_date | date_to_string }}

+ {% if page.updated_date %}

Last tended on {{ page.updated_date | date_to_string }}

{% endif %} +
+
-
-
- {{content}} -
+
+ {{content}} +
-
+
+
diff --git a/_posts/2024-01-28-the-self-and-singleton-class-in-ruby.md b/_posts/2024-01-28-the-self-and-singleton-class-in-ruby.md index 3f26879..b862f5b 100644 --- a/_posts/2024-01-28-the-self-and-singleton-class-in-ruby.md +++ b/_posts/2024-01-28-the-self-and-singleton-class-in-ruby.md @@ -1,7 +1,7 @@ --- layout: post category: notes -stage: seedlings +stage: evergreen title: The self and singleton class in Ruby created_date: 2024-01-28 updated_date: 2024-08-06 diff --git a/index.html b/index.html index d9a799e..d3e063a 100644 --- a/index.html +++ b/index.html @@ -3,29 +3,24 @@ title: Yaodong Zhao --- -
-
-

+
+
+

Notes

Loose, unopinionated notes on things.

-
- {% assign posts = site.posts | where: "category", "notes" | sort: "updated_date" | reverse | slice: 0, 10 %} - {% for post in posts %} -
-
- {% include post-icon.html stage=post.stage %} - {{ post.title }} -
-
- {{ post.excerpt }} -
-
- Read more -
+ {% assign posts = site.posts | where: "category", "notes" | sort: "updated_date" | reverse | slice: 0, 10 %} + {% for post in posts %} +
+
+ {% include post-stage.html stage=post.stage %} +

{{ post.title }}

- {% endfor %} -
+
+ {{ post.excerpt }} +
+
+ {% endfor %}