1
0
Fork 0

Adds more HEAD injection options to config

This commit is contained in:
sloum 2023-12-21 16:05:24 -08:00
parent c925a3286f
commit e7560519dc
4 changed files with 28 additions and 0 deletions

View File

@ -42,6 +42,8 @@ Likely just me and a few friends. That said, anyone wanting a simple and lightwe
- `SHOW_DATES`, turn on or off dates next to post titles
- `DATE_STYLE`, php date format string for how dates should display
- `SIMPLE_CSS`, turn on or off including of _simple.css_ (can also be adjusted in the admin screen: `/admin.php`)
- `INDEX_HEAD`, injects additional tags at the end of the `<head>` element for `index.php`
- `POST_HEAD`, injects additional tags at the end of the `<head>` element for `post.php`
## Installation and usage

View File

@ -68,3 +68,27 @@ const DATE_STYLE = "m/d/y h:ia";
*/
const SIMPLE_CSS = false;
/*
* Adds custom data to the <head> element of the
* index.php page. This can be useful for linking
* to a favicon, additional stylesheets, javascript,
* etc. The <head> element will already exist and
* this string will be injected after all other
* <head> content.
*/
const INDEX_HEAD = false;
/*
* Adds custom data to the <head> element of the
* post.php page. This can be useful for linking
* to a favicon, additional stylesheets, javascript,
* etc. The <head> element will already exist and
* this string will be injected after all other
* <head> content.
*
* This CMS is not designed with SEO in mind and
* does not offer the ability to do per post meta
* data.
*/
const POST_HEAD = false;

View File

@ -16,6 +16,7 @@
<?php endif; ?>
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/admin-bar.css">
<?php echo INDEX_HEAD ?: ""; ?>
</head>
<body class="index">
<?php include_once "admin-bar-partial.php"; ?>

View File

@ -27,6 +27,7 @@
<?php endif; ?>
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/admin-bar.css">
<?php echo POST_HEAD ?: ""; ?>
</head>
<body class="post">
<?php include_once "admin-bar-partial.php"; ?>