use vernsite stylesheet instead of using special one
This commit is contained in:
parent
82ed1e5fef
commit
63a33d1768
5
pblog.sh
5
pblog.sh
|
@ -24,7 +24,7 @@ if [[ $SYNTAX = true ]]
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create the web browser-focused HTML versions for all posts
|
# Create the web browser-focused HTML versions for all posts
|
||||||
for i in $POSTS; do pandoc --css=/blog/style.css --ascii --metadata lang="$HTML_LANG" $TOC_TOGGLE $SYNTAX_TOGGLE --wrap=none -A _footer.html -B _header.html -s $i -o ${i%.*}.html; done;
|
for i in $POSTS; do pandoc --css=//gcdn.vern.cc/vernsite/media/style.css --ascii --metadata lang="$HTML_LANG" $TOC_TOGGLE $SYNTAX_TOGGLE --wrap=none -A _footer.html -B _header.html -s $i -o ${i%.*}.html; done;
|
||||||
|
|
||||||
rsync $POSTS_DIR*.html $OUTPUT$WEB_HTML;
|
rsync $POSTS_DIR*.html $OUTPUT$WEB_HTML;
|
||||||
rm $POSTS_DIR*.html
|
rm $POSTS_DIR*.html
|
||||||
|
@ -70,6 +70,5 @@ done
|
||||||
echo " </channel>
|
echo " </channel>
|
||||||
</rss>";
|
</rss>";
|
||||||
|
|
||||||
# Copy XSLT, stylesheet files
|
# Copy XSLT
|
||||||
rsync rss.xsl $OUTPUT/blog;
|
rsync rss.xsl $OUTPUT/blog;
|
||||||
rsync style.css $OUTPUT/blog;
|
|
||||||
|
|
2
sed.sh
2
sed.sh
|
@ -3,7 +3,7 @@ sed -i -e 's/<header>//'\
|
||||||
-e 's/<\/header>//'\
|
-e 's/<\/header>//'\
|
||||||
-e 's/<body>/<body>\n<\!--#include file=\"\/en\/nav.php\" -->\n/'\
|
-e 's/<body>/<body>\n<\!--#include file=\"\/en\/nav.php\" -->\n/'\
|
||||||
-e 's/<\/body>/<\/body>\n<!--#include file=\"\/en\/footer.cgi\" -->\n/'\
|
-e 's/<\/body>/<\/body>\n<!--#include file=\"\/en\/footer.cgi\" -->\n/'\
|
||||||
-e 's/..\/..\/style.css/\/blog\/style.css/'\
|
-e 's/..\/..\/style.css/\/\/gcdn.vern.cc\/vernsite\/media\/style.css/'\
|
||||||
_output/blog/index.html
|
_output/blog/index.html
|
||||||
sed -i -n '1,/<style>/p;/<\/style>/,$p' _output/blog/index.html
|
sed -i -n '1,/<style>/p;/<\/style>/,$p' _output/blog/index.html
|
||||||
|
|
||||||
|
|
136
style.css
136
style.css
|
@ -1,136 +0,0 @@
|
||||||
/* latin-ext */
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Fira Code';
|
|
||||||
font-style: normal;
|
|
||||||
font-weight: 400;
|
|
||||||
src: url(/woff2/FiraCodeLatinExt.woff2) format('woff2');
|
|
||||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
||||||
}
|
|
||||||
/* latin */
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Fira Code';
|
|
||||||
font-style: normal;
|
|
||||||
font-weight: 400;
|
|
||||||
src: url(/woff2/FiraCodeLatin.woff2) format('woff2');
|
|
||||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
||||||
}
|
|
||||||
|
|
||||||
html {
|
|
||||||
background:#282c34;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
font-family:'Fira Code';
|
|
||||||
margin:20px auto;
|
|
||||||
max-width:800px;
|
|
||||||
line-height:1.5em;
|
|
||||||
font-size:1.1em;
|
|
||||||
background-color:#282c34;
|
|
||||||
color:#bbc2cf;
|
|
||||||
padding:0 10px;
|
|
||||||
hyphens:auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
nav {
|
|
||||||
display:inline-block;
|
|
||||||
}
|
|
||||||
|
|
||||||
nav li {
|
|
||||||
display:inline-block no;
|
|
||||||
margin-right:20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.navlogo {
|
|
||||||
width:50px;
|
|
||||||
height:50px;
|
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
|
||||||
color:#ff6c6b;
|
|
||||||
text-decoration:none;
|
|
||||||
}
|
|
||||||
|
|
||||||
a:hover {
|
|
||||||
color:#ff6c6b;
|
|
||||||
text-decoration:underline;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1, h2, h3 {
|
|
||||||
display:inline;
|
|
||||||
line-height:1.2;
|
|
||||||
color:#51afef;
|
|
||||||
font-size:1.3em;
|
|
||||||
}
|
|
||||||
|
|
||||||
h2 {
|
|
||||||
font-size:1.2em;
|
|
||||||
}
|
|
||||||
|
|
||||||
h3 {
|
|
||||||
font-size:1.1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.h:hover a[aria-hidden] {
|
|
||||||
display:inline;
|
|
||||||
color:#ff6c6b;
|
|
||||||
size:75%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.h a[aria-hidden] {
|
|
||||||
display:none;
|
|
||||||
}
|
|
||||||
|
|
||||||
pre {
|
|
||||||
tab-size:4;
|
|
||||||
}
|
|
||||||
|
|
||||||
.red {
|
|
||||||
color:#ff6c6b;
|
|
||||||
}
|
|
||||||
|
|
||||||
.green {
|
|
||||||
color:#98be65;
|
|
||||||
}
|
|
||||||
|
|
||||||
p code, li code {
|
|
||||||
border: 1px solid #969ba6;
|
|
||||||
border-radius: 2px;
|
|
||||||
color: #bbc2cf;
|
|
||||||
padding: 1px 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
img {
|
|
||||||
height: auto;
|
|
||||||
max-width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
pre {
|
|
||||||
background: #20232a;
|
|
||||||
color: #969ba6;
|
|
||||||
border: 1px solid lightgrey;
|
|
||||||
padding: 5px;
|
|
||||||
tab-size:4;
|
|
||||||
}
|
|
||||||
|
|
||||||
#TOC {
|
|
||||||
border: 1px solid;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
#TOC:before {
|
|
||||||
border-bottom: 1px solid;
|
|
||||||
content: 'Table of Contents';
|
|
||||||
display: block;
|
|
||||||
font-weight: bold;
|
|
||||||
padding: 5px;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
.date {
|
|
||||||
//color: grey;
|
|
||||||
display: block;
|
|
||||||
font-family: monospace;
|
|
||||||
margin-top: 1em;
|
|
||||||
overflow: hidden;
|
|
||||||
white-space: nowrap;
|
|
||||||
width: 16ch;
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue