3 Commits

Author SHA1 Message Date
manfromhuh ad07963e4b Add article tags 2022-07-17 18:06:22 -04:00
manfromhuh 5cce4f0b0d Update the pfp size CSS
Add a pfp-small class and adjust the pfp size to 50px by 50px.
2022-07-17 18:01:55 -04:00
manfromhuh a0e3de1200 Update to use the new md_read.php 2022-07-17 17:55:56 -04:00
3 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ if (file_exists($dir) && is_dir($dir) ) {
$link_title = str_replace($_replace,'',$link_title);
if (file_exists($file."/pfp.png")){
$pfp_path = "$file/pfp.png";
echo("<ul><li><img src=\"$pfp_path\" class=\"pfp\" name=\"$file pfp\"><a href='$file'> $link_title </a></li></ul>\n");//Output the result.
echo("<ul><li><img src=\"$pfp_path\" class=\"pfp-small\" name=\"$file pfp\"><a href='$file'> $link_title </a></li></ul>\n");//Output the result.
} else {
echo("<ul><li><a href='$file'> $link_title </a></li></ul>\n");//Output the result.
}
+4
View File
@@ -4,11 +4,15 @@
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/php/menu.php');
//Looks for an article.md to see if the current directory is an article or not
//If it is not then it is a menu page.
echo "<article>";
if (file_exists('byline.md')){
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/php/md_read.php');
echo read_md('byline.md');
}
if (file_exists('author.md')){
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/php/md_read.php');
echo read_md('author.md');
}
echo "</article>";
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/php/footer.php');
?>
+8
View File
@@ -126,6 +126,14 @@ img.center_align{
vertical-align:middle;
}
img.pfp {
vertical-align: middle;
width: 50px;
height: 50px;
border-radius: 25px;
border-style: solid;
border-width: 1px;
}
img.pfp-small {
vertical-align: middle;
width: 25px;
height: 25px;