Update for new mkht.php version

This commit is contained in:
Miraty 2023-05-30 22:55:00 +02:00
parent 66b4d022f3
commit c3deb772fc
3 changed files with 15 additions and 12 deletions

9
.gitignore vendored
View File

@ -1,9 +1,10 @@
css/*
*.gz
*.md
!src/*.md
!README.md
!/src/*.md
*.gmi
!src/*.gmi
!/src/*.gmi
!/README.md
*.html
!*.inc.html
!/*.inc.html
*.atom

View File

@ -1,14 +1,16 @@
; Used in <title> and <header>
siteTitle = "Antopie"
; Whether to advertise the CSS file in the HTML document or not
css = true
title = "Antopie"
; Whether to add a <header> tag to the HTML document or not
header = true
; Whether to center text on indexes or not
centerIndex = true
center-index = true
; Which language to add to <html lang="?"> if not found in file extension
defaultLang = "fr"
default-lang = "fr"
announce-feed = false
announce-css = true
id = "5a85b380db3cb27bcd71ed24cfd27b01652a47921b4764248688ce02d0d525f3"

View File

@ -6,9 +6,9 @@
<a href="<?= clearnetOrOnion('https://miraty.antopie.org/fr/contact.html', 'http://miraty.sou4vla4k5peskbl3dlzhh3e6ve5eu3m3hhsmiidqevlsd6lqo3qq2ad.onion/fr/contact.html') ?>" class="button">Me contacter</a>
<br>
<?php if (DESTINATION === "onion") { ?>
<a href="https://antopie.org/<?= $pathParts['filename'] ?>" class="button">Accès <abbr title="Domain Name System">DNS</abbr></a>
<a href="https://antopie.org/<?= $path_parts['filename'] ?>" class="button">Accès <abbr title="Domain Name System">DNS</abbr></a>
<?php } else { ?>
<a href="http://sou4vla4k5peskbl3dlzhh3e6ve5eu3m3hhsmiidqevlsd6lqo3qq2ad.onion/<?= $pathParts['filename'] ?>" class="button">Accès Onion</a>
<a href="http://sou4vla4k5peskbl3dlzhh3e6ve5eu3m3hhsmiidqevlsd6lqo3qq2ad.onion/<?= $path_parts['filename'] ?>" class="button">Accès Onion</a>
<?php } ?>
</div>
<div>