Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b4ffc0b9f8 | |||
| b40b877a3f | |||
| 7734de9fa4 | |||
| 470773721a | |||
| 5d7b4cc121 | |||
| efe61157e8 |
29
README.md
29
README.md
@@ -49,14 +49,14 @@ Contains the blog articles. The articles are placed in subdirectories of `by_yea
|
|||||||
|
|
||||||
```
|
```
|
||||||
├── by_year
|
├── by_year
|
||||||
│ ├── 2021
|
│ ├── 2021
|
||||||
│ │ ├── 12
|
│ │ ├── 12
|
||||||
│ │ └── index.php -> /path/to/common/index.php
|
│ │ └── index.php -> /path/to/common/index.php
|
||||||
│ ├── 2022
|
│ ├── 2022
|
||||||
│ │ ├── 01
|
│ │ ├── 01
|
||||||
│ │ ├── 02
|
│ │ ├── 02
|
||||||
│ │ └── index.php -> /path/to/common/index.php
|
│ │ └── index.php -> /path/to/common/index.php
|
||||||
│ └── index.php
|
│ └── index.php
|
||||||
└── index.php -> /path/to/common/index.php
|
└── index.php -> /path/to/common/index.php
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -71,16 +71,13 @@ This directory contains the files and libraries used to render the site's pages.
|
|||||||
|
|
||||||
#### CSS
|
#### CSS
|
||||||
|
|
||||||
* [styles.css](/git/20xd6/simple_blog/src/branch/master/common/styles.css) - The main site CSS.
|
* [styles.css](/git/20xd6/simple_blog/src/branch/master/common/css/styles.css) - The main site CSS.
|
||||||
* [jmenu.css]() - Used to render the responsive menus.
|
* [jmenu.css](/git/20xd6/simple_blog/src/branch/master/common/css/jmenu.css) - Used to render the responsive menus.
|
||||||
* [print.css]() - Used to style printed pages.
|
* [print.css](/git/20xd6/simple_blog/src/branch/master/common/css/print.css) - Used to style printed pages.
|
||||||
* [gallery.css]() - Styles the floating
|
|
||||||
|
|
||||||
#### JS
|
#### [JS](/git/20xd6/simple_blog/src/branch/master/common/js)
|
||||||
|
|
||||||
* font_size.js
|
* [page_format.js](/git/20xd6/simple_blog/src/branch/master/common/js/page_format.js) - The main JS file used for formatting and adding extra functions to pages.
|
||||||
* [page_format.js]() - The main JS file used for formatting and adding extra functions to pages.
|
|
||||||
* gallery.js
|
|
||||||
|
|
||||||
#### PHP
|
#### PHP
|
||||||
|
|
||||||
|
|||||||
@@ -22,20 +22,17 @@
|
|||||||
|
|
||||||
echo "\n</div><!--End of print-content div-->\n";
|
echo "\n</div><!--End of print-content div-->\n";
|
||||||
echo("<nav class=\"jmenu\"><div class=\"pmenu\"><ul id=\"back_btn\"><li><a href='..'>Back</a></li></ul></div></nav>\n");
|
echo("<nav class=\"jmenu\"><div class=\"pmenu\"><ul id=\"back_btn\"><li><a href='..'>Back</a></li></ul></div></nav>\n");
|
||||||
if (file_exists('author')){
|
if (file_exists('author') && (filesize('author') != 0)){
|
||||||
$author_name_raw = fopen('author', 'r');
|
$author_name_raw = fopen('author', 'r');
|
||||||
$author_name = fread($author_name_raw, filesize('author'));
|
$author_name = fread($author_name_raw, filesize('author'));
|
||||||
$author_name = str_replace("\n", "", $author_name);
|
$author_name = str_replace("\n", "", $author_name);
|
||||||
$byline_path = $_SERVER['DOCUMENT_ROOT'].'blog/authors/'.$author_name.'/byline.md';
|
$byline_path = $_SERVER['DOCUMENT_ROOT'].'blog/authors/'.$author_name.'/byline.md';
|
||||||
if (file_exists($byline_path)){
|
if (file_exists($byline_path)){
|
||||||
echo "<div class =\"byline\">\n"
|
echo "<div class =\"byline\">\n"
|
||||||
. read_md($byline_path)
|
. read_md($byline_path)
|
||||||
."</div><!--End byline div-->\n";
|
."</div><!--End byline div-->\n";
|
||||||
} else {
|
}
|
||||||
echo "<h2>No byline</h2>";
|
fclose($author_name_raw);
|
||||||
echo "<p>$byline_path</p>";
|
|
||||||
}
|
|
||||||
fclose($author_name_raw);
|
|
||||||
}
|
}
|
||||||
if ($tag_data != NULL){
|
if ($tag_data != NULL){
|
||||||
$page_tags = str_getcsv($tag_data);
|
$page_tags = str_getcsv($tag_data);
|
||||||
|
|||||||
Reference in New Issue
Block a user