diff options
author | William Carroll <wpcarro@gmail.com> | 2021-12-28T00·06-0400 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2021-12-28T00·09+0000 |
commit | e107311cb87fc219889f37f0c67cfea22b4a99e7 (patch) | |
tree | f52e7b5859eabb14a9cbeb17e68aa741ea9c3348 /users/wpcarro/website/blog/fragments | |
parent | 52369a11e3dee035b575281c80e2bf9a65546435 (diff) |
refactor(wpcarro/website): Prefer substituteAll r/3483
`substituteAll` supports templating with @variables@, which I think really cleans things up. Change-Id: Icfad15ac9e174495ba02260d817f7330f1616c6f Reviewed-on: https://cl.tvl.fyi/c/depot/+/4722 Reviewed-by: wpcarro <wpcarro@gmail.com> Autosubmit: wpcarro <wpcarro@gmail.com> Tested-by: BuildkiteCI
Diffstat (limited to 'users/wpcarro/website/blog/fragments')
-rw-r--r-- | users/wpcarro/website/blog/fragments/.skip-subtree | 0 | ||||
-rw-r--r-- | users/wpcarro/website/blog/fragments/post.html | 8 | ||||
-rw-r--r-- | users/wpcarro/website/blog/fragments/posts.html | 10 |
3 files changed, 18 insertions, 0 deletions
diff --git a/users/wpcarro/website/blog/fragments/.skip-subtree b/users/wpcarro/website/blog/fragments/.skip-subtree new file mode 100644 index 000000000000..e69de29bb2d1 --- /dev/null +++ b/users/wpcarro/website/blog/fragments/.skip-subtree diff --git a/users/wpcarro/website/blog/fragments/post.html b/users/wpcarro/website/blog/fragments/post.html new file mode 100644 index 000000000000..44593094ecdf --- /dev/null +++ b/users/wpcarro/website/blog/fragments/post.html @@ -0,0 +1,8 @@ +<li class="pb-6 md:pb-10"> + <h2 class="text-bold text-xl"> + <a class="font-bold text-blue-600 hover:underline" href="@postUrl@"> + @postTitle@ + </a> + </h2> + <p class="text-gray-500">@postDate@</p> +</li> diff --git a/users/wpcarro/website/blog/fragments/posts.html b/users/wpcarro/website/blog/fragments/posts.html new file mode 100644 index 000000000000..699b28f366c0 --- /dev/null +++ b/users/wpcarro/website/blog/fragments/posts.html @@ -0,0 +1,10 @@ +<div class="max-w-sm md:max-w-prose mx-auto"> + <section class="pt-8 pb-14"> + <p class="font-bold pb-3 text-xl"> + Personal blog by <a class="font-bold text-blue-600 hover:underline" href="https://wpcarro.dev">wpcarro</a>. + </p> + <p class="text-gray-500">> Half-baked musings lossily encoded.</p> + <p class="text-gray-500">> - misc reviewer</p> + </section> + <ul>@postsHtml@</ul> +</div> |