更新blog界面

This commit is contained in:
2026-03-20 20:35:00 +08:00
parent b3a25ceb82
commit d30a2531a7
7 changed files with 87 additions and 94 deletions
+8 -1
View File
@@ -50,6 +50,13 @@ $newsUrl = $apiUrl . '/getCenterNews?baseUrl=' . urlencode($host);
$newsRes = fetchApiData($newsUrl);
$newsList = $newsRes['list'] ?? [];
// 调用 文章分类 接口
$articleCategoryUrl = $apiUrl . '/getArticleCategories?baseUrl=' . urlencode($host);
$articleCategoryRes = fetchApiData($articleCategoryUrl);
$articleCategoryList = $articleCategoryRes['list'] ?? [];
print_r($articleCategoryList);
// 获取特色服务
$servicesList = $homeInfo['services'] ?? [];
@@ -75,7 +82,7 @@ $seoKeywords = $pageKeywords ?? ($homeInfo['normal']['keywords'] ?? '');
<!-- 使用页面级 SEO 变量 -->
<title><?php echo htmlspecialchars($seoTitle); ?></title>
<meta name="description" content="<?php echo htmlspecialchars($seoDescription); ?>">
<meta name="description" content="<?php echo htmlspecialchars($homeInfo['normal']['description']); ?>">
<meta name="keywords" content="<?php echo htmlspecialchars($seoKeywords); ?>">
<link href="<?php echo $baseUrl; ?>/themes/template3/assets/img/favicon.png" rel="icon">