Commit 2aba2b05 authored by prx's avatar prx

update example and upgrade to 0.9

parent 555d9974
SOURCEDIR=$(CURDIR)/example
DESTDIR=$(CURDIR)/example.static
SOURCEDIR=$(.CURDIR)/example
DESTDIR=$(.CURDIR)/example.static
all:
./swx $(SOURCEDIR)
sh ./swx $(SOURCEDIR)
./swx_sitemap $(DESTDIR) > $(DESTDIR)/sitemap.xml
gzip --best -c $(DESTDIR)/sitemap.xml > $(DESTDIR)/sitemap.gz
./swx_plan $(DESTDIR) > $(DESTDIR)/siteplan.html
./swx_rss $(SOURCEDIR) > $(DESTDIR)/feed.atom
./swx_blog $(DESTDIR)/index.html
./swx_atom $(SOURCEDIR) > $(DESTDIR)/feed.atom
./swx_blog $(SOURCEDIR)
clean:
rm -rf *.static
rm swx.log
......
Sat Sep 29 15:51:39 CEST 2018
<!doctype html>
<html>
<head>
<title>The title | articles - entry1</title>
<link rel="icon" href="/favicon.png" type="image/png">
<meta charset="UTF-8">
<meta name="author" content="batman" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<link rel="stylesheet" type="text/css" href="/style.css">
<link href="/feed.atom" type="application/atom+xml" rel="alternate"
title="Atom feed of my website" />
</head>
<body>
<a id="topOfPage"></a>
<header>
<h1 class='headerTitle'><a href='/'>The title</a></h1>
<div class='headerSubtitle'><a href='/'>The subtitle</a></div>
<nav id="menubar">
<details open id="menubarcontent">
<summary id="navbar">
<span id="login">visiteur</span>@<span id="userip">127.0.0.1</span> :
<a href='/' class="root">/</a>
<a href=".">articles</a>/
&gt; <i class='blink'></i>
</summary>
<div id='navlist'>
<a class="thisPage" href="entry1.html">entry1</a>
<a href="entry2.html">entry2</a>
<a href="ilikeswx.html">ilikeswx</a>
</div>
</details>
</nav>
</header>
<main>
<div id="article">
<h1 id="Entry%201">Entry 1</h1>
<p>Hi !</p>
</div>
</main>
<footer>
Le
29/09/2018 15:46
avec <a href="https://3hg.fr/Scripts/swx">swx</a>
&#8211; <a href="/Plan_du_site.html">Plan du site</a>
</footer>
</body>
</html>
<!doctype html>
<html>
<head>
<title>The title | articles - entry2</title>
<link rel="icon" href="/favicon.png" type="image/png">
<meta charset="UTF-8">
<meta name="author" content="batman" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<link rel="stylesheet" type="text/css" href="/style.css">
<link href="/feed.atom" type="application/atom+xml" rel="alternate"
title="Atom feed of my website" />
</head>
<body>
<a id="topOfPage"></a>
<header>
<h1 class='headerTitle'><a href='/'>The title</a></h1>
<div class='headerSubtitle'><a href='/'>The subtitle</a></div>
<nav id="menubar">
<details open id="menubarcontent">
<summary id="navbar">
<span id="login">visiteur</span>@<span id="userip">127.0.0.1</span> :
<a href='/' class="root">/</a>
<a href=".">articles</a>/
&gt; <i class='blink'></i>
</summary>
<div id='navlist'>
<a href="entry1.html">entry1</a>
<a class="thisPage" href="entry2.html">entry2</a>
<a href="ilikeswx.html">ilikeswx</a>
</div>
</details>
</nav>
</header>
<main>
<div id="article">
<h1 id="Entry%202">Entry 2</h1>
<p>Another page</p>
</div>
</main>
<footer>
Le
29/09/2018 15:46
avec <a href="https://3hg.fr/Scripts/swx">swx</a>
&#8211; <a href="/Plan_du_site.html">Plan du site</a>
</footer>
</body>
</html>
<!doctype html>
<html>
<head>
<title>The title | articles - ilikeswx</title>
<link rel="icon" href="/favicon.png" type="image/png">
<meta charset="UTF-8">
<meta name="author" content="batman" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<link rel="stylesheet" type="text/css" href="/style.css">
<link href="/feed.atom" type="application/atom+xml" rel="alternate"
title="Atom feed of my website" />
</head>
<body>
<a id="topOfPage"></a>
<header>
<h1 class='headerTitle'><a href='/'>The title</a></h1>
<div class='headerSubtitle'><a href='/'>The subtitle</a></div>
<nav id="menubar">
<details open id="menubarcontent">
<summary id="navbar">
<span id="login">visiteur</span>@<span id="userip">127.0.0.1</span> :
<a href='/' class="root">/</a>
<a href=".">articles</a>/
&gt; <i class='blink'></i>
</summary>
<div id='navlist'>
<a href="entry1.html">entry1</a>
<a href="entry2.html">entry2</a>
<a class="thisPage" href="ilikeswx.html">ilikeswx</a>
</div>
</details>
</nav>
</header>
<main>
<div id="article">
<h1 id="I%20like%20swx">I like swx</h1>
<p>Very much ! :)</p>
</div>
</main>
<footer>
Le
29/09/2018 15:46
avec <a href="https://3hg.fr/Scripts/swx">swx</a>
&#8211; <a href="/Plan_du_site.html">Plan du site</a>
</footer>
</body>
</html>
<!doctype html>
<html>
<head>
<title>My amazing website | articles - index</title>
<title>The title | articles - index</title>
<link rel="icon" href="/favicon.png" type="image/png">
<meta charset="UTF-8">
<meta name="author" content="Xavier Cartron" />
<meta name="author" content="batman" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<link rel="stylesheet" type="text/css" href="/style.css">
<link href="/feed.atom" type="application/atom+xml" rel="alternate"
title="Atom feed of my website" />
</head>
<body>
<a id="topOfPage"></a>
<header>
<h1 class="headerTitle">
<a href="../../index.html">My amazing website</a>
</h1>
<div class="headerSubtitle"><a href="/">It is so much amazing</a></div>
<h1 class='headerTitle'><a href='/'>The title</a></h1>
<div class='headerSubtitle'><a href='/'>The subtitle</a></div>
<nav id="menubar">
<details open id="menubarcontent">
<summary id="navbar">
<span id="login">visiteur</span>@<span id="userip">127.0.0.1</span> :
<a href='/' class="root">/</a>
<a href=".">articles</a>/
&gt; <i class='blink'></i>
</summary>
<div id='navlist'>
<a href="entry1.html">entry1</a>
<a href="entry2.html">entry2</a>
<a href="ilikeswx.html">ilikeswx</a>
</div>
</details>
</nav>
</header>
<nav>
<main>
<div id="article">
<ul>
<li><a class="thisPage" href="./index.html">.</a></li>
<li><a href="../index.html">..</a></li>
<li><a href="entry1.html ">entry1</a></li>
<li><a href="entry2.html ">entry2</a></li>
<li><a href="ilikeswx.html ">ilikeswx</a></li>
<li><a href="index.html ">index</a></li>
</ul>
</nav>
<main>
<a id="topOfPage"></a>
<H1>Articles</H1>
</div>
</main>
<footer>
Le 15/05/2016 à 12:06 avec <a href="http://yeuxdelibad.net/Programmation/swx.html">swx</a>
Le
29/09/2018 15:46
avec <a href="https://3hg.fr/Scripts/swx">swx</a>
&#8211; <a href="/Plan_du_site.html">Plan du site</a>
</footer>
- <a href="/feed.xml">RSS</a> -
<a href="#topOfPage" title="top">↑ En haut</a>
</footer>
</body>
</html>
<!doctype html>
<html>
<head>
<title>My amazing website | docs - index</title>
<title>The title | docs - index</title>
<link rel="icon" href="/favicon.png" type="image/png">
<meta charset="UTF-8">
<meta name="author" content="Xavier Cartron" />
<meta name="author" content="batman" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<link rel="stylesheet" type="text/css" href="/style.css">
<link href="/feed.atom" type="application/atom+xml" rel="alternate"
title="Atom feed of my website" />
</head>
<body>
<a id="topOfPage"></a>
<header>
<h1 class="headerTitle">
<a href="../../index.html">My amazing website</a>
</h1>
<div class="headerSubtitle"><a href="/">It is so much amazing</a></div>
</header>
<nav>
<ul>
<li><a class="thisPage" href="./index.html">.</a></li>
<li><a href="../index.html">..</a></li>
</ul>
<h1 class='headerTitle'><a href='/'>The title</a></h1>
<div class='headerSubtitle'><a href='/'>The subtitle</a></div>
<nav id="menubar">
<details open id="menubarcontent">
<summary id="navbar">
<span id="login">visiteur</span>@<span id="userip">127.0.0.1</span> :
<a href='/' class="root">/</a>
<a href=".">docs</a>/
&gt; <i class='blink'></i>
</summary>
<div id='navlist'>
</div>
</details>
</nav>
</header>
<main>
<a id="topOfPage"></a>
<H1>Some documents</H1>
<div id="article">
<h1 id="Some%20documents">Some documents</h1>
<P>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</P>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
</main>
<footer>
Le 15/05/2016 à 12:06 avec <a href="http://yeuxdelibad.net/Programmation/swx.html">swx</a>
Le
29/09/2018 15:46
avec <a href="https://3hg.fr/Scripts/swx">swx</a>
&#8211; <a href="/Plan_du_site.html">Plan du site</a>
</footer>
- <a href="/feed.xml">RSS</a> -
<a href="#topOfPage" title="top">↑ En haut</a>
</footer>
</body>
</html>
<!doctype html>
<html>
<head>
<title>My amazing website | example - index</title>
<title>The title | example - index</title>
<link rel="icon" href="/favicon.png" type="image/png">
<meta charset="UTF-8">
<meta name="author" content="Xavier Cartron" />
<meta name="author" content="batman" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<link rel="stylesheet" type="text/css" href="/style.css">
<link href="/feed.atom" type="application/atom+xml" rel="alternate"
title="Atom feed of my website" />
</head>
<body>
<a id="topOfPage"></a>
<header>
<h1 class="headerTitle">
<a href="../index.html">My amazing website</a>
</h1>
<div class="headerSubtitle"><a href="/">It is so much amazing</a></div>
</header>
<nav>
<ul>
<li><a href="articles">articles</a></li>
<li><a href="docs">docs</a></li>
</ul>
<h1 class='headerTitle'><a href='/'>The title</a></h1>
<div class='headerSubtitle'><a href='/'>The subtitle</a></div>
<nav id="menubar">
<details open id="menubarcontent">
<summary id="navbar">
<span id="login">visiteur</span>@<span id="userip">127.0.0.1</span> :
<a href='/' class="root">/</a>
&gt; <i class='blink'></i>
</summary>
<div id='navlist'>
<a href="articles">articles/</a>
<a href="docs">docs/</a>
<a href="img">img/</a>
</div>
</details>
</nav>
</header>
<main>
<a id="topOfPage"></a>
<div id="article">
<h1 id="Welcome">Welcome</h1>
<H1>Welcome</H1>
<p>Welcome on my amazing website.</p>
<P>
Welcome on my amazing website.
</P>
<P>
Here is a nice pic :
</P>
<P>
<IMG ALIGN="middle" SRC="/img/pic.jpg" BORDER="0" ALT="">
</P>
<p>Here is a nice pic :</p>
<H2>What's hot?</H2>
<p><img src="/img/pic.jpg" alt="nice pic" /></p>
%%%BLOG%%%
</main>
<h2 id="What&amp;#39;s%20hot?">What&#8217;s hot?</h2>
<div class="news">
<div class="news_link">
<a href="/index.html"><span class="news_title">Welcome</span></a>
</div>
<div class="news_link">
<a href="/articles/ilikeswx.html"><span class="news_title">I like swx</span></a>
</div>
<div class="news_link">
<a href="/articles/entry2.html"><span class="news_title">Entry 2</span></a>
</div>
<div class="news_link">
<a href="/articles/entry1.html"><span class="news_title">Entry 1</span></a>
</div>
<div class="news_link">
<a href="/articles/index.html"><span class="news_title">articles</span></a>
</div>
</div>
<h2 id="See%20ya%20!">See ya !</h2>
</div>
</main>
<footer>
Le 15/05/2016 à 12:06 avec <a href="http://yeuxdelibad.net/Programmation/swx.html">swx</a>
Le
29/09/2018 15:51
avec <a href="https://3hg.fr/Scripts/swx">swx</a>
&#8211; <a href="/Plan_du_site.html">Plan du site</a>
</footer>
- <a href="/feed.xml">RSS</a> -
<a href="#topOfPage" title="top">↑ En haut</a>
</footer>
</body>
</html>
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url>
<loc>https://domain.tld</loc>
<lastmod>2018-09-29</lastmod>
</url>
<url>
<loc>https://domain.tld//siteplan.html</loc>
</url>
<url>
<loc>https://domain.tld//articles/index.html</loc>
</url>
<url>
<loc>https://domain.tld//articles/entry1.html</loc>
</url>
<url>
<loc>https://domain.tld//articles/entry2.html</loc>
</url>
<url>
<loc>https://domain.tld//articles/ilikeswx.html</loc>
</url>
<url>
<loc>https://domain.tld//docs/index.html</loc>
</url>
<url>
<loc>https://domain.tld//index.html</loc>
</url>
</urlset>
<!doctype html>
<html>
<head>
<title>Plan du site</title>
<link rel=icon href=/favicon.png type=image/png>
<meta charset=UTF-8>
<link rel=stylesheet type=text/css href=/style.css>
</head>
<body>
<main>
☺ Utilisez la fonction recherche de votre navigateur (ctrl-f) pour trouver votre bonheur
<ul>
<li><a href="/articles/index.html">articles</a></li>
<ul>
<li><a href="/articles/entry1.html">entry1.html</a></li>
<li><a href="/articles/entry2.html">entry2.html</a></li>
<li><a href="/articles/ilikeswx.html">ilikeswx.html</a></li>
<li><a href="/articles/index.html">index.html</a></li>
</ul>
<li><a href="/docs/index.html">docs</a></li>
<ul>
<li><a href="/docs/index.html">index.html</a></li>
</ul>
<li><a href="/feed.atom">feed.atom</a></li>
<li><a href="/img">img</a></li>
<li><a href="/index.html">index.html</a></li>
<li><a href="/sitemap.gz">sitemap.gz</a></li>
<li><a href="/sitemap.xml">sitemap.xml</a></li>
<li><a href="/siteplan.html">siteplan.html</a></li>
<li><a href="/style.css">style.css</a></li>
</ul>
</main>
</body>
</html>
* { transition: all 0.4s ease;}
html,body {
width:100%;
min-height:100%;
margin:0;
}
body {
background-color:#fff;
body{
margin:1em auto;
max-width:40em;
padding:0 .62em;
font:1.2em/1.62 sans-serif;
}
h1,h2,h3 {
line-height:1.2;
}
a {
......@@ -19,64 +17,15 @@ a:hover {
text-decoration: underline;
}
h1 {
border-bottom:1px solid #aaa;
text-align:center;
text-transform:uppercase;
}
h2, h3 {
border-bottom:1px dotted #aaa;
}
h2, h3, h4 {text-align: left;}
p { margin:1ex auto; }
p+p {text-indent:2em;}
img {display:block; max-width: 100%; padding:1em; margin: auto}
blockquote {
padding : 20px;
font-family: sans-serif;
font-style: italic;
}
blockquote img {
margin:0;
padding:0 1ex 0 0;
vertical-align:middle;
}
pre {
border-left:3px solid #ccc ;
padding:1ex;
word-wrap:break-word;
overflow-x:auto;
}
img {
max-width:100%;
}
table {
border-color:#606060;
border-style:solid;
border-width:1px;
}
td, th, tr {
padding:5px;
vertical-align:middle;
border-color:transparent;
border-style:solid;
border-width:1px;
}
header {
text-align:center;
padding:10px;
background-color:transparent;
/*background: transparent url("/Images/bg/header-bg.jpg") no-repeat scroll center center / cover;*/
background: transparent url("https://source.unsplash.com/weekly") no-repeat scroll center center / cover;*/
width:34em;
margin-left:auto;
margin-right:auto;
......@@ -84,7 +33,7 @@ header {
header a {
color:#111;
text-shadow: 3px 3px 5px grey, 3px 3px 5px grey, 3px 3px 7px grey;
text-shadow: .3em .3em .3em #d7ddde ;
border: 0;
}
......@@ -98,59 +47,10 @@ header a {
width:100%;
}
nav {
font-family:sans-serif;
font-size:1em;
overflow:visible;
text-align:center;
background-color:lightgrey;
border:1px solid grey;
width:34em;
margin:auto auto 10px auto;
border-radius: 10px ;
}
nav a {
display:inline;
text-decoration:none;
padding:0 .5em;
}
nav ul {
list-style-type:none;
list-style-image:none;
margin:0;
padding:.3em;
}
nav li {
display:inline;
line-height:1.3em;
padding:.5em;
}
nav ul li a:hover {
color:#28952D;
text-decoration:none;
}
nav a.thisPage {
color:#eee;
font-weight: bold;
}
main {
color: #111;
text-align: justify;
width:34em;
padding:5px 8em;
margin: 10px auto;
line-height:1.4;
font-family:serif;
hyphens:auto;
}
footer {
font-size:0.8em;
background-color:transparent;
......@@ -167,15 +67,12 @@ footer img {
vertical-align:middle;
}
.article a {
font-style: italic;
main {
text-align:left;
margin:auto;
padding:1em 3em 1em 3em;
line-height:1.5;
max-width:60%;
}
.article {
border:1px #777 solid;
margin: 3ex auto;
padding:1ex;
background-color: #eee;
}
# Entry 2
Another page
# I like swx
Very much ! :)
Titre
Xavier Cartron
Dernière mise à jour: %%mtime(%d/%m/%Y)
%! encoding: utf-8
%!options: --toc --toc-level 4
=Articles=
Titre
Xavier Cartron
Dernière mise à jour: %%mtime(%d/%m/%Y)
%! encoding: utf-8
%!options: --toc --toc-level 4
=Some documents=
# Some documents
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.