~fredg/tiweb

477308521bd9212dfeaa391c6c0f1f661f3c5eaa — Fred. Galusik a month ago 4487b54
add templates dir
6 files changed, 94 insertions(+), 0 deletions(-)

A tpl/footer.gmi
A tpl/footer.txt
A tpl/header.gmi
A tpl/header.txt
A tpl/header_index_gmi.gmi
A tpl/rss.xsl
A tpl/footer.gmi => tpl/footer.gmi +9 -0
@@ 0,0 1,9 @@

=> ./ <--

## Commentaires / Comments ?

=> https://lists.sr.ht/~fredg/public-inbox  Envoyer un email à la liste de discussion publique / Send a mail to the public Inbox

---
=> https://creativecommons.org/licenses/by-sa/4.0/  -- Copyright © 2008–2024 Frédéric Galusik - CC BY-SA 4.0 --

A tpl/footer.txt => tpl/footer.txt +13 -0
@@ 0,0 1,13 @@
---
=> Index / flux RSS
https://galusik.fr/log

## Commentaires / Comments ?
=> Envoyer un email à la liste de discussion publique / Send a mail to the public Inbox
https://lists.sr.ht/~fredg/public-inbox

---
Copyright © 2008–2024 Frédéric Galusik CC BY-SA 4.0

=> CC BY-SA 4.0
https://creativecommons.org/licenses/by-sa/4.0/

A tpl/header.gmi => tpl/header.gmi +12 -0
@@ 0,0 1,12 @@
 .d8888888b.  .d888                    888         
d88P"   "Y88bd88P"                     888         
888  d8b  888888                       888         
888  888  888888888888d888 .d88b.  .d88888 .d88b.  
888  888bd88P888   888P"  d8P  Y8bd88" 888d88P"88b 
888  Y8888P" 888   888    88888888888  888888  888 
Y88b.     .d8888   888    Y8b.    Y88b 888Y88b 888 
 "Y88888888P"888   888     "Y8888  "Y88888 "Y88888 
                                               888 
                                          Y8b d88P 
                                           "Y88P"  


A tpl/header.txt => tpl/header.txt +12 -0
@@ 0,0 1,12 @@


 _____     _     _             ____       _    __  __      _        _ 
|  ___| __(_) __| | __ _ _   _|  _ \ ___ | | _|  \/  | ___| |_ __ _| |
| |_ | '__| |/ _` |/ _` | | | | |_) / _ \| |/ / |\/| |/ _ \ __/ _` | |
|  _|| |  | | (_| | (_| | |_| |  _ < (_) |   <| |  | |  __/ || (_| | |
|_|  |_|  |_|\__,_|\__,_|\__, |_| \_\___/|_|\_\_|  |_|\___|\__\__,_|_|
                         |___/                                        

\m/ (-_-) \m/
=============


A tpl/header_index_gmi.gmi => tpl/header_index_gmi.gmi +6 -0
@@ 0,0 1,6 @@
# fredg's gemlog

=> ../ Homepage

## My posts


A tpl/rss.xsl => tpl/rss.xsl +42 -0
@@ 0,0 1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
    <xsl:template match="/">
        <html xmlns="http://www.w3.org/1999/xhtml">
            <head>
                <title><xsl:value-of select="/rss/channel/title"/></title>
                <meta charset="UTF-8" />
                <meta http-equiv="x-ua-compatible" content="IE=edge,chrome=1" />
                <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1,shrink-to-fit=no" />
                <style>
                    pre{
                        margin:0;
                        white-space: pre-wrap;
                        word-break: break-word;
                    }
                    .date{
                        margin-top: 1em;
                        overflow: hidden;
                        white-space: nowrap;
                        width: 16ch;
                    }
                </style>
            </head>
            <body>
                <pre><xsl:value-of select="/rss/channel/title"/></pre>
                <pre><xsl:value-of select="/rss/channel/description"/></pre>
                <xsl:for-each select="/rss/channel/item">
                    <xsl:sort select="category" order="descending"/>
                        <pre class="date"><xsl:value-of select="pubDate" /></pre>
                        <pre><xsl:value-of select="title"/></pre>
                        <xsl:element name="a">
                            <xsl:attribute name="href">
                                <xsl:value-of select="link"/>
                            </xsl:attribute>
                            <pre><xsl:value-of select="link"/></pre>
                        </xsl:element>
                </xsl:for-each>
            </body>
        </html>
    </xsl:template>
</xsl:stylesheet>