diff --git a/README.md b/README.md index 43fb0b7..2586f24 100755 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ The following files have special meaning: `/end.inc.html` : added just before `` -Files starting with a dot (except for `.htaccess`) are ignored. +Files starting with a dot (except for `.htaccess` and `.well-known`) are ignored. Files containing `draft` in their name (separated from other characters by `.`) are ignored. @@ -62,7 +62,7 @@ IDs are attributed to titles according to their content, therefore modifying a t * Make sure modification timestamps of source files are preserved. For example, `cp --preserve=timestamps` must be used instead of just `cp` when backing up or migrating. * Renaming/moving a page creates a new page and delete the older. -## External dependencies +## Dependencies * PHP * gzip diff --git a/mkht.php b/mkht.php index 662b754..696ffe5 100755 --- a/mkht.php +++ b/mkht.php @@ -64,7 +64,7 @@ foreach($nodes as $node) { $path_parts_src = pathinfo($src); $path_parts_target = pathinfo($target); - if (strstr($src, '/.') !== false AND !str_ends_with($src, '/.htaccess')) // Skip hidden nodes (except for .htaccess) + if (preg_match('#/\.(?!htaccess|well-known)#', $src) !== 0) // Skip hidden nodes other than .htaccess and .well-known continue; if ($node_info->getType() !== 'file') continue; diff --git a/style.css b/style.css index f54fecd..1749039 100644 --- a/style.css +++ b/style.css @@ -1,6 +1,3 @@ -@light: ~"(prefers-color-scheme: light)"; -@dark: ~"(prefers-color-scheme: dark)"; - :root { --dark-color: #141312; --light-color: #FFFFFF;