구글 블로그의 기본 세팅은 제목을 눌러서 게시물을 볼 수 있게 링크가 걸려있다. 이것을 썸네일/대표 이미지와 본문 요약 글을 클릭해도 이동할 수 있게 하려면 코드 수정을 해줘야 한다.
1. Blog1 위젯 안에 있는 다음과 같은 코드를 찾는다. (아니면 아무 줄이나 복붙해서 찾자)
<b:includable id='postBodySnippet' var='post'>
<div class='container post-body entry-content' expr:id='"post-snippet-" + data:post.id'>
<b:if cond='data:post.featuredImage'>
<div class='snippet-thumbnail'>
<b:include data='{ image: data:post.featuredImage, imageSizes: [32, 64, 128, 256], imageRatio: "1:1", sourceSizes: "(max-width: 800px) 20vw, 128px" }' name='responsiveImage'/>
</div>
</b:if>
<b:include cond='data:post' data='post' name='postSnippet'/>
</div>
</b:includable>
2. 위의 코드를 아래와 같이 변경한다.
<b:includable id='postBodySnippet' var='post'>
<div class='container post-body entry-content' expr:id='"post-snippet-" + data:post.id'>
<b:if cond='data:post.featuredImage'>
<div class='snippet-thumbnail'>
<a expr:href='data:post.url'>
<b:include data='{ image: data:post.featuredImage, imageSizes: [32, 64, 128, 256], imageRatio: "1:1", sourceSizes: "(max-width: 800px) 20vw, 128px" }' name='responsiveImage'/>
</a>
</div>
</b:if>
<a expr:href='data:post.url'>
<b:include cond='data:post' data='post' name='postSnippet'/>
</a>
</div>
</b:includable>
3. 첫번째 <a></a>가 썸네일 부분이고 두번째 <a></a>가 스니펫 부분이다.
2022. 3. 14.
'Blogging' 카테고리의 다른 글
구글 블로그 요약문 글자 수 조정하기 (0) | 2022.07.24 |
---|---|
구글 블로그 인기 게시글 요약글 클릭 활성화하기 (0) | 2022.07.24 |
구글 블로그 '댓글 쓰기' 메세지 바꾸기 (0) | 2022.07.24 |
구글 블로그 검색 창 '전체 보기' 글자와 링크 변경 (0) | 2022.07.24 |