Adds more HEAD injection options to config
This commit is contained in:
parent
c925a3286f
commit
e7560519dc
|
@ -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
|
||||
|
|
24
config.php
24
config.php
|
@ -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;
|
||||
|
||||
|
|
|
@ -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"; ?>
|
||||
|
|
Loading…
Reference in New Issue