"use strict"; // P A C K A G E S const html = require("choo-async/html"); const local = require("app-root-path").require; // V A R I A B L E const config = local("/config"); // E X P O R T module.exports = exports = () => async (state) => { let pageTitle = ""; if (state.route && state.route !== "/" && state.route !== "*") pageTitle = state.route.charAt(0).toUpperCase() + state.route.slice(1); if (state.params.wildcard) pageTitle = state.params.wildcard.charAt(0).toUpperCase() + state.params.wildcard.slice(1); return html`${[ html``, html`${pageTitle.length ? pageTitle + " | " : ""}${config.meta.title} · ${config.meta.tagline}`, html``, html``, html``, html``, html``, // Open Graph html``, html``, html``, html``, html``, html``, // Social/App Stuff html``, html``, html``, html``, html``, html``, html``, html``, html``, html``, html``, html``, html`` ]}`; };