diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-06-23 20:40:55 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-06-23 20:40:55 +0200 |
commit | 1f7fd32437245a78e14cbf0795dcd88685ddf436 (patch) | |
tree | 74a83f0767f9931175cdc45149119bc58ad2ac2a /inc | |
parent | Working fine (diff) | |
download | joe-www-1f7fd32437245a78e14cbf0795dcd88685ddf436.tar.gz joe-www-1f7fd32437245a78e14cbf0795dcd88685ddf436.tar.bz2 joe-www-1f7fd32437245a78e14cbf0795dcd88685ddf436.tar.xz joe-www-1f7fd32437245a78e14cbf0795dcd88685ddf436.tar.zst joe-www-1f7fd32437245a78e14cbf0795dcd88685ddf436.zip |
php rework
Diffstat (limited to '')
-rw-r--r-- | inc/classic-contents.inc.php (renamed from index.html) | 44 | ||||
-rw-r--r-- | inc/index.php | 1 |
2 files changed, 23 insertions, 22 deletions
diff --git a/index.html b/inc/classic-contents.inc.php index 4adf55d..280558a 100644 --- a/index.html +++ b/inc/classic-contents.inc.php @@ -1,14 +1,25 @@ +<?php +function +jo_head($title) { +?> <html> <head> - <title>Joe's own website</title> + <title>Joe's own website - <?php echo "$title"; ?></title> <link rel="stylesheet" type="text/css" href="css/site.css"> - <meta charset="UTF-8"> + <meta charset="UTF-8"> </head> <body> <div class="fullpage"> <header> - <h1>Joe's dev blog</h1> + <h1>Joe's dev blog - <?php echo "$title"; ?></h1> </header> +<?php +} + +function +jo_sidebar() { +?> + <div class="sidebar"> <ul> <li> @@ -43,22 +54,11 @@ </li> </ul> </div> - <div class="body-contents"> - <h1>About this site</h1> - <p> - Welcome to my personnal blog. Here you can find my tips and articles - on various tech and programming subjects. - <br><br> - The site is still in active developpement, stay tuned. - </p> - <h1>About me</h1> - <p> - I am a student for - <a href="https://www.42lyon.fr/" target="_blank">42Lyon</a> - IT school based in Lyon, France. - I work on various personnal project beside that. - </p> - </div> +<?php +} +function +jo_footer() { +?> <footer> <p> Copyright Joe 2020 - @@ -66,6 +66,6 @@ we do not use cookies </p> </footer> - </div> - </body> -</html> +<?php +} +?> diff --git a/inc/index.php b/inc/index.php new file mode 100644 index 0000000..d29ead0 --- /dev/null +++ b/inc/index.php @@ -0,0 +1 @@ +<?php header("Location: ../"); ?> |