Skip to content

Commit

Permalink
Give blog a card on the home page
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisbrookner committed Jun 3, 2024
1 parent 98535df commit 6ec1881
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ title: Reciprocal Space Station
plugins:
- jekyll-font-awesome-sass

port: 4500
port: 4501
16 changes: 16 additions & 0 deletions _includes/cards.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
<div class="row gx-4 gx-lg-5">

<div class="col-md-4 mb-5">
<div class="card h-100 blog">
<div class="card-body">
<h2 class="card-title">Blog</h2>
<p class="card-text">Explanations, elaborations, and more about crystallographic data analysis, written by the 1/astronauts </p>
</div>
<div class="blog-footer">

<a class="btn btn-primary btn-sm" href="/blog.html" >
See blog posts
</a>

</div>
</div>
</div>

{% for card in site.data.packages %}

<div class="col-md-4 mb-5">
Expand Down
12 changes: 11 additions & 1 deletion assets/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ layout: base_page
<div class="col-md-5">
<h1 class="font-weight-light">Reciprocal Space Station</h1>
<p>Open source software for exploring reciprocal space</p>
<a class="btn btn-primary btn-sm" href="https://github.com/orgs/rs-station/repositories" >
<a class="btn btn-primary btn-sm" href="https://github.com/orgs/rs-station" >
View on GitHub
</a>
</div>
Expand Down

0 comments on commit 6ec1881

Please sign in to comment.