Add styling that improves readability
- article content with a max-width - index and post index page now contain articles - code sections are bordered, indented and padded - figure captions are centered along with the images - h2 margin is only removed on the post index page; page-link's - main with extra space at the bottom to allow scolling past content
This commit is contained in:
+1
-1
@@ -94,7 +94,7 @@ index_file =
|
||||
|> Enum.sort_by(fn {d, _c} -> ((length months) * elem(Integer.parse(String.slice(d, 4..7)), 0)) + Enum.find_index(months, &(&1 == String.slice(d, 0..2))) end)
|
||||
|> Enum.reverse()
|
||||
|> Enum.map(fn {month, posts} -> "\n<h1>" <> month <> "</h1>\n" <> (posts |>
|
||||
Enum.map(fn post -> "<h2>" <> (Map.get(post, :date) |> String.slice(0..6)) <>
|
||||
Enum.map(fn post -> "<h2 class=\"post-link\">" <> (Map.get(post, :date) |> String.slice(0..6)) <>
|
||||
" - <a href=\"" <> Map.get(post, :localpath) <> ".html\">" <> Map.get(post, :title) <> "</a></h2>"
|
||||
end) |> Enum.join("\n")) end)
|
||||
|> Enum.join("\n")
|
||||
|
||||
Reference in New Issue
Block a user