satelito

Static [web] site (or page) generator (ssg) made with Lua script.
git clone git://soucy.cc/satelito.git
Log | Files | Refs | README

commit 8336759e43d240aafda884e329fa251279d88fa9
parent a9a6b4b1ec8079424f4ed9726f3636c01c83ed39
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Thu,  4 Feb 2021 13:13:12 -0500

Remove the sample folder

Diffstat:
Dsample/config.lua | 44--------------------------------------------
Dsample/content/about.lua | 6------
Dsample/content/about.md | 9---------
Dsample/templates/default-index.html | 19-------------------
Dsample/templates/default.html | 16----------------
Dsample/templates/feed.xml.html | 31-------------------------------
Dsample/templates/head.html | 34----------------------------------
Dsample/templates/layout.html | 17-----------------
Dsample/templates/navigation.html | 9---------
9 files changed, 0 insertions(+), 185 deletions(-)

diff --git a/sample/config.lua b/sample/config.lua @@ -1,44 +0,0 @@ - ---[[ - Satelito website configuration file. - <https://soucy.cc/git/satelito/file/README.md.html> -]] - -return { - domainname = "luvgoude.tld", - url = "https://luvgoude.tld", - language = "en", - - metas = { - generator = "Satelito", - }, - - author = { - name = "Lua Luvgoude", - uri = "https://luvgoude.tld/#", - relme = { - "https://mastodon.sdf.org/@luvgoude", - "https://pixelfed.social/luvgoude", - "https://peertube.social/accounts/luvgoude", - "https://codeberg.org/luvgoude", - }, - }, - - -- Main paths - paths = { - content = 'content/', -- where are the source files - css = 'public_html/css/', - images = 'public_html/images/', - public_html = 'public_html/', - templates = 'templates/', - }, - - -- Accepted mime types of the non-textual content - mimetypes = { - 'image/svg+xml', - 'image/gif', - 'image/jpeg', - 'image/png', - 'application/pdf', - }, -} diff --git a/sample/content/about.lua b/sample/content/about.lua @@ -1,6 +0,0 @@ -return { - date = "2017-03-16", - datetime = "10:00:00", - posttype = "default", - title = "About", -} diff --git a/sample/content/about.md b/sample/content/about.md @@ -1,9 +0,0 @@ - -About this web site -=================== - -## Subtitle - -Phasellus at dui in ligula mollis ultricies. Nullam eu ante vel est -convallis dignissim. Aliquam posuere. Phasellus lacus. Donec neque -quam, dignissim in, mollis nec, sagittis eu, wisi. diff --git a/sample/templates/default-index.html b/sample/templates/default-index.html @@ -1,19 +0,0 @@ -<article> - <div> - <%- content %> - </div> - - <% if children then %> - <ol> - <% -- Desc sorting children %> - <% table.sort(children, function(a , b) return tonumber(a.time_created) > tonumber(b.time_created) end) %> - - <% for i, child in ipairs(children) do %> - <li> - <a href="<%= child.rellink -%>"><%= child.title -%></a> &mdash; - <time datetime="<%= child.date -%>T<%= child.datetime -%>"><%= child.date -%></time> - </li> - <% end %> - </ol> - <% end %> -</article> diff --git a/sample/templates/default.html b/sample/templates/default.html @@ -1,16 +0,0 @@ -<article> - <%- content %> - - <footer> - <p> - Published on - <time class="dt-published" datetime="<%= date -%>T<%= datetime -%>"><%= date -%></time>, - by - <a - href="<%= author.uri -%>" - rel="author"> - <i><%= author.name -%></i> - </a> - </p> - </footer> -</article> diff --git a/sample/templates/feed.xml.html b/sample/templates/feed.xml.html @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr"> - <title><%- title -%></title> - <% if description then %> - <subtitle><%- description -%></subtitle> - <% end %> - <id><%- id -%></id> - <link href="<%- dirlink -%>index.xml" rel="self" type="application/atom+xml" /> - <link href="<%= permalink -%>" rel="alternate" /> - <link href="https://creativecommons.org/licenses/by/2.5/ca/deed.fr" rel="license" /> - <updated><%- os.date('%Y-%m-%dT%H:%M:%S', time_modified_child) -%>Z</updated> - <author> - <name><%- author.name -%></name> - <email><%- author.email -%></email> - <uri><%- author.uri -%></uri> - </author> - - <% table.sort(children, function(a , b) return tonumber(a.time_created) > tonumber(b.time_created) end) %> - <% for i, child in ipairs(children) do %> - <entry> - <title><%- child.title -%></title> - <id><%- child.id -%></id> - <link href="<%= child.permalink -%>" hreflang="<%= child.language -%>" rel="alternate" type="text/html" /> - <published><%= child.date -%>T<%= child.datetime -%>Z</published> - <updated><%- os.date('%Y-%m-%dT%H:%M:%S', child.time_modification) -%>Z</updated> - <content type="html"> - <%= child.content -%> - </content> - </entry> - <% end %> -</feed> diff --git a/sample/templates/head.html b/sample/templates/head.html @@ -1,34 +0,0 @@ -<head> - <meta charset="utf-8" /> - <meta name="viewport" content="width=device-width, initial-scale=1" /> - - <title><%= title -%> &mdash; <%= domainname -%></title> - - <link href="<%= permalink -%>" hreflang="<%= language -%>" rel="canonical" /> - - <meta name="robots" content="index, follow" /> - <meta name="author" content="<%= author.name -%>" /> - <meta name="generator" content="<%= metas.generator -%>" /> - - <% if description then %> - <meta content="<%= description -%>" name="description" /> - <% end %> - - <% if keywords then %> - <% local _keywords = table.concat(keywords,',') %> - <meta name="keywords" content="<%= _keywords -%>" /> - <% end %> - - <!-- Atom Feed --> - <link - href="/index.xml" - hreflang="<%= language -%>" - rel="alternate" - title="Main feed" - type="application/atom+xml" /> - - <!-- Me elsewhere --> - <% for _, relme in ipairs(author.relme) do %> - <link href="<%= relme -%>" rel="me" /> - <% end %> -</head> diff --git a/sample/templates/layout.html b/sample/templates/layout.html @@ -1,17 +0,0 @@ -<!DOCTYPE html> -<html lang="<%= language -%>"> - <%- head %> - <body class="layout <%- template or posttype or 'default' -%>" id="t"> - <%- navigation -%> - - <main class="main" id="m"> - <%- post %> - </main> - - <footer class="footer-banner"> - <div> - <time><%= os.date('%Y') -%></time> - </div> - </footer> - </body> -</html> diff --git a/sample/templates/navigation.html b/sample/templates/navigation.html @@ -1,9 +0,0 @@ -<nav class="nav" id="n"> - <h2 class="nav__title">Navigation</h2> - - <ol class="nav__list"> - <li class="nav__item"> - <a href="/" rel="index">Home</a> - </li> - </ol> -</nav>