Update dev script
This commit is contained in:
parent
196d3a1595
commit
174fd595c3
|
@ -198,7 +198,7 @@ buildArchive getPosts getTemplate out = do
|
|||
|
||||
postInfo :: BlogPost -> Text
|
||||
postInfo bp =
|
||||
"- " <> date <> ": " <> orglink
|
||||
"| " <> date <> " | " <> orglink <> " |"
|
||||
where
|
||||
date = T.takeWhile (/= ' ') (postDate bp)
|
||||
orglink = "[[file:" <> (toS (postUrl bp)) <> "][" <> (postTitle bp) <> "]]"
|
||||
|
|
9
engine/auto-build.sh
Executable file
9
engine/auto-build.sh
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env zsh
|
||||
cd "$(git rev-parse --show-toplevel)" || exit 1
|
||||
direnv reload
|
||||
echo "Watching $PWD/{src,templates}"
|
||||
# fswatch --exclude='\\.#' src | while read event; do
|
||||
fswatch --exclude='^.*\.#.*$' src templates | while read event; do
|
||||
echo "$event"
|
||||
./engine/build.sh fast
|
||||
done
|
|
@ -1,8 +1,7 @@
|
|||
#!/usr/bin/env zsh
|
||||
cd "$(git rev-parse --show-toplevel)" || exit 1
|
||||
echo "Watching $PWD/{src,templates}"
|
||||
# fswatch --exclude='\\.#' src | while read event; do
|
||||
fswatch --exclude='^.*\.#.*$' src templates | while read event; do
|
||||
echo "$event"
|
||||
./engine/build.sh fast
|
||||
done
|
||||
tmux \
|
||||
new-session './engine/auto-build.sh' \; \
|
||||
split-window './engine/serve.sh' \; \
|
||||
split-window 'lorri watch' \; \
|
||||
select-layout even-vertical
|
||||
|
|
|
@ -27,6 +27,7 @@ pkgs.mkShell {
|
|||
git
|
||||
direnv
|
||||
haskellPackages.shake
|
||||
tmux
|
||||
# for emacs dev
|
||||
ripgrep
|
||||
];
|
||||
|
|
|
@ -15,7 +15,7 @@ pre > code { background: none; font-size: 0.875em; }
|
|||
code,pre { font-family: Menlo, Monaco, monospace; font-size: 1.85ex; }
|
||||
figure { margin: 1rem 0; padding: 0; }
|
||||
.meta { font-size: small;}
|
||||
.abstract { margin: 2rem 4rem; font-size: 0.875em; font-style: italic; }
|
||||
.abstract { margin: 2rem 10%; font-size: 0.875em; font-style: italic; }
|
||||
#logo { display: inline-block;
|
||||
vertical-align: middle;}
|
||||
#logo svg { width: 3em; }
|
||||
|
@ -229,12 +229,9 @@ input#b:checked ~ div {
|
|||
--fg0: var(--b1);
|
||||
--rfg: var(--b01);
|
||||
font-family: Hoefler Text, serif;
|
||||
font-size: 21px;
|
||||
font-size: 18px;
|
||||
line-height: 1.35em;
|
||||
}
|
||||
input#b:checked ~ div #content {
|
||||
overflow: visible;
|
||||
}
|
||||
input#b:checked ~ div img {
|
||||
border: solid 1px;
|
||||
filter: brightness(0.8) sepia(30%) saturate(0.8);
|
||||
|
|
|
@ -7,7 +7,9 @@
|
|||
<meta name="author" content="{{author}}">
|
||||
<meta name="description" content="{{description}}">
|
||||
<meta name="keywords" content="{{#tags}}{{.}}{{^last}} {{/last}}{{/tags}}">
|
||||
<link rel="stylesheet" href="/css/y.css"/><link rel="alternate" type="application/rss+xml" href="/rss.xml" /><link rel="icon" href="/favicon.ico">
|
||||
<link rel="stylesheet" href="/css/y.css"/>
|
||||
<link rel="alternate" type="application/rss+xml" href="/rss.xml" />
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
</head>
|
||||
<body>
|
||||
{{>header}}
|
||||
|
|
Loading…
Reference in a new issue