Add links to PDF, EPUB and MOBI offline formats - gophercgis - Collection of gopher CGI/DCGI for geomyidae
 (HTM) hg clone https://bitbucket.org/iamleot/gophercgis
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) changeset 207b92a909a537dfef21972e5f99ca25f63055ba
 (DIR) parent ed57707e7c8abcac3c96cc41e97b04e2a005af5e
 (HTM) Author: Leonardo Taccari <iamleot@gmail.com>
       Date:   Sat,  8 Dec 2018 23:52:34 
       
       Add links to PDF, EPUB and MOBI offline formats
       
       Diffstat:
        ilmanifesto/article.cgi |  11 +++++++++++
        1 files changed, 11 insertions(+), 0 deletions(-)
       ---
       diff -r ed57707e7c8a -r 207b92a909a5 ilmanifesto/article.cgi
       --- a/ilmanifesto/article.cgi   Sat Dec 08 23:24:51 2018 +0100
       +++ b/ilmanifesto/article.cgi   Sat Dec 08 23:52:34 2018 +0100
       @@ -23,6 +23,17 @@
        
                       print
               }
       +
       +       /class="readoffline-shortcode"/ {
       +               match($0, /class="pdf" rel="nofollow" href="[^"]+"/)
       +               printf("<pre>")
       +               printf("PDF: &lt;%s&gt;\n", substr($0, RSTART + 33, RLENGTH - 34))
       +               match($0, /class="epub" rel="nofollow" href="[^"]+"/)
       +               printf("EPUB: &lt;%s&gt;\n", substr($0, RSTART + 34, RLENGTH - 35))
       +               match($0, /class="mobi" rel="nofollow" href="[^"]+"/)
       +               printf("MOBI: &lt;%s&gt;\n", substr($0, RSTART + 34, RLENGTH - 35))
       +               printf("</pre>")
       +       }
               '
        }