mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-22 19:01:26 +00:00
Merge branch 'main' into avatar-aspect-ratio-fix
This commit is contained in:
commit
636d87e4cc
3 changed files with 6 additions and 3 deletions
|
@ -346,7 +346,7 @@ async function createSsrHtml(root: string, isoData: IsoDataOptionalSite) {
|
|||
|
||||
return `
|
||||
<!DOCTYPE html>
|
||||
<html ${helmet.htmlAttributes.toString()} lang="en">
|
||||
<html ${helmet.htmlAttributes.toString()}>
|
||||
<head>
|
||||
<script>window.isoData = ${sanitize(JSON.stringify(isoData))}</script>
|
||||
<script>window.lemmyConfig = ${serialize(config)}</script>
|
||||
|
|
|
@ -2,7 +2,7 @@ import { htmlToText } from "html-to-text";
|
|||
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;
|
||||
|
@ -17,9 +17,12 @@ export class HtmlTags extends Component<HtmlTagsProps, any> {
|
|||
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} />
|
||||
))}
|
||||
|
|
|
@ -1421,7 +1421,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
|||
this.setState({ showEdit: false });
|
||||
}
|
||||
|
||||
// The actual editing is done in the recieve for post
|
||||
// The actual editing is done in the receive for post
|
||||
handleEditPost() {
|
||||
this.setState({ showEdit: false });
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue