diff --git a/apps/blagh/atom.tpl b/apps/blagh/atom.tpl index 97c665f..07cdbd6 100755 --- a/apps/blagh/atom.tpl +++ b/apps/blagh/atom.tpl @@ -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}'}}} diff --git a/apps/blagh/rss20.tpl b/apps/blagh/rss20.tpl index 7cc0775..9d08b7c 100755 --- a/apps/blagh/rss20.tpl +++ b/apps/blagh/rss20.tpl @@ -10,7 +10,7 @@ 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 | 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. } diff --git a/pub/style/style.css b/pub/style/style.css index bd38db2..2bae413 100755 --- a/pub/style/style.css +++ b/pub/style/style.css @@ -1,61 +1,36 @@ /* Fonts */ -/* Removed because it added significant time to first initial load. Code can still be found in git commit [...] -@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; } */ + /* 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-size: 25px; background-color: #fcfcfc; - color:#333; + color: #333; } * { /* incorporates the padding and borders into the object size*/