Compare commits
No commits in common. "11e25fc594350d294bd43a938ba64674dd667949" and "ba9d5ac834b210096f698cce297a59527fe7532d" have entirely different histories.
11e25fc594
...
ba9d5ac834
6 changed files with 6 additions and 26 deletions
12
Makefile
12
Makefile
|
@ -1,12 +0,0 @@
|
||||||
all: build
|
|
||||||
|
|
||||||
build:
|
|
||||||
mix tableau.build
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -fr _build/ _site/
|
|
||||||
|
|
||||||
publish:
|
|
||||||
ssh criminallycute.fi "rm -r /var/www/criminallycute.fi/public"
|
|
||||||
scp -Cr _site criminallycute.fi:/var/www/criminallycute.fi/public
|
|
||||||
|
|
|
@ -2,11 +2,4 @@
|
||||||
|
|
||||||
Sources for [criminallycute.fi][]
|
Sources for [criminallycute.fi][]
|
||||||
|
|
||||||
Basic steps to build the site and publish:
|
|
||||||
|
|
||||||
* Clone repo
|
|
||||||
* `mix deps.get`
|
|
||||||
* Publish with `make && make publish`
|
|
||||||
|
|
||||||
[criminallycute.fi]:https://criminallycute.fi
|
[criminallycute.fi]:https://criminallycute.fi
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ layout: Website.PostLayout
|
||||||
title: Test Post
|
title: Test Post
|
||||||
date: 2024-11-08
|
date: 2024-11-08
|
||||||
categories: post
|
categories: post
|
||||||
permalink: /blog/test-post
|
permalink: test-post
|
||||||
---
|
---
|
||||||
|
|
||||||
TEST POST PLEASE IGNORE
|
TEST POST PLEASE IGNORE
|
||||||
|
|
|
@ -31,7 +31,6 @@ defmodule Website.RootLayout do
|
||||||
</nav>
|
</nav>
|
||||||
<div>
|
<div>
|
||||||
<h1><%= @page[:title] %></h1>
|
<h1><%= @page[:title] %></h1>
|
||||||
<h2>This is a test site, please pardon the clutter.</h2>
|
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ defmodule Website.BlogPage do
|
||||||
<section>
|
<section>
|
||||||
<article :for={post <- @posts} class="mt-8">
|
<article :for={post <- @posts} class="mt-8">
|
||||||
Blog description goes here
|
Blog description goes here
|
||||||
<a href={post.permalink}>
|
<a class="underline text-base flex items-center justify-between" href={"blog/" <> post.permalink}>
|
||||||
<h3>
|
<h3>
|
||||||
<time><%= post.date |> Calendar.strftime("%d.%b.%Y") %></time>
|
<time><%= post.date |> Calendar.strftime("%d.%b.%Y") %></time>
|
||||||
<%= post.title %>
|
<%= post.title %>
|
||||||
|
|
|
@ -8,12 +8,12 @@ defmodule Website.ProjectsPage do
|
||||||
|
|
||||||
def template(assigns) do
|
def template(assigns) do
|
||||||
~H"""
|
~H"""
|
||||||
<div>
|
<div class="space-y-20">
|
||||||
<div>
|
<div class="flex flex-col space-y-20">
|
||||||
<%= for type <- @data["projects"] do %>
|
<%= for type <- @data["projects"] do %>
|
||||||
<div :for={{status, projects} <- type}>
|
<div :for={{status, projects} <- type}>
|
||||||
<h2><%= status %></h2>
|
<h2 class="text-base"><%= status %></h2>
|
||||||
<div>
|
<div class="space-y-4">
|
||||||
<div :for={project <- projects}>
|
<div :for={project <- projects}>
|
||||||
<%= if project["link"] do %>
|
<%= if project["link"] do %>
|
||||||
<a href={project["link"]}><%= project["name"] %></a>
|
<a href={project["link"]}><%= project["name"] %></a>
|
||||||
|
|
Loading…
Reference in a new issue