[티스토리] 댓글수가 없거나 하나일때 꾸미기 <commentMessage>
tips
아 이리 간단한걸 삽질하다니ㅠㅠ
분명 코멘트 갯수 부분을 설정해줬는데도 댓글수가 없거나 하나일때는 다르게 나왔었다.
(두개 이상일땐 설정한대로 나옴)
검색해봐도 안나오고 다른 스킨 뜯어봐도 모르겠길래 포기해야하나 했는데
스킨가이드를 자세히 보니 이런 방법이!
index.xml파일의 <commentMessage> 부분을 skin.html에 준 속성과 똑같이 하면 된다
index.xml의 <commentMessage> 부분
<commentMessage>
<none><span class="cnt">comment : 0</span></none> ←댓글이 0개있때
<single><span class="cnt">comment : 1</span></single> ← 댓글이 하나일때
</commentMessage>
skin.html의 코멘트 갯수 부분
<s_rp_count>
<span class="cnt">comment : [/##_article_rep_rp_cnt_##]</span>
</s_rp_count>
[/##_article_rep_rp_cnt_##] 에서 /는 빼고 사용
<commentMessage>
<none><span class="cnt">comment : 0</span></none> ←댓글이 0개있때
<single><span class="cnt">comment : 1</span></single> ← 댓글이 하나일때
</commentMessage>
skin.html의 코멘트 갯수 부분
<s_rp_count>
<span class="cnt">comment : [/##_article_rep_rp_cnt_##]</span>
</s_rp_count>
[/##_article_rep_rp_cnt_##] 에서 /는 빼고 사용
index.xml에서 < 는 < 으로 , > 는 > 으로 바꿔줘야 된다.