fix unicode

This commit is contained in:
xfnw 2020-07-31 22:43:15 +00:00
parent ec48282438
commit 2ee0039922
3 changed files with 87 additions and 2 deletions

View file

@ -3,6 +3,7 @@
<head> <head>
<meta name="generator" content= <meta name="generator" content=
"lick simple site"> "lick simple site">
<meta charset="UTF-8">
<title>XFSSTITLE</title> <title>XFSSTITLE</title>
<link rel="stylesheet" href="template/style.css"> <link rel="stylesheet" href="template/style.css">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">

View file

@ -1 +0,0 @@
../../lickhack-css/lickhack.css

85
template/style.css Normal file
View file

@ -0,0 +1,85 @@
/* ~lickthecheese's lickhack css! */
/* gpl affero v3 */
body {
background: black;
font-family: monospace;
color: #aea;
}
div {
border: 1px solid #aea;
border-left: 6px solid #7b7;
padding: 10px;
border-radius: 0px 15px 15px 0px;
margin-top: 5px;
}
html {
width: 700px;
margin: 0 auto;
}
a {
text-decoration: none;
color: #aee;
}
a:hover {
text-decoration: underline;
}
code, kbd, pre {
background: #111;
color: #aea;
}
pre {
padding: 10px;
border-radius: 0px 10px 10px 0px;
border: 1px solid #9d9;
border-left: 6px solid #6a6;
}
th {
color: black;
background-color: #aea;
}
th, td {
border: 1px solid #9d9;
padding: 5px;
}
table {
border-collapse: collapse;
margin: 10px;
}
@media screen and (max-width:700px) {
html {
width: 100%;
}
}
@media (prefers-reduced-motion: no-preference) {
@keyframes flash {
50% { opacity: 0; }
}
@keyframes reveal {
from { width: 1em; } /* Width of ::before */
to { width: 100%; }
}
h1 {
overflow: hidden;
white-space: nowrap;
animation: reveal 8s linear;
text-overflow: "\2588";
}
h1::after {
content: "\2588";
animation: flash 1s step-end infinite;
}
}

2
xfss
View file

@ -7,7 +7,7 @@ NEWF=${fn%??}html
TITLE=$(echo ${fn%???} | sed 's/_/ /g' | sed -e 's/[]$.*[\^]/\\&/g') TITLE=$(echo ${fn%???} | sed 's/_/ /g' | sed -e 's/[]$.*[\^]/\\&/g')
echo "rendering $NEWF..." echo "rendering $NEWF..."
cmark --smart --safe <src/$fn >$BOOPTMP pandoc --from gfm <src/$fn >$BOOPTMP
cp template/page.html $NEWF cp template/page.html $NEWF
sed "/<body>/r $BOOPTMP" template/page.html > $NEWF sed "/<body>/r $BOOPTMP" template/page.html > $NEWF