Remove unused 'heex' templates

This commit is contained in:
Catalin Constantin Mititiuc 2025-05-15 12:04:45 -07:00
parent f7e5e8e7d7
commit 48c609f63c
6 changed files with 5 additions and 136 deletions

View File

@ -60,6 +60,10 @@
## todo
* images
* titleize slugs
* limit number of posts on home page
* treesitter highlighting for moonscript
* penlight library
* sitegen plugins

View File

@ -22,7 +22,7 @@ split = (str, delimiter="/") ->
[capture for capture in string.gmatch str, "[^#{delimiter}]+"]
last = (list) -> list[#list]
join = (first, last, delimiter="/") -> table.concat {first, last}, delimiter
join = (first, last, delimiter="/") -> table.concat { first, last }, delimiter
target = (path, prefix) -> join prefix, rootname(last(split path))
posts = (path=".") ->

View File

@ -1,10 +0,0 @@
<section>
<h2>Hi, I'm Catalin Mititiuc</h2>
<p>
Experienced in full-stack web development with Elixir and JavaScript.
</p>
<p>Hiring? Reach me by <a href="mailto:webdevcat@proton.me">email</a>.</p>
</section>
<%= @inner_content %>

View File

@ -1,9 +0,0 @@
<section>
<h2><a href="/posts/">Web Log</a></h2>
<p>Elixir, JavaScript, SVG, Containers, Git, Linux</p>
<p>
Questions, comments, feedback? <a href="mailto:webdevcat@proton.me">Contact the author</a>.
</p>
</section>
<%= @inner_content %>

View File

@ -1,40 +0,0 @@
<h2>Wares</h2>
<section>
<h3>
<a href="/apps/btroops/">BTroops</a>
<a class="app-source-code-link" href="/git/btroops/">
View Source Code
</a>
</h3>
<p>A virtual implementation of FASA's 1989 wargame, Battletroops, for
the browser. Suitable for single-player solo play or two-player hotseat.</p>
<p>Runs entirely on the client after the initial download from the
server. Built with HTML5, SVG and JavaScript. Uses Node.js, Esbuild and
Docker for building and running dev/test servers.</p>
</section>
<section>
<h3>
<a href="https://hex.pm/packages/pandoc">Pandoc</a>
<a class="app-source-code-link" href="/git/pandoc/">
View Source Code
</a>
</h3>
<p>
A Hex package for installing and invoking <a href="https://pandoc.org/">Pandoc</a>
("a universal document converter"), fashioned after Phoenix's
<a href="https://hex.pm/packages/esbuild">Esbuild</a>
and <a href="https://hex.pm/packages/tailwind">Tailwind</a>
packages. Also included is a file system watcher, so that converted
documents are updated as soon as content changes are saved.
</p>
</section>
<%= StasisWeb.PostHTML.index(%{posts: @posts}) %>
<h4 style="text-align: center;">
<.link href={~p"/posts"} method="get">View more posts</.link>
</h4>

View File

@ -1,76 +0,0 @@
<!DOCTYPE html>
<html lang="en" style="scrollbar-gutter:stable;">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="csrf-token" content={get_csrf_token()} />
<.live_title suffix=" · Catalin Mititiuc">
<%= assigns[:page_title] || "WebDevCat.me" %>
</.live_title>
<link
rel="stylesheet"
id="font-bitter-css"
href="//fonts.googleapis.com/css?family=Bitter:400,700"
type="text/css"
media="screen"
/>
<link phx-track-static rel="stylesheet" href={~p"/assets/app.css"} />
<%= if assigns[:cgit] do %>
<link phx-track-static rel="stylesheet" href={~p"/assets/cgit.css"} />
<style>
article > * { max-width: unset; }
div#cgit table.list {
table-layout: auto;
width: 100%;
display: table;
}
div#cgit div.content {
overflow: scroll;
}
div#cgit table.tabs {
table-layout: auto;
width: 100%;
display: table;
}
div#cgit table.blob {
table-layout: auto;
width: 100%;
display: table;
}
div#cgit table.tabs {
table-layout: auto;
width: 100%;
display: table;
}
td.linenumbers { width: 1px; }
td.lines { max-width: 1px; overflow: hidden; }
td.linenumbers pre, td.lines pre {
line-height: 1.25em;
}
pre { overflow-x: scroll; overflow-y: hidden; }
code { font-size: unset; }
</style>
<% end %>
<script defer phx-track-static type="text/javascript" src={~p"/assets/app.js"}>
</script>
</head>
<body class="bg-white">
<header>
<div style="display: inline-block;">
<h1><a href="/">Web Dev Solutions</a></h1>
<h3 style="text-align: left">Catalin Mititiuc</h3>
</div>
</header>
<main>
<%= @inner_content %>
</main>
<footer>
<p>100% Human Made, No AI Used</p>
<p><%= app_name() %> <%= version() %></p>
</footer>
</body>
</html>