From 961c0a2966baf9ee271ba7872d8650e3c44e13c5 Mon Sep 17 00:00:00 2001 From: Zachary Billman Date: Wed, 6 Apr 2022 08:11:28 -0400 Subject: [PATCH] Margin note added to my css and an example added to the About Me post. --- assets/css/extended/custom.css | 9 ++++++--- content/posts/about-me.md | 8 +++++++- layouts/shortcodes/marginnote.html | 1 + layouts/shortcodes/sidenote.html | 1 - org/.monolith.org.~undo-tree~ | 6 +++--- org/monolith.org | 8 ++++++-- 6 files changed, 23 insertions(+), 10 deletions(-) create mode 100644 layouts/shortcodes/marginnote.html delete mode 100644 layouts/shortcodes/sidenote.html diff --git a/assets/css/extended/custom.css b/assets/css/extended/custom.css index 99d90eb..88ba9ac 100644 --- a/assets/css/extended/custom.css +++ b/assets/css/extended/custom.css @@ -1,9 +1,11 @@ +.marginnote, .sidenote { font-size: 80%; position: relative; } /* Wide viewport */ -@media (min-width: 960px) { +@media (min-width: 1080px) { + .marginnote, .sidenote { float: right; clear: right; @@ -17,14 +19,15 @@ } /* Narrow viewport */ -@media (max-width: 960px) { +@media (max-width: 1080px) { + .marginnote, .sidenote { float: right; text-align: left; width: 100%; margin: 1rem 0; - padding-left: 15%; + padding-left: 7.5%; } } diff --git a/content/posts/about-me.md b/content/posts/about-me.md index 786345c..0bf442e 100644 --- a/content/posts/about-me.md +++ b/content/posts/about-me.md @@ -8,7 +8,13 @@ weight = 1 ## Welcome to my site! {#welcome-to-my-site} -My name is Zachary Billman. I'm an MD-PhD student at UNC Chapel Hill in Ed Miao's lab. The curious reader may be thinking: "But Zach, Ed Miao's lab is at Duke now! What does that make you?" What an astute question! I am a card-carrying UNC Microbiology and Immunology student who happens to have all of their research take place at Duke. This makes for very interesting basketball viewing parties with my Duke friends! +My name is Zachary Billman. I'm an MD-PhD student at UNC Chapel Hill in Ed Miao's lab. The curious reader may be thinking: "But Zach, Ed Miao's lab is at Duke now! What does that make you?" What an astute question! + +{{% marginnote %}} +This move was quite a trial, especially when compounded with the onset of the pandemic. I suspect my research timeline suffered, though this is an extremely minor inconvenience compared to the tragedy the pandemic caused. +{{% /marginnote %}} + +I am a card-carrying UNC Microbiology and Immunology student who happens to have all of their research take place at Duke. This makes for very interesting basketball viewing parties with my Duke friends! ## My Research and Science Interests. {#my-research-and-science-interests-dot} diff --git a/layouts/shortcodes/marginnote.html b/layouts/shortcodes/marginnote.html new file mode 100644 index 0000000..6f8dac4 --- /dev/null +++ b/layouts/shortcodes/marginnote.html @@ -0,0 +1 @@ +{{ .Inner }} diff --git a/layouts/shortcodes/sidenote.html b/layouts/shortcodes/sidenote.html deleted file mode 100644 index dc09c90..0000000 --- a/layouts/shortcodes/sidenote.html +++ /dev/null @@ -1 +0,0 @@ -{{ .Inner }} diff --git a/org/.monolith.org.~undo-tree~ b/org/.monolith.org.~undo-tree~ index b50187f..8296b7a 100644 --- a/org/.monolith.org.~undo-tree~ +++ b/org/.monolith.org.~undo-tree~ @@ -1,5 +1,5 @@ (undo-tree-save-format-version . 1) -"8d94c5aa59977033275c493b1a04569b0509ab90" -[nil nil nil nil (25164 54527 20256 317000) 0 nil] -([nil current ((1 . 2417) (t . 0)) nil (25164 54527 20252 89000) 0 nil]) +"5d3801edf9228d3774d584262e2731a23ff38fa3" +[nil nil nil nil (25165 33587 477779 459000) 0 nil] +([nil current ((1 . 2687) (t . 0)) nil (25165 33587 477775 191000) 0 nil]) nil diff --git a/org/monolith.org b/org/monolith.org index 90264dd..7fe3bdb 100644 --- a/org/monolith.org +++ b/org/monolith.org @@ -1,6 +1,6 @@ #+HUGO_BASE_DIR: ../ #+AUTHOR: Zachary Billman -#+hugo_paired_shortcodes: %sidenote +#+hugo_paired_shortcodes: %sidenote %marginnote * About me. @@ -11,7 +11,11 @@ :EXPORT_HUGO_CUSTOM_FRONT_MATTER: :weight 1 :END: *** Welcome to my site! -My name is Zachary Billman. I'm an MD-PhD student at UNC Chapel Hill in Ed Miao's lab. The curious reader may be thinking: "But Zach, Ed Miao's lab is at Duke now! What does that make you?" What an astute question! I am a card-carrying UNC Microbiology and Immunology student who happens to have all of their research take place at Duke. This makes for very interesting basketball viewing parties with my Duke friends! +My name is Zachary Billman. I'm an MD-PhD student at UNC Chapel Hill in Ed Miao's lab. The curious reader may be thinking: "But Zach, Ed Miao's lab is at Duke now! What does that make you?" What an astute question! +#+begin_marginnote +This move was quite a trial, especially when compounded with the onset of the pandemic. I suspect my research timeline suffered, though this is an extremely minor inconvenience compared to the tragedy the pandemic caused. +#+end_marginnote +I am a card-carrying UNC Microbiology and Immunology student who happens to have all of their research take place at Duke. This makes for very interesting basketball viewing parties with my Duke friends! *** My Research and Science Interests. I am in the 4th year of my PhD studying the host-pathogen interaction between the intracellular fungus /Histoplasma capsulatum/ and macrophages. There are many unstudied curiosities regarding the innate immune response to /Histoplasma spp./ and other intracellular fungi that I think are quite interesting. *** Hobbies to be found here.