mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Wired up publication name attribute
fixes https://github.com/TryGhost/Team/issues/1776
This commit is contained in:
parent
35ed0af99d
commit
94d72c2846
2 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
import { useContext } from 'react';
|
import {useContext} from 'react';
|
||||||
import AppContext from '../AppContext';
|
import AppContext from '../AppContext';
|
||||||
import Comment from './Comment';
|
import Comment from './Comment';
|
||||||
import RepliesPagination from './RepliesPagination';
|
import RepliesPagination from './RepliesPagination';
|
||||||
|
|
|
@ -41,7 +41,7 @@ function getSiteData() {
|
||||||
const stylesUrl = scriptTag.dataset.styles;
|
const stylesUrl = scriptTag.dataset.styles;
|
||||||
const title = scriptTag.dataset.title === 'null' ? null : scriptTag.dataset.title;
|
const title = scriptTag.dataset.title === 'null' ? null : scriptTag.dataset.title;
|
||||||
const showCount = scriptTag.dataset.count === 'true';
|
const showCount = scriptTag.dataset.count === 'true';
|
||||||
const publication = 'The Off-Season'; // TODO: replace with dynamic data from script
|
const publication = scriptTag.dataset.publication ?? ''; // TODO: replace with dynamic data from script
|
||||||
|
|
||||||
return {siteUrl, stylesUrl, apiKey, apiUrl, sentryDsn, postId, adminUrl, colorScheme, avatarSaturation, accentColor, appVersion, commentsEnabled, title, showCount, publication};
|
return {siteUrl, stylesUrl, apiKey, apiUrl, sentryDsn, postId, adminUrl, colorScheme, avatarSaturation, accentColor, appVersion, commentsEnabled, title, showCount, publication};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue