Compare commits

...

6 Commits

4 changed files with 30 additions and 51 deletions

View File

@ -8,7 +8,7 @@ fn statpost {
post_uri=$base_url^`{cleanname `{echo $f | sed -e 's!^'$sitedir'!!'}}^'/'
title=`{read $f/index.md}
by=`{ls -m $f | sed 's/^\[//g; s/].*$//g' >[2]/dev/null}
ifs=() { summary=`{cat $f/index.md | strip_title_from_md_file | ifs=$difs {$formatter} } }
ifs=() { summary=`{cat $f/index.md | head -n 10 | strip_title_from_md_file | ifs=$difs {$formatter} } }
}
# rfc3339 date when feed was last updated.
fupdated = `{ndate -a `{date `{mtime `{ls $blagh_root$blagh_dirs/[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9]/[0-9] | tail -1} | awk '{print $1}'}}}

View File

@ -10,8 +10,8 @@ fn statpost {
by=`{ls -m $f | sed 's/^\[//g; s/].*$//g' >[2]/dev/null}
extracted_on=`{echo $relative_uri | sed 's|/blog/||g' | head -c 10 }
published_on=`{ /bin/date -R -D '%Y/%m/%d' -d $extracted_on }
# ifs=() {summary=`{ cat $f/index.md |strip_title_from_md_file | head -n 9 | ifs=$difs {$formatter | escape_html} }}
ifs=() {summary=`{ cat $f/index.md |strip_title_from_md_file | ifs=$difs {$formatter | escape_html} }}
ifs=() {summary=`{ cat $f/index.md | head -n 10 | strip_title_from_md_file | ifs=$difs {$formatter | escape_html} }}
# % could also add a | head -n 10 to only show the first few lines.
}
%}

View File

@ -1,61 +1,39 @@
/* Fonts */
/*
@font-face {
font-family: charter;
font-style: normal;
font-weight: normal;
font-stretch: normal;
src: url('/pub/fonts/charter/charter_regular.woff2') format('woff2');
}
/* Non-default fonts added significant time to first initial load.
* Code can still be found in git commit c34f6241
*/
@font-face {
font-family: 'Source Serif Pro';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://nunosempere.com/pub/fonts/source-serif/source-serif-pro-latin-ext.woff2) format('woff2'),
url(https://nunosempere.com/pub/fonts/source-serif/source-serif-pro-latin.woff2) format('woff2');
unicode-range: U+0000-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
font-family: charter;
font-style: italic;
font-weight: normal;
font-stretch: normal;
src: url('/pub/fonts/charter/charter_italic.woff2') format('woff2');
}
@font-face {
font-family: charter;
font-style: normal;
font-weight: bold;
font-stretch: normal;
src: url('/pub/fonts/charter/charter_bold.woff2') format('woff2');
}
@font-face {
font-family: charter;
font-style: italic;
font-weight: bold;
font-stretch: normal;
src: url('/pub/fonts/charter/charter_bold_italic.woff2') format('woff2');
/*
@import url("https://cdn.jsdelivr.net/gh/aaaakshat/cm-web-fonts@latest/fonts.css");
body {
font-family: "Computer Modern Serif", serif;
}
*/
@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap");
/* Body */
body {
display: flex;
flex-wrap: wrap;
/* font-family: 'Source Serif Pro'; */
/* font-family: 'Times New Roman'; */
font-family: "Garamond", 'serif';
/* font-family: 'charter'; */
/*
Web safe fonts:
font-family: "Georgia", 'serif';
font-family: "Garamond", 'serif';
font-family: 'Times New Roman';
More fonts:
font-family: 'Source Serif Pro';
font-family: "Computer Modern Serif", serif;
font-family: 'charter';
font-family: "Georgia", 'serif';
font-family: "Georgia", 'serif';
*/
font-family: "Roboto Mono", 'monospace';
font-size: 25px;
background-color: #fcfcfc;
color:#333;
color: #333;
}
* { /* incorporates the padding and borders into the object size*/
@ -284,6 +262,7 @@ table {
table-layout: fixed;
text-align: left;
width: 100%;
table-layout: auto;
}
table thead {

View File

@ -62,8 +62,8 @@ fn listDir {
echo '</li>'
}
if not {
echo '/'
# echo '&nbsp;'
echo '·'
# &nbsp; / | &mdash;
}
echo $base_url^$url >> $tmpfile