<>= - [Markdown FTW](<>/<>index.html) - https://github.com/ctarbide/coolscripts/blob/master/README.txt - dependency - https://github.com/ctarbide/ctweb/blob/master/tools/nofake-README.txt - literate programming tool, already included in coolscripts above - https://stackoverflow.com/questions/5641997/is-it-necessary-to-write-head-body-and-html-tags - context: html body tag not required - https://gist.github.com/pfig/1808188 - context: imagemagick favicon generator - https://www.imagemagick.org/Usage/thumbnails/#favicon - https://www.atomic-scale-physics.de/lattice/struk.picts/bh.s.png - https://www.atomic-scale-physics.de/lattice/faq.html#useofsite - "This page is in the public domain." - Pictures (and/or text) taken from the Crystal Lattice Structures Web page, http://cst-www.nrl.navy.mil/lattice/, provided by the Center for Computational Materials Science of the United States Naval Research Laboratory. @ <>=

<></h1> <h2>References</h2> <<references>> @ <<PRIMARY SOURCES>>= <<TOP>>/assets.nw README.txt @ <<TOP>>= ../../.. @ <<PAGES>>= ../.. @ <<YEAR>>= 2024 @ <<STAMP>>= 2024-01-06_15h38m06 @ <<ITEM_ID>>= meta @ <<PAGE DIR>>= pages/<<YEAR>>/<<STAMP>>_<<ITEM_ID>> @ <<URL PREFIX>>= <<assets - base url>><<PAGE DIR>> @ <<CANONICAL URL>>= <<URL PREFIX>>/index.html @ <<TITLE>>= ctarbi.de - <<ITEM_ID>> @ <<sh preamble>>= #!/bin/sh set -eu @ <<print LAST MODIFIED>>= if [ -f .draft ]; then last-modified.sh <<PRIMARY SOURCES>> | perl -MPOSIX=strftime \ -lne'print(strftime(qq{@<<LAST MODIFIED@>>=\n%B %e, %Y (DRAFT)\n@\n}, gmtime($_)))' else FORMAT='format:%s %B %e, %Y at %T UTC' git-last-modified.sh <<PRIMARY SOURCES>> | LC_ALL=C sort -nr | head -n1 | perl \ -lne's,^\d+ ,,; print(qq{@<<LAST MODIFIED@>>=\n${_}\n@\n})' fi @ <<set $t0>>= t0=`perl -MTime::HiRes=time -le'print(time)'` @ <<generated: $t1 - $t0>>= perl -MTime::HiRes=time -MPOSIX=strftime -le' $t1 = time; $t0 = $ARGV[0]; printf(qq{\n<!-- Generated in %.3f seconds on %s. -->\n}, $t1 - $t0, strftime(q{%B %e, %Y at %T UTC}, gmtime)) ' -- "${t0}" @ <<create index.html from .index.html>>= cat .index.html > index.html <<generated: $t1 - $t0>> @>> index.html chmod 0444 index.html @ <<update (or not) index.html from .index.html>>= if [ -f index.html ]; then if [ .index.html -nt index.html ]; then rm -f index.html <<create index.html from .index.html>> else echo "index.html is up to date." fi else <<create index.html from .index.html>> fi @ <<gen: base url>>= printf '@<<base url>>=\n' <<TOP>>/bin/show-config.sh website.base-url printf '@\n' @ <<generate>>= <<sh preamble>> <<print LAST MODIFIED>> cat <<PRIMARY SOURCES>> <<gen: base url>> @ <<update (or not) .index.html from primary sources>>= nofake --error -Rgenerate <<PRIMARY SOURCES>> | sh | gzip > .cache ( gzip -dc .cache printf '@<<body>>=\n' gzip -dc .cache | nofake --error -R'body in markdown' | "<<TOP>>/bin/md-autoheader-autolink.pl" | <<assets - md.pl for pages>> printf '@\n' ) | CHMOD='chmod 0444' nofake.sh --error -Rindex.html -o.index.html @ <<render>>= <<sh preamble>> <<set $t0>> <<update (or not) .index.html from primary sources>> <<update (or not) index.html from .index.html>> @ <<index.html>>= <!DOCTYPE html> <html lang="en"> <title><<TITLE>> <> < @@ @ <>= @<>= escape(){ perl -lpe's,&,&,g; s,<,<,g; s,:,:,g; s,^\@,@,' -- "$@" } @@ @ <>= This was generated from <>/README.txt, do not change this file. <> <> <> @ <