Skip to content

Commit

Permalink
fix layouy bug where code blocks dont scroll horizontally; fixes daat…
Browse files Browse the repository at this point in the history
  • Loading branch information
daattali committed Nov 10, 2023
1 parent 068bf0f commit cf95491
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
8 changes: 3 additions & 5 deletions _layouts/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,11 @@
{% include head.html %}

<body>
<div>
{% include gtm_body.html %}
{% include gtm_body.html %}

{% include nav.html %}
{% include nav.html %}

{{ content }}
</div>
{{ content }}

{% include footer.html %}

Expand Down
8 changes: 4 additions & 4 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{% include header.html type="post" %}

<div class="{% if page.full-width %} container-fluid {% else %} container-md {% endif %}">
<main class="{% if page.full-width %} container-fluid {% else %} container-md {% endif %}">
<div class="row">
<div class="{% if page.full-width %} col {% else %} col-xl-8 offset-xl-2 col-lg-10 offset-lg-1 {% endif %}">

Expand Down Expand Up @@ -39,9 +39,9 @@
</div>
{% endif %}

<main class="blog-post">
<div class="blog-post">
{{ content }}
</main>
</div>

{% if page.tags.size > 0 %}
<div class="blog-tags">
Expand Down Expand Up @@ -85,4 +85,4 @@
{% include comments.html %}
</div>
</div>
</div>
</main>
7 changes: 5 additions & 2 deletions assets/css/beautifuljekyll.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ body {
{% endif %}
overflow-wrap: break-word;
min-height: 100vh;
display: grid;
grid-template-rows: 1fr auto;
display: flex;
flex-direction: column;
}
body > main {
flex: 1;
}
p {
line-height: 1.5;
Expand Down

0 comments on commit cf95491

Please sign in to comment.