出于某种原因,我开始管理的一个网站正在Dreamweaver上运行,为了更新帖子和提要,我必须编辑一个news.json文件。
问题是,这些只是在这里设置的字段,而元标题和元描述都是相同的。
"ID": "20190814-01",
"title": " Post Titles",
"date": "(August 14, 2019) — ",
"shortDesc": "Description of post/excerpt for posts landing page",
"fullStory": "Full content of post",
"displayDate": "Article was posted on August 14, 2019."由于我不熟悉这种格式,是否可以找到并输入像"metaTitle"、"metaDescription"这样的字段?
为了让这些文件显示出来,我还需要修改其他文件吗?
发布于 2019-08-27 13:37:38
在浏览了站点的php文件之后,我发现了一个似乎连接了文件的提要:
$urlID = substr($urlString, $eqPos + 1, 11);
switch ($urlID) {
case "20190823-01"; /*ID from other php file listed above */
$title = "Sample title";
$metaDescription = "Sample description.";
break;它通过每个帖子输入,但不是动态生成的。欣赏问题的观点,并希望这能对未来的人有所帮助。
https://webmasters.stackexchange.com/questions/124734
复制相似问题