import { Component } from "inferno";
import { Helmet } from "inferno-helmet";
import { httpExternalPath } from "../../env";
-import { md } from "../../utils";
+import { getLanguages, md } from "../../utils";
interface HtmlTagsProps {
title: string;
const url = httpExternalPath(this.props.path);
const desc = this.props.description;
const image = this.props.image;
+ const lang = getLanguages()[0];
return (
<Helmet title={this.props.title}>
+ <html lang={lang == "browser" ? "en" : lang} />
+
{["title", "og:title", "twitter:title"].map(t => (
<meta key={t} property={t} content={this.props.title} />
))}