diff --git a/.gitignore b/.gitignore index 1320fe3..457728d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ composer.lock vendor/ content/* -!content/default.md \ No newline at end of file +!content/default.md +.vscode \ No newline at end of file diff --git a/android-chrome-192x192.png b/android-chrome-192x192.png new file mode 100644 index 0000000..58c46f3 Binary files /dev/null and b/android-chrome-192x192.png differ diff --git a/apple-touch-icon.png b/apple-touch-icon.png new file mode 100644 index 0000000..ce79460 Binary files /dev/null and b/apple-touch-icon.png differ diff --git a/apps/apps.php b/apps/apps.php index 2abb66b..5ad3bc1 100644 --- a/apps/apps.php +++ b/apps/apps.php @@ -3,12 +3,13 @@ /** * Améliore la sortie print * - * @author Tatane http://www.tatane.info/index.php/print_rn - * @author http://www.blog.cactuscrew.com/77-print_rn.html - * @param $data (array) tableau ou variable à examiner - * @param $name (string) nom a afficher - * @return false affiche les clef valeur du tableau $data - * @example n_print($array, 'Tableau de valeur'); + * @author Tatane http://www.tatane.info/index.php/print_rn + * @author http://www.blog.cactuscrew.com/77-print_rn.html + * @author Knah Tsaeb + * @global + * @param mixed $data + * @param string $name Default: '' + * @return void */ function n_print($data, $name = '') { @@ -20,24 +21,54 @@ function n_print($data, $name = '') echo '
'; } +/** + * Return list dir of content + * + * @author Knah Tsaeb + * @global + * @return array + */ function listDir() { $dirList = array(); foreach (glob("content/*", GLOB_ONLYDIR) as $dir) { $dirList[basename($dir)] = listFile($dir); } + if (empty($dirList)) { + $dirList = array(); + } return $dirList; } +/** + * Return list file in dir + * + * @author Knah Tsaeb + * @global + * @param mixed $dir + * @return mixed + */ function listFile($dir) { $fileList = array(); foreach (glob($dir . "/*.md") as $dir) { $fileList[] = str_replace('.md', '', basename($dir)); } + if (empty($fileList)) { + $fileList = array(); + } + return $fileList; } +/** + * Gen navigation menu + * + * @author Knah Tsaeb + * @global + * @param string $getDir Default: null + * @return string + */ function makeMenu($getDir = null) { $dirList = listDir(); @@ -63,6 +94,13 @@ function makeMenu($getDir = null) return $menu; } +/** + * Add lazy loading attribute for img + * + * @author Knah Tsaeb + * @see ParsedownToc + * @global + */ class ExtendParsedownToc extends ParsedownToc { public function inlineImage($Excerpt) diff --git a/browserconfig.xml b/browserconfig.xml new file mode 100644 index 0000000..b3930d0 --- /dev/null +++ b/browserconfig.xml @@ -0,0 +1,9 @@ + + + + + + #da532c + + + diff --git a/content/default.md b/content/default.md index 4318526..555f297 100644 --- a/content/default.md +++ b/content/default.md @@ -33,12 +33,12 @@ Put your markdown file in 'content' dir via FTP OR SSH. That's all. -You can personalize the default page by creating file **content/index.md**. +You can personalize the default start page by creating file **content/index.md**. ### Advanced usage Use synchronisation tools like NextCloud. Sync 'content' dir with your desktop. -Now just edit your local file and when you save file, after synchro your file is online. +Now just edit your local file and when you save file, after synchro, your file is online. --- diff --git a/favicon-16x16.png b/favicon-16x16.png new file mode 100644 index 0000000..255ec97 Binary files /dev/null and b/favicon-16x16.png differ diff --git a/favicon-32x32.png b/favicon-32x32.png new file mode 100644 index 0000000..c97f7f5 Binary files /dev/null and b/favicon-32x32.png differ diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..283c217 Binary files /dev/null and b/favicon.ico differ diff --git a/humans.txt b/humans.txt index e20d82c..734dff9 100644 --- a/humans.txt +++ b/humans.txt @@ -1,5 +1,4 @@ /* TEAM */ - Chef:Juanjo Bernabeu Contact: Knah-Tsaeb_mynovi [at] knah-tsaeb.org diff --git a/mstile-150x150.png b/mstile-150x150.png new file mode 100644 index 0000000..0d74ede Binary files /dev/null and b/mstile-150x150.png differ diff --git a/safari-pinned-tab.svg b/safari-pinned-tab.svg new file mode 100644 index 0000000..7da829c --- /dev/null +++ b/safari-pinned-tab.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/site.webmanifest b/site.webmanifest new file mode 100644 index 0000000..0e0e858 --- /dev/null +++ b/site.webmanifest @@ -0,0 +1,14 @@ +{ + "name": "", + "short_name": "", + "icons": [ + { + "src": "/android-chrome-192x192.png", + "sizes": "192x192", + "type": "image/png" + } + ], + "theme_color": "#ffffff", + "background_color": "#ffffff", + "display": "standalone" +} diff --git a/tpl/header.html b/tpl/header.html index e6264f4..692c28f 100644 --- a/tpl/header.html +++ b/tpl/header.html @@ -11,6 +11,21 @@ - + + + + + + + + + + + + + + + + \ No newline at end of file