From dd3612c90c4f05f2eb17f1ff3e3bf0834da4b22c Mon Sep 17 00:00:00 2001 From: Quinton Miller Date: Mon, 6 Nov 2023 20:45:23 +0800 Subject: [PATCH] move `book-authors` into a component --- _includes/components/book-authors.html | 12 +++++++ _pages/learning/crystal_programming.html | 42 +++++++++-------------- _style_guide/components/book-authors.html | 16 +++++++++ _style_guide/elements/hex-icon.md | 1 + 4 files changed, 45 insertions(+), 26 deletions(-) create mode 100644 _includes/components/book-authors.html create mode 100644 _style_guide/components/book-authors.html diff --git a/_includes/components/book-authors.html b/_includes/components/book-authors.html new file mode 100644 index 00000000..68fdbd0b --- /dev/null +++ b/_includes/components/book-authors.html @@ -0,0 +1,12 @@ +
+ {% for author in include.authors %} +
+
+ +
+

+ {{ author.description }} +

+
+ {% endfor %} +
diff --git a/_pages/learning/crystal_programming.html b/_pages/learning/crystal_programming.html index b5bf7508..eacdee52 100644 --- a/_pages/learning/crystal_programming.html +++ b/_pages/learning/crystal_programming.html @@ -1,6 +1,20 @@ --- title: "Building efficient, safe, and readable web and CLI applications with Crystal" layout: wide + +authors: +- image: /assets/learning/george.png + description: | + George Dietrich is a software engineer, open-source aficionado, and Crystal community moderator. He + holds a Master of Science degree in internet information systems and a Bachelor of Science degree in + information sciences. +- image: /assets/learning/guilherme.jpg + description: | + Guilherme Bernal is the chief technology officer at Cubos Tecnologia. He holds a bachelor's + degree in TI management. Guilherme co-founded a software development company + and several tech start-ups, including one that focused on teaching programming + skills to a new generation of developers. He is also a two-time world finalist + in the coding competition, ACM ICPC. ---
@@ -66,32 +80,8 @@
-

About the Authors

-
-
-
- -
-

- George Dietrich is a software engineer, open-source aficionado, and Crystal community moderator. He - holds a Master of Science degree in internet information systems and a Bachelor of Science degree in - information sciences. -

-
- -
-
- -
-

- Guilherme Bernal is the chief technology officer at Cubos Tecnologia. He holds a bachelor's - degree in TI management. Guilherme co-founded a software development company - and several tech start-ups, including one that focused on teaching programming - skills to a new generation of developers. He is also a two-time world finalist - in the coding competition, ACM ICPC. -

-
-
+

About the Authors

+ {% include components/book-authors.html authors=page.authors %}