Skip to content

Commit

Permalink
Fix regression in v0.2.13. Tag v0.2.14
Browse files Browse the repository at this point in the history
  • Loading branch information
Azzaare committed Jun 10, 2021
1 parent 439e7d9 commit ea7ab0f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "StaticWebPages"
uuid = "5bf9d097-888b-4aa7-96b5-1bfe21b2dbad"
authors = ["azzaare <[email protected]>"]
version = "0.2.13"
version = "0.2.14"

[deps]
Bibliography = "f1be7e48-bf82-45af-a471-ae754a193061"
Expand Down
2 changes: 1 addition & 1 deletion assets/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ article-title {
outline: 0;
color: rgb(3, 122, 187);
/* padding: 5px 15px; */
padding-right: 13.25px;
/* padding-right: 13.25px; */
float: left;
font-size: 30px;
}
Expand Down
9 changes: 5 additions & 4 deletions src/items/block.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Block(paragraphs, images) = Block(paragraphs, images, "")
Block(paragraphs, iframe::String) = Block(paragraphs, Vector{Image}(), iframe)

function to_html(section::Block)
full = isempty(section.images) && isempty(section.iframe) ? "" : "medium-8 large-9"
full = eltype(section.images) <: Union && isempty(section.iframe) ? "" : "medium-8 large-9"
str = """<div class="cell $full">\n"""

for p in section.paragraphs
Expand All @@ -28,8 +28,8 @@ function to_html(section::Block)
</div>
"""

if !isempty(section.images) || !isempty(section.iframe)
"""
if eltype(section.images) <: Pair || !isempty(section.iframe)
str *= """
<div class="cell medium-4 large-3 centered">
"""

Expand All @@ -48,6 +48,7 @@ function to_html(section::Block)
</iframe>
"""
end
end

str *= """</div>\n"""
end
end
2 changes: 1 addition & 1 deletion src/skeleton.jl
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function nav(
acc = 1
for i in keys(academicons)
if i keys(info)
if mod(acc, 3) == 1
if mod(acc, 4) == 1
if acc > 1
str *=
"""
Expand Down

0 comments on commit ea7ab0f

Please sign in to comment.