fix(post): 修复文章摘要取值错误问题,#30
This commit is contained in:
		
							parent
							
								
									b6c81d6e9a
								
							
						
					
					
						commit
						4efe429012
					
				| @ -1,5 +1,5 @@ | ||||
| <head xmlns:th="https://www.thymeleaf.org" th:fragment="head" | ||||
| th:with="description=${isPost ? post != null ? post.spec.excerpt.raw : singlePage != null ? singlePage.spec.excerpt.raw : site.seo.description : site.seo.description}"> | ||||
| th:with="description=${isPost ? post != null ? post.status.excerpt : singlePage != null ? singlePage.status.excerpt : site.seo.description : site.seo.description}"> | ||||
|   <title th:text="${title + (#strings.isEmpty(site.subtitle) ? '' : '|' + site.subtitle)}"></title> | ||||
|   <script th:if="${(theme.config.enhance.enable_sw != 'false')}" th:src="${(theme.config.enhance.enable_sw == 'uninstall')? #theme.assets('/assets/js/sw.min.js') + '?mew=0.0.1' : '/sw.min.js?mew=0.0.1' + theme.config.enhance.enable_sw}"></script> | ||||
|   <meta charset="utf-8"/> | ||||
|  | ||||
| @ -37,7 +37,7 @@ | ||||
|           <span class="top" th:if="${post.spec.pinned}">置顶</span><a | ||||
|           th:href="${post.status.permalink}" th:text="${post.spec.title}"></a> | ||||
|         </h2> | ||||
|         <div class="main-content" th:text="${post.spec.excerpt.raw}"></div> | ||||
|         <div class="main-content" th:text="${post.status.excerpt}"></div> | ||||
|         <hr/> | ||||
|         <div class="meta"> | ||||
|           <ul class="breadcrumb"> | ||||
| @ -66,7 +66,7 @@ | ||||
|           <span class="top" th:if="${post.spec.pinned}">置顶</span><a | ||||
|           th:href="${post.status.permalink}" th:text="${post.spec.title}"></a> | ||||
|         </h2> | ||||
|         <div class="main-content" th:text="${post.spec.excerpt.raw}"></div> | ||||
|         <div class="main-content" th:text="${post.status.excerpt}"></div> | ||||
|         <hr/> | ||||
|         <div class="meta"> | ||||
|           <ul class="breadcrumb"> | ||||
| @ -126,7 +126,7 @@ | ||||
|           </div> | ||||
|         </div> | ||||
|         <hr/> | ||||
|         <div class="main-content" th:text="${post.spec.excerpt.raw}"></div> | ||||
|         <div class="main-content" th:text="${post.status.excerpt}"></div> | ||||
|       </div> | ||||
|     </div> | ||||
|   </th:block> | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user