diff --git a/assets/css/app.css b/assets/css/app.css index 43c4516..1f0bee6 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -830,6 +830,8 @@ article-title { /* Discord widget */ .discord-widget{ - width:100%; + /* width:200px; */ height:400px; + align-self: center; + text-align: center; } \ No newline at end of file diff --git a/src/items/block.jl b/src/items/block.jl index d3d56de..b0f5ffc 100644 --- a/src/items/block.jl +++ b/src/items/block.jl @@ -13,10 +13,8 @@ Block(paragraphs, images) = Block(paragraphs, images, "") Block(paragraphs, iframe::String) = Block(paragraphs, Vector{Image}(), iframe) function to_html(section::Block) - str = - """ -
- """ + full = isempty(section.images) && isempty(section.iframe) ? "" : "medium-8 large-9" + str = """
\n""" for p in section.paragraphs str *= @@ -29,6 +27,7 @@ function to_html(section::Block) """
""" + if !isempty(section.images) || !isempty(section.iframe) """
@@ -49,10 +48,6 @@ function to_html(section::Block) """ end - - str *= - """ -
- """ end + str *= """
\n""" end