From 6ec1881454d4df4763af58ec690e3af7dd642970 Mon Sep 17 00:00:00 2001 From: dennisbrookner Date: Mon, 3 Jun 2024 15:57:59 -0400 Subject: [PATCH 1/2] Give blog a card on the home page --- _config.yml | 2 +- _includes/cards.html | 16 ++++++++++++++++ assets/css/styles.css | 12 +++++++++++- index.md | 2 +- 4 files changed, 29 insertions(+), 3 deletions(-) diff --git a/_config.yml b/_config.yml index f6c3d49..2abcd27 100644 --- a/_config.yml +++ b/_config.yml @@ -3,4 +3,4 @@ title: Reciprocal Space Station plugins: - jekyll-font-awesome-sass -port: 4500 \ No newline at end of file +port: 4501 \ No newline at end of file diff --git a/_includes/cards.html b/_includes/cards.html index 305e8d3..bec6698 100644 --- a/_includes/cards.html +++ b/_includes/cards.html @@ -1,5 +1,21 @@
+
+
+
+

Blog

+

Explanations, elaborations, and more about crystallographic data analysis, written by the 1/astronauts

+
+ +
+
+ {% for card in site.data.packages %}
diff --git a/assets/css/styles.css b/assets/css/styles.css index 2f846fc..4d607f7 100755 --- a/assets/css/styles.css +++ b/assets/css/styles.css @@ -5326,6 +5326,16 @@ fieldset:disabled .btn { padding: 1rem 1rem; } +.blog { + background-color: #b6d3fe ; +} + +.blog-footer { + padding: 0.5rem 1rem; + background-color: #9ec5fe; + border-top: 1px solid rgba(0, 0, 0, 0.125); +} + .card-title { margin-bottom: 0.5rem; } @@ -5360,7 +5370,7 @@ fieldset:disabled .btn { border-top: 1px solid rgba(0, 0, 0, 0.125); } -.card-footer:last-child { +.card-footer:last-child,.blog-footer:last-child { border-radius: 0 0 calc(0.25rem - 1px) calc(0.25rem - 1px); } diff --git a/index.md b/index.md index 258633a..6a26324 100644 --- a/index.md +++ b/index.md @@ -15,7 +15,7 @@ layout: base_page

Reciprocal Space Station

Open source software for exploring reciprocal space

- + View on GitHub
From d7d4d17ede6eb31580d5373dc59f955717984762 Mon Sep 17 00:00:00 2001 From: dennisbrookner Date: Mon, 3 Jun 2024 16:12:10 -0400 Subject: [PATCH 2/2] make blue a little lighter --- assets/css/styles.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/css/styles.css b/assets/css/styles.css index 4d607f7..2b03151 100755 --- a/assets/css/styles.css +++ b/assets/css/styles.css @@ -5327,12 +5327,12 @@ fieldset:disabled .btn { } .blog { - background-color: #b6d3fe ; + background-color: #cbe0fe ; } .blog-footer { padding: 0.5rem 1rem; - background-color: #9ec5fe; + background-color: #c4dbfe; border-top: 1px solid rgba(0, 0, 0, 0.125); }