mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 10:15:22 +00:00
post: Refactor code and remove unused class
This commit is contained in:
1 parent
c6c9768fd4
commit
9e8cb50889
1 file changed
+25
-29
@@ -6,43 +6,39 @@
|
||||
{{ partial "header_image.html" . }}
|
||||
|
||||
<div class="article-container">
|
||||
<div class="article-inner">
|
||||
<h1 itemprop="name">{{ .Title }}</h1>
|
||||
<h1 itemprop="name">{{ .Title }}</h1>
|
||||
|
||||
{{ partial "article_metadata" (dict "content" . "is_list" 0) }}
|
||||
{{ partial "article_metadata" (dict "content" . "is_list" 0) }}
|
||||
|
||||
<div class="article-style" itemprop="articleBody">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
|
||||
{{ partial "tags.html" . }}
|
||||
<div class="article-style" itemprop="articleBody">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</article>
|
||||
{{ partial "tags.html" . }}
|
||||
|
||||
{{ $related := .Site.RegularPages.Related . | first 5 }}
|
||||
{{ with $related }}
|
||||
<div class="article-container article-widget">
|
||||
<div class="hr-light"></div>
|
||||
<h3>{{ i18n "related" }}</h3>
|
||||
<ul>
|
||||
{{ range . }}
|
||||
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
||||
{{ $related := .Site.RegularPages.Related . | first 5 }}
|
||||
{{ with $related }}
|
||||
<div class="article-widget">
|
||||
<div class="hr-light"></div>
|
||||
<h3>{{ i18n "related" }}</h3>
|
||||
<ul>
|
||||
{{ range . }}
|
||||
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.section_pager }}
|
||||
<div class="article-container article-widget">
|
||||
{{ partial "section_pager.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ if .Site.Params.section_pager }}
|
||||
<div class="article-widget">
|
||||
{{ partial "section_pager.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
<div class="article-container">
|
||||
{{ partial "comments.html" . }}
|
||||
</div>
|
||||
{{ partial "comments.html" . }}
|
||||
|
||||
</div>
|
||||
</article>
|
||||
|
||||
{{ partial "footer_container.html" . }}
|
||||
{{ partial "footer.html" . }}
|
||||
Reference in new issue
Block a user