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 :: BlogPost -> Text
|
||||||
postInfo bp =
|
postInfo bp =
|
||||||
"- " <> date <> ": " <> orglink
|
"| " <> date <> " | " <> orglink <> " |"
|
||||||
where
|
where
|
||||||
date = T.takeWhile (/= ' ') (postDate bp)
|
date = T.takeWhile (/= ' ') (postDate bp)
|
||||||
orglink = "[[file:" <> (toS (postUrl bp)) <> "][" <> (postTitle bp) <> "]]"
|
orglink = "[[file:" <> (toS (postUrl bp)) <> "][" <> (postTitle bp) <> "]]"
|
||||||
|
|
|
@ -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
|
#!/usr/bin/env zsh
|
||||||
cd "$(git rev-parse --show-toplevel)" || exit 1
|
cd "$(git rev-parse --show-toplevel)" || exit 1
|
||||||
echo "Watching $PWD/{src,templates}"
|
tmux \
|
||||||
# fswatch --exclude='\\.#' src | while read event; do
|
new-session './engine/auto-build.sh' \; \
|
||||||
fswatch --exclude='^.*\.#.*$' src templates | while read event; do
|
split-window './engine/serve.sh' \; \
|
||||||
echo "$event"
|
split-window 'lorri watch' \; \
|
||||||
./engine/build.sh fast
|
select-layout even-vertical
|
||||||
done
|
|
||||||
|
|
|
@ -27,6 +27,7 @@ pkgs.mkShell {
|
||||||
git
|
git
|
||||||
direnv
|
direnv
|
||||||
haskellPackages.shake
|
haskellPackages.shake
|
||||||
|
tmux
|
||||||
# for emacs dev
|
# for emacs dev
|
||||||
ripgrep
|
ripgrep
|
||||||
];
|
];
|
||||||
|
|
|
@ -15,7 +15,7 @@ pre > code { background: none; font-size: 0.875em; }
|
||||||
code,pre { font-family: Menlo, Monaco, monospace; font-size: 1.85ex; }
|
code,pre { font-family: Menlo, Monaco, monospace; font-size: 1.85ex; }
|
||||||
figure { margin: 1rem 0; padding: 0; }
|
figure { margin: 1rem 0; padding: 0; }
|
||||||
.meta { font-size: small;}
|
.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;
|
#logo { display: inline-block;
|
||||||
vertical-align: middle;}
|
vertical-align: middle;}
|
||||||
#logo svg { width: 3em; }
|
#logo svg { width: 3em; }
|
||||||
|
@ -229,12 +229,9 @@ input#b:checked ~ div {
|
||||||
--fg0: var(--b1);
|
--fg0: var(--b1);
|
||||||
--rfg: var(--b01);
|
--rfg: var(--b01);
|
||||||
font-family: Hoefler Text, serif;
|
font-family: Hoefler Text, serif;
|
||||||
font-size: 21px;
|
font-size: 18px;
|
||||||
line-height: 1.35em;
|
line-height: 1.35em;
|
||||||
}
|
}
|
||||||
input#b:checked ~ div #content {
|
|
||||||
overflow: visible;
|
|
||||||
}
|
|
||||||
input#b:checked ~ div img {
|
input#b:checked ~ div img {
|
||||||
border: solid 1px;
|
border: solid 1px;
|
||||||
filter: brightness(0.8) sepia(30%) saturate(0.8);
|
filter: brightness(0.8) sepia(30%) saturate(0.8);
|
||||||
|
|
|
@ -7,7 +7,9 @@
|
||||||
<meta name="author" content="{{author}}">
|
<meta name="author" content="{{author}}">
|
||||||
<meta name="description" content="{{description}}">
|
<meta name="description" content="{{description}}">
|
||||||
<meta name="keywords" content="{{#tags}}{{.}}{{^last}} {{/last}}{{/tags}}">
|
<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>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
{{>header}}
|
{{>header}}
|
||||||
|
|
Loading…
Reference in New Issue