From 48c609f63c1b22d8a3994aa2c31cfed8776197e3 Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Thu, 15 May 2025 12:04:45 -0700 Subject: [PATCH] Remove unused 'heex' templates --- README.md | 4 +++ site.moon | 2 +- templates/app.html.heex | 10 ------ templates/blog.html.heex | 9 ----- templates/home.html.heex | 40 --------------------- templates/root.html.heex | 76 ---------------------------------------- 6 files changed, 5 insertions(+), 136 deletions(-) delete mode 100644 templates/app.html.heex delete mode 100644 templates/blog.html.heex delete mode 100644 templates/home.html.heex delete mode 100644 templates/root.html.heex diff --git a/README.md b/README.md index b5cf035..6922fe3 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,10 @@ ## todo +* images +* titleize slugs +* limit number of posts on home page + * treesitter highlighting for moonscript * penlight library * sitegen plugins diff --git a/site.moon b/site.moon index 8d35143..8f07a78 100644 --- a/site.moon +++ b/site.moon @@ -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=".") -> diff --git a/templates/app.html.heex b/templates/app.html.heex deleted file mode 100644 index 7e7759f..0000000 --- a/templates/app.html.heex +++ /dev/null @@ -1,10 +0,0 @@ -
-

Hi, I'm Catalin Mititiuc

-

- Experienced in full-stack web development with Elixir and JavaScript. -

- -

Hiring? Reach me by email.

-
- -<%= @inner_content %> diff --git a/templates/blog.html.heex b/templates/blog.html.heex deleted file mode 100644 index 98274e1..0000000 --- a/templates/blog.html.heex +++ /dev/null @@ -1,9 +0,0 @@ -
-

Web Log

-

Elixir, JavaScript, SVG, Containers, Git, Linux

-

- Questions, comments, feedback? Contact the author. -

-
- -<%= @inner_content %> diff --git a/templates/home.html.heex b/templates/home.html.heex deleted file mode 100644 index 93ed1ea..0000000 --- a/templates/home.html.heex +++ /dev/null @@ -1,40 +0,0 @@ -

Wares

- -
-

- BTroops - - View Source Code - -

- -

A virtual implementation of FASA's 1989 wargame, Battletroops, for - the browser. Suitable for single-player solo play or two-player hotseat.

-

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.

-
- -
-

- Pandoc - - View Source Code - -

- -

- A Hex package for installing and invoking Pandoc - ("a universal document converter"), fashioned after Phoenix's - Esbuild - and Tailwind - packages. Also included is a file system watcher, so that converted - documents are updated as soon as content changes are saved. -

-
- -<%= StasisWeb.PostHTML.index(%{posts: @posts}) %> - -

- <.link href={~p"/posts"} method="get">View more posts -

diff --git a/templates/root.html.heex b/templates/root.html.heex deleted file mode 100644 index 59782df..0000000 --- a/templates/root.html.heex +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - <.live_title suffix=" ยท Catalin Mititiuc"> - <%= assigns[:page_title] || "WebDevCat.me" %> - - - - <%= if assigns[:cgit] do %> - - - <% end %> - - - -
-
-

Web Dev Solutions

-

Catalin Mititiuc

-
-
- -
- <%= @inner_content %> -
- - - -