From a6f86c3a94bf6dfe5fa0c88fe11f6eb80557e914 Mon Sep 17 00:00:00 2001 From: Miraty Date: Tue, 30 Aug 2022 16:40:30 +0200 Subject: [PATCH] Remove extensionless HTML --- README.md | 1 - mkht.php | 11 +---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/README.md b/README.md index 19acef5..ad153d3 100755 --- a/README.md +++ b/README.md @@ -14,7 +14,6 @@ Optional files: `mkht.php ` `destination` is optionnal and can be: -* `dns` if you want local links without exensions * `onion` if you want links ending with .onion when available # Input diff --git a/mkht.php b/mkht.php index fc2b04b..4aa85d1 100755 --- a/mkht.php +++ b/mkht.php @@ -18,7 +18,7 @@ else if (isset($argv[2])) define("DESTINATION", $argv[2]); else - define("DESTINATION", "local"); + define("DESTINATION", "dns"); if (file_exists(SITE . "/config.ini")) $config = parse_ini_file(SITE . "/config.ini"); @@ -63,15 +63,6 @@ if ($config['css'] == true) { define("CSS_FILENAME", Less_Cache::Get($lessFiles, $options, $colorScheme)); } -// URLs don't end with .html on the Antopie website -function formerUrlLocale($page) { - if (DESTINATION === "dns" OR DESTINATION === "onion") { - echo $page; - } else { - echo $page . ".html"; - } -} - // Determine whether links need to use Onion or DNS function clearnetOrOnion($clearnetUrl, $onionUrl) { if (DESTINATION === "onion") {