Compare commits
5 commits
ba9d5ac834
...
11e25fc594
Author | SHA1 | Date | |
---|---|---|---|
11e25fc594 | |||
266849eb12 | |||
ae4f800bb4 | |||
926ac463df | |||
ab63fef603 |
6 changed files with 26 additions and 6 deletions
12
Makefile
Normal file
12
Makefile
Normal file
|
@ -0,0 +1,12 @@
|
|||
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,4 +2,11 @@
|
|||
|
||||
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
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ layout: Website.PostLayout
|
|||
title: Test Post
|
||||
date: 2024-11-08
|
||||
categories: post
|
||||
permalink: test-post
|
||||
permalink: /blog/test-post
|
||||
---
|
||||
|
||||
TEST POST PLEASE IGNORE
|
||||
|
|
|
@ -31,6 +31,7 @@ defmodule Website.RootLayout do
|
|||
</nav>
|
||||
<div>
|
||||
<h1><%= @page[:title] %></h1>
|
||||
<h2>This is a test site, please pardon the clutter.</h2>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ defmodule Website.BlogPage do
|
|||
<section>
|
||||
<article :for={post <- @posts} class="mt-8">
|
||||
Blog description goes here
|
||||
<a class="underline text-base flex items-center justify-between" href={"blog/" <> post.permalink}>
|
||||
<a href={post.permalink}>
|
||||
<h3>
|
||||
<time><%= post.date |> Calendar.strftime("%d.%b.%Y") %></time>
|
||||
<%= post.title %>
|
||||
|
|
|
@ -8,12 +8,12 @@ defmodule Website.ProjectsPage do
|
|||
|
||||
def template(assigns) do
|
||||
~H"""
|
||||
<div class="space-y-20">
|
||||
<div class="flex flex-col space-y-20">
|
||||
<div>
|
||||
<div>
|
||||
<%= for type <- @data["projects"] do %>
|
||||
<div :for={{status, projects} <- type}>
|
||||
<h2 class="text-base"><%= status %></h2>
|
||||
<div class="space-y-4">
|
||||
<h2><%= status %></h2>
|
||||
<div>
|
||||
<div :for={project <- projects}>
|
||||
<%= if project["link"] do %>
|
||||
<a href={project["link"]}><%= project["name"] %></a>
|
||||
|
|
Loading…
Reference in a new issue