Skip to content

Commit

Permalink
Merge pull request #33 from Lullabot/26--layout-issue
Browse files Browse the repository at this point in the history
fix layout issue
  • Loading branch information
sirkitree authored Jul 17, 2024
2 parents 75e4619 + 778892d commit ab0fa68
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/_includes/chapter.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ layout: layout
<p class="ebook-chapter-title">{{ title }} </p>
</div>
<div class="ebook-copy">
<p class="copy-paragraph">{{ content }}</p>
<div class="copy-paragraph">{{ content }}</div>
</div>
</div>
<div class="ebook-image">
{% if image %}
{% if image %}
<div class="ebook-image">
{% assign currentBookSlug = page.filePathStem | split: "/" | slice: 2, 1 | join: "" %}
<img src="/ebooks/{{ currentBookSlug }}/images/{{ image }}" alt="{{ title }}">
{% endif %}
</div>
<img src="/ebooks/{{ currentBookSlug }}/images/{{ image }}" alt="{{ title }}">
</div>
{% endif %}
</div>

<div class="nav-container">
Expand Down
3 changes: 2 additions & 1 deletion src/sass/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,9 @@ p {
font-weight: bold;
}
.copy-paragraph {
font-size: 1.25em;
font-size: 20px;
line-height: 2;
padding: 0;
}
}

Expand Down

0 comments on commit ab0fa68

Please sign in to comment.