forked from Gitlink/forgeplus-react
marked.min升级匹配marked2.1.3版本,meta优化fix
This commit is contained in:
parent
12bf33f8e4
commit
795e8f3c3b
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -345,8 +345,8 @@ export function addMeta(name, content){
|
|||
*/
|
||||
export function setSeoMeta(keyWords, title, description, url, owner, projectId) {
|
||||
// 服务端没有location
|
||||
const host = window.location.host === 'null' || !window.location.host ? ssrHost : window.location.host
|
||||
const origin = window.location.origin === 'null' || !window.location.origin ? ssrOrigin : window.location.origin
|
||||
const host = window.location.host
|
||||
const origin = window.location.origin
|
||||
document.querySelector(`meta[property='og:title']`).content = title + ' | GitLink';
|
||||
document.querySelector(`title`).textContent = title + ' | GitLink';
|
||||
document.querySelector(`meta[property='og:url']`).content = origin + url;
|
||||
|
|
|
|||
Loading…
Reference in New Issue