From bfaccc32571df8a02f69518d8864244efba3b5b5 Mon Sep 17 00:00:00 2001 From: 53hornet Date: Wed, 28 Jul 2021 10:58:58 -0400 Subject: php site, templating and partials, faster index generation --- includes/head.php | 184 +++++++++++++++++++++++++++ includes/icons/.!26569!card-account-mail.svg | 0 includes/icons/.!89047!card-account-mail.svg | 0 includes/nav.php | 44 +++++++ includes/stylesheet.css | 145 --------------------- includes/template.php | 6 + 6 files changed, 234 insertions(+), 145 deletions(-) create mode 100644 includes/head.php delete mode 100644 includes/icons/.!26569!card-account-mail.svg delete mode 100644 includes/icons/.!89047!card-account-mail.svg create mode 100644 includes/nav.php delete mode 100644 includes/stylesheet.css create mode 100644 includes/template.php (limited to 'includes') diff --git a/includes/head.php b/includes/head.php new file mode 100644 index 0000000..c0a614b --- /dev/null +++ b/includes/head.php @@ -0,0 +1,184 @@ + + + + + + + + + + + + 53hornet ➙ %s', $title); + } else { + echo '53hornet'; + } + ?> + + + + + +
+ %s', $title); + } + ?> diff --git a/includes/icons/.!26569!card-account-mail.svg b/includes/icons/.!26569!card-account-mail.svg deleted file mode 100644 index e69de29..0000000 diff --git a/includes/icons/.!89047!card-account-mail.svg b/includes/icons/.!89047!card-account-mail.svg deleted file mode 100644 index e69de29..0000000 diff --git a/includes/nav.php b/includes/nav.php new file mode 100644 index 0000000..87b9175 --- /dev/null +++ b/includes/nav.php @@ -0,0 +1,44 @@ + diff --git a/includes/stylesheet.css b/includes/stylesheet.css deleted file mode 100644 index a40bb5f..0000000 --- a/includes/stylesheet.css +++ /dev/null @@ -1,145 +0,0 @@ -@font-face { - font-family: "Iosevka Slab"; - font-display: swap; - src: url("/includes/iosevka-slab-regular.woff2"); -} - -:root { - --balboa: #195970; - --ruby: #9b111e; - --slate: #b9c2ca; - --charcoal: #798d94; - --white: white; - --box-radius: 0.5em; - --box-border: 0.5em solid var(--white); -} - -body { - font-family: "Iosevka Slab", monospace; - font-size: 1.5em; - background-color: var(--balboa); - color: var(--white); - max-width: 50em; - margin: auto; - padding: 1em; -} - -hr { - color: var(--white); -} - -nav { - list-style-type: none; - text-align: center; -} - -nav ul { - padding: 0; - margin: 0; -} - -nav li { - display: inline-block; - margin: 0.5em; - padding: 0.5em; -} - -nav img { - padding-right: 0.5em; -} - -nav a:link, -nav a:visited, -nav a:hover, -nav a:active { - display: flex; - align-items: center; - color: var(--white); - text-decoration: none; -} - -a:link { - color: var(--slate); -} - -a:visited { - color: var(--charcoal); -} - -pre { - white-space: pre-wrap; - display: block; - background-color: var(--charcoal); - padding: 1em; - border-radius: var(--box-radius); - border-left: var(--box-border); - border-right: var(--box-border); -} - -.description { - background-color: var(--ruby); - padding: 1em; - border-radius: var(--box-radius); - border-left: var(--box-border); - border-right: var(--box-border); -} - -h1, -blockquote { - font-style: oblique; -} - -header { - text-align: center; -} - -article ul { - list-style: none; - padding: 0; - margin: 0; -} - -article ul li { - padding: 0.5em; -} - -article ul li:before { - content: "➙"; - padding-right: 0.5em; -} - -article ol li { - padding: 0.5em; -} - -p img { - display: block; - margin-left: auto; - margin-right: auto; - max-width: 75%; - height: auto; - border-radius: var(--box-radius); - border-left: var(--box-border); - border-right: var(--box-border); -} - -iframe { - display: block; - margin-left: auto; - margin-right: auto; -} - -.list { - overflow-x: auto; -} - -.list table { - width: 100%; -} - -.list td, -th { - padding: 0.5em; - text-align: left; - border-bottom: 1px solid var(--charcoal); -} diff --git a/includes/template.php b/includes/template.php new file mode 100644 index 0000000..5ff90f4 --- /dev/null +++ b/includes/template.php @@ -0,0 +1,6 @@ +