Skip to content

Commit aa0a81a

Browse files
committed
fix alignment
1 parent b673c43 commit aa0a81a

19 files changed

Lines changed: 965 additions & 961 deletions

lib/personal.ex

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ defmodule Personal do
88
~H"""
99
<.layout>
1010
<:head>
11-
<title><%= @post.title %></title>
11+
<title>{@post.title}</title>
1212
<meta name="description" content={@post.description} />
1313
</:head>
1414
<article class="mx-auto prose sm:prose-sm md:prose-md lg:prose-xl prose-pre:bg-codebg">
15-
<h1><%= @post.title %></h1>
16-
<h3><%= @post.description %></h3>
15+
<h1>{@post.title}</h1>
16+
<h3>{@post.description}</h3>
1717
<h3><a href={@post.related_listening}>Related Listening</a></h3>
18-
<p class="text-smurf-blood">Posted on <%= @post.date %></p>
19-
<%= raw(@post.body) %>
18+
<p class="text-smurf-blood">Posted on {@post.date}</p>
19+
{raw(@post.body)}
2020
</article>
2121
</.layout>
2222
"""
@@ -32,7 +32,7 @@ defmodule Personal do
3232
<h2 class="text-xl">Blog!</h2>
3333
<ul>
3434
<li :for={post <- @posts}>
35-
<%= post.date %> - <a href={post.path}><%= post.title %></a>
35+
{post.date} - <a href={post.path}>{post.title}</a>
3636
</li>
3737
</ul>
3838
</.layout>
@@ -50,16 +50,16 @@ defmodule Personal do
5050
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
5151
<link rel="stylesheet" href="/assets/app.css" />
5252
<script type="text/javascript" src="/assets/app.js" />
53-
<%= render_slot(@head) %>
53+
{render_slot(@head)}
5454
</head>
5555
5656
<body class="bg-nor-easter text-smurf-blood">
5757
<div class="flex h-60 min-h-screen flex-col items-center">
5858
<header class="bg-bludacris p-10 my-4 lg:mt-10 lg:mb-14">
5959
<h1><a href={url()}>andy@andyleclair.dev</a>$><span class="blink">_</span></h1>
6060
</header>
61-
<main class="container mx-auto relative grow min-h-96 flex-1 p-4 items-center">
62-
<%= render_slot(@inner_block) %>
61+
<main class="flex flex-col mx-auto relative grow min-h-96 flex-1 p-4 justify-items-center">
62+
{render_slot(@inner_block)}
6363
</main>
6464
<footer class="mt-24 bg-bludacris p-4 text-center">
6565
© Andy LeClair 2024 | <a href="/atom.xml">Atom</a> | <a href="/feed.xml">RSS</a>

lib/personal/blog.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ defmodule Personal.Blog do
33
build: Personal.Post,
44
from: "./posts/**/*.md",
55
as: :posts,
6-
highlighters: [:makeup_syntect]
6+
highlighters: [:makeup_syntect, :makeup_elixir, :makeup_erlang]
77

88
@posts Enum.sort_by(@posts, & &1.date, {:desc, Date})
99

mix.exs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ defmodule Personal.MixProject do
2323
# Run "mix help deps" to learn about dependencies.
2424
defp deps do
2525
[
26-
{:esbuild, "~> 0.5"},
2726
{:makeup_syntect, "~> 0.1"},
27+
{:esbuild, "~> 0.5"},
28+
{:makeup_elixir, ">= 0.0.0"},
29+
{:makeup_erlang, ">= 0.0.0"},
2830
{:nimble_publisher, "~> 1.1.0"},
2931
{:phoenix, "~> 1.7"},
3032
{:bandit, "~> 1.0"},

mix.lock

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
"idna": {:hex, :idna, "6.1.1", "8a63070e9f7d0c62eb9d9fcb360a7de382448200fbbd1b106cc96d3d8099df8d", [:rebar3], [{:unicode_util_compat, "~> 0.7.0", [hex: :unicode_util_compat, repo: "hexpm", optional: false]}], "hexpm", "92376eb7894412ed19ac475e4a86f7b413c1b9fbb5bd16dccd57934157944cea"},
1111
"jason": {:hex, :jason, "1.4.4", "b9226785a9aa77b6857ca22832cffa5d5011a667207eb2a0ad56adb5db443b8a", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "c5eb0cab91f094599f94d55bc63409236a8ec69a21a67814529e8d5f6cc90b3b"},
1212
"makeup": {:hex, :makeup, "1.2.1", "e90ac1c65589ef354378def3ba19d401e739ee7ee06fb47f94c687016e3713d1", [:mix], [{:nimble_parsec, "~> 1.4", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "d36484867b0bae0fea568d10131197a4c2e47056a6fbe84922bf6ba71c8d17ce"},
13+
"makeup_elixir": {:hex, :makeup_elixir, "1.0.1", "e928a4f984e795e41e3abd27bfc09f51db16ab8ba1aebdba2b3a575437efafc2", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.2.3 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "7284900d412a3e5cfd97fdaed4f5ed389b8f2b4cb49efc0eb3bd10e2febf9507"},
14+
"makeup_erlang": {:hex, :makeup_erlang, "1.0.2", "03e1804074b3aa64d5fad7aa64601ed0fb395337b982d9bcf04029d68d51b6a7", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "af33ff7ef368d5893e4a267933e7744e46ce3cf1f61e2dccf53a111ed3aa3727"},
1315
"makeup_syntect": {:hex, :makeup_syntect, "0.1.3", "ae2c3437f479ea50d08d794acaf02a2f3a8c338dd1f757f6b237c42eb27fcde1", [:mix], [{:makeup, "~> 1.2", [hex: :makeup, repo: "hexpm", optional: false]}, {:rustler, "~> 0.36.1", [hex: :rustler, repo: "hexpm", optional: true]}, {:rustler_precompiled, "~> 0.8.2", [hex: :rustler_precompiled, repo: "hexpm", optional: false]}], "hexpm", "a27bd3bd8f7b87465d110295a33ed1022202bea78701bd2bbeadfb45d690cdbf"},
1416
"metrics": {:hex, :metrics, "1.0.1", "25f094dea2cda98213cecc3aeff09e940299d950904393b2a29d191c346a8486", [:rebar3], [], "hexpm", "69b09adddc4f74a40716ae54d140f93beb0fb8978d8636eaded0c31b6f099f16"},
1517
"mime": {:hex, :mime, "2.0.6", "8f18486773d9b15f95f4f4f1e39b710045fa1de891fada4516559967276e4dc2", [:mix], [], "hexpm", "c9945363a6b26d747389aac3643f8e0e09d30499a138ad64fe8fd1d13d9b153e"},

output/assets/app.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<header class="bg-bludacris p-10 my-4 lg:mt-10 lg:mb-14">
1717
<h1><a href="https://andyleclair.dev/">andy@andyleclair.dev</a>$><span class="blink">_</span></h1>
1818
</header>
19-
<main class="container mx-auto relative grow min-h-96 flex-1 p-4 items-center">
19+
<main class="flex flex-col mx-auto relative grow min-h-96 flex-1 p-4 justify-items-center">
2020

2121
<h2 class="text-xl">Blog!</h2>
2222
<ul>

output/posts/2024/08-27-hello-world.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<header class="bg-bludacris p-10 my-4 lg:mt-10 lg:mb-14">
1717
<h1><a href="https://andyleclair.dev/">andy@andyleclair.dev</a>$><span class="blink">_</span></h1>
1818
</header>
19-
<main class="container mx-auto relative grow min-h-96 flex-1 p-4 items-center">
19+
<main class="flex flex-col mx-auto relative grow min-h-96 flex-1 p-4 justify-items-center">
2020

2121
<article class="mx-auto prose sm:prose-sm md:prose-md lg:prose-xl prose-pre:bg-codebg">
2222
<h1>Hello world!</h1>

output/posts/2024/08-28-readme.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<header class="bg-bludacris p-10 my-4 lg:mt-10 lg:mb-14">
1717
<h1><a href="https://andyleclair.dev/">andy@andyleclair.dev</a>$><span class="blink">_</span></h1>
1818
</header>
19-
<main class="container mx-auto relative grow min-h-96 flex-1 p-4 items-center">
19+
<main class="flex flex-col mx-auto relative grow min-h-96 flex-1 p-4 justify-items-center">
2020

2121
<article class="mx-auto prose sm:prose-sm md:prose-md lg:prose-xl prose-pre:bg-codebg">
2222
<h1>README</h1>

0 commit comments

Comments
 (0)