add metadata, fix metadata #257
1 changed files with 3 additions and 3 deletions
|
@ -6,14 +6,15 @@
|
|||
|
||||
import html from "choo/html";
|
||||
|
||||
// U T I L S
|
||||
// U T I L
|
||||
|
||||
import config from "@root/config";
|
||||
|
||||
|
||||
|
||||
// E X P O R T
|
||||
|
||||
export default (state, emit) => {
|
||||
|
||||
const newMetadata = state.lbry;
|
||||
const description = newMetadata && newMetadata.description ? newMetadata.description : config.meta.description;
|
||||
const title = newMetadata && newMetadata.title ? newMetadata.title + " - lbry.tech" : "lbry.tech - " + config.meta.tagline;
|
||||
|
@ -21,7 +22,6 @@ export default (state, emit) => {
|
|||
if (state.title !== title) emit(state.events.DOMTITLECHANGE, title);
|
||||
state.page = state.page || { };
|
||||
|
||||
|
||||
return html`
|
||||
<meta charset="utf-8"/>
|
||||
<title>${title}</title>
|
||||
|
|
Loading…
Reference in a new issue