Commit db86439a authored by Thuban's avatar Thuban
Browse files

examples

parent d0477e94
## SWX Configuration
#
## Site title
TITLE="Example"
SUBTITLE="Example subtitle"
TITLE="The title"
SUBTITLE="The subtitle"
# Black list. Won't be shown in menu
BL="favicon.png style.css style.min.css robots.txt"
HOSTNAME="example.net"
BL="favicon.svg style.css style.min.css robots.txt Images DL favicon.png apple-touch-icon.png"
HOSTNAME="domain.tld"
PROTOCOL="https://"
# External apps
#CONVERTER="/usr/bin/markdown" # md handler
# example with txt2tags
#CONVERTER='txt2tags -t html -H -o -'
#CONVERTER='discount -f +pants,+del,+autolink'
CONVERTER='lowdown -D html-skiphtml -E smarty -d metadata'
#CONVERTER='discount -f +pants,+del,+autolink'
EXT=".md" # extension of files to convert
#EXT=".t2t" # extension of files to convert
......@@ -22,23 +22,22 @@ EXT=".md" # extension of files to convert
#
## BLOG and ATOM
# Maximum entries in atom feed and blog first page
MAX=10
MAX=5
## BLOG
# String to replace with new articles list in first page
# if it's not present, nothing will be published as news (not blog)
NEWSSTR="%%%BLOOOOG%%%"
# page used as blog, usr the source directory as root "/"
# page used as blog, use the source directory as root "/"
NEWSPAGE="/index.md"
# Directory containing pages used as blog.
# set '/' for whole site
# All other pages on the website won't be in your feed
BLOGDIR="/"
BLOGDIR="/Blod/"
## ATOM
AUTHOR="batman"
EMAIL="batmant@foo.org"
EMAIL="batman@domain.tld"
# only for atom feed. Must be YYYY-MM-DD
FIRST_CREATION="2018-05-20"
......@@ -102,7 +102,7 @@ sw_page() {
_MENU_=$(sw_menu "${1}") \
_NAVPATH_=$(sw_navpath "${1}")\
_MAIN_=$(sw_main "${1}") \
_GENDATE_=$(date +'%d/%m/%Y -- %H:%M') \
_GENDATE_=$(date +'%d/%m/%Y %H:%M') \
envsubst < swx.template
}
......
<!doctype html>
<html lang="fr">
<html>
<head>
${_PAGETITLE_}
<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.min.css">
<link href="/feed.atom" type="application/atom+xml" rel="alternate" title="Atom feed " />
<link href="/feed.atom" type="application/atom+xml" rel="alternate"
title="Atom feed of my website" />
</head>
<body>
......@@ -15,9 +17,15 @@ ${_PAGETITLE_}
<header>
${_HEADER_}
<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>
${_NAVPATH_}
&gt; <i class='blink'></i>
</summary>
${_MENU_}
</details>
</nav>
</header>
<main>
......@@ -25,11 +33,54 @@ ${_MENU_}
${_MAIN_}
</div>
</main>
<aside id="sidebar">
<div class="tooltip">
<a href="/feed.atom" class="icon">📰</a>
<span class="tooltiptext">
Flux ATOM pour s'abonner
</span>
</div>
<div class="tooltip">
<a class="icon" href="/Liens/">🔖</a>
<span class="tooltiptext">
Vu sur le web
</span>
</div>
<div class="tooltip">
<a href="mailto:thuban@yeuxdelibad.net?subject=Commentaire%20sur%20yeuxdelibad.net" class="icon">📧</a>
<span class="tooltiptext">
Commenter cette page
</span>
</div>
<div class="tooltip">
<a href="#topOfPage" class="icon"></a>
<span class="tooltiptext">
En haut de page
</span>
</div>
<div class="tooltip" id="modalBtn">
<a href="#" class="icon">🔎</a>
<span class="tooltiptext" id="searchPopup">
Rechercher sur ce site
</span>
</div>
<div class="tooltip">
<a href="/Contact.html#encouragements" class="icon">♥️</a>
<span class="tooltiptext">
Donate
</span>
</div>
</aside>
<footer>
Le
${_GENDATE_}
avec <a href="https://3hg.fr/Scripts/swx">swx</a>
&#8211; <a href="/Plan_du_site.html">Plan du site</a>
</footer>
</body>
</html>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment