1
1
Fork 0

Switch from elm site to emanote

main
Bill Ewanick 2023-09-23 13:30:25 -04:00
parent 9224fd0c94
commit 6a5514c2ee
5 changed files with 25 additions and 113 deletions

View File

@ -1,5 +1,9 @@
{ pkgs, ... }:
let let
PROJECT_ROOT = builtins.toString ./.; PROJECT_ROOT = /workspace/deployed-nixos-server-and-apps/nixos-apps/ewanick.com;
PORT = "5567";
HOST = "localhost";
in in
{ {
services.caddy = { services.caddy = {
@ -8,10 +12,24 @@ in
"ewanick.com" = { "ewanick.com" = {
serverAliases = [ "www.ewanick.com" ]; serverAliases = [ "www.ewanick.com" ];
extraConfig = '' extraConfig = ''
root * ${PROJECT_ROOT}/ewanick.com/ reverse_proxy ${HOST}:${PORT}
file_server
''; '';
}; };
}; };
}; };
systemd.services = {
ewanick-site = {
enable = true;
description = "The hakyll executable that rebuilds the site when a new blog post is created.";
path = with pkgs; [
nix
git
];
script = ''
cd ${PROJECT_ROOT}
nix run github:srid/emanote -- run --port ${PORT} --host ${HOST}
'';
};
};
} }

View File

@ -1,23 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">
<title>Elm App using Nix Starter Template</title>
<link rel="stylesheet" href="main.css">
<script src="main.min.js"></script>
</head>
<body>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<div id="root"></div>
<script>var app = Elm.Main.init({ node: document.getElementById("root") });</script>
</body>
</html>

View File

@ -0,0 +1,4 @@
# Test Site
This is my test blog
Does it work!?

View File

@ -1,86 +0,0 @@
html,
body {
height: 100%;
}
body {
background-color: #fff1e5;
font-size: 20px;
color: #070707;
margin: 0px;
font-family: 'IBM Plex Sans', sans-serif;
}
h1 {
display: block;
font-size: 2em;
font-weight: bold;
margin: 0em 0em 1em 0em;
}
a {
color: #070707;
border-bottom: 1px dashed #070707;
padding-bottom: 0px;
text-decoration: none;
transition: padding 0.25s;
}
a:hover {
padding-bottom: 2px;
}
#hwaet {
padding: 2em;
max-width: 1000px;
margin-right: auto;
margin-left: auto;
}
#controls {
display: flex
}
.control {
margin-right: 1em;
display: flex;
flex-direction: column;
width: 10em;
font-size: 0.75em;
text-align: center;
}
input[type="range"] {
width: 100%;
margin-bottom: 1em;
}
input[type=range] {
-webkit-appearance: none;
}
input[type=range]::-webkit-slider-runnable-track {
height: .35em;
background: #070707;
border: none;
border-radius: 3px;
}
input[type=range]::-webkit-slider-thumb {
-webkit-appearance: none;
border: none;
height: 1.1em;
width: 1.1em;
border-radius: 50%;
background: #070707;
margin-top: -4px;
}
input[type=range]:focus {
outline: none;
}
#footer {
font-size: 0.8em;
}

File diff suppressed because one or more lines are too long