diff --git a/cmd/gopcomm/yap/article_yap.html b/cmd/gopcomm/yap/article_yap.html index e80c0c7f..db4d3e1f 100644 --- a/cmd/gopcomm/yap/article_yap.html +++ b/cmd/gopcomm/yap/article_yap.html @@ -407,15 +407,15 @@

editMetaUrl() function editMetaUrl(){ - // 获取当前页面的 URL + // Get the URL of the current page var currentUrl = window.location.href; - // 查找 标签中的 og:url 属性 + // Find the og: URL attribute in thetag var ogUrlMeta = document.querySelector('meta[property="og:url"]'); - // 如果找到了 标签并且 og:url 属性存在 + // If thetag is found and the og: URL attribute exists if (ogUrlMeta) { - // 将 og:url 属性的内容设置为当前页面的 URL + // Set the content of the og: URL attribute to the URL of the current page ogUrlMeta.setAttribute('content', currentUrl); } }