mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 02:16:09 +00:00
Add external link icon to contents-list.html
This commit is contained in:
1 parent
0fa26bc5f4
commit
91ff6ac361
2 files changed
+2
-3
No files matched your search
@@ -5,10 +5,10 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
{{range .Data.Pages}}
|
{{range .Data.Pages}}
|
||||||
<!-- if statement checks for sitelink, which includes the themes site and *every* showcase site -->
|
<!-- if statement checks for sitelink, which includes the themes site and *every* showcase site -->
|
||||||
<a {{with .Params.sitelink }}href="{{.}}"target="_blank"{{else}}href="{{.Permalink}}"{{end}}>
|
<a {{with .Params.sitelink }}href="{{.}} "target="_blank"{{else}}href="{{.Permalink}}"{{end}}>
|
||||||
<article class="contents-list {{$kind}}">
|
<article class="contents-list {{$kind}}">
|
||||||
<header>
|
<header>
|
||||||
<h3 class="list-icon {{.Section}}">{{- partial "list-icon.html" . -}}{{with .LinkTitle}}{{. | markdownify}}{{else}}{{.Title | markdownify}}{{end}}</h3>
|
<h3 class="list-icon {{.Section}}">{{- partial "list-icon.html" . -}}{{with .LinkTitle}}{{. | markdownify}}{{else}}{{.Title | markdownify}}{{end}}{{with .Params.sitelink }} <i class="fa fa-external-link" aria-hidden="true"></i>{{end}}</h3>
|
||||||
</header>
|
</header>
|
||||||
<p>{{.Description | markdownify }}</p>
|
<p>{{.Description | markdownify }}</p>
|
||||||
</article>
|
</article>
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
</header>
|
</header>
|
||||||
<ul id="showcase">
|
<ul id="showcase">
|
||||||
{{$base := .Site.BaseURL}}
|
{{$base := .Site.BaseURL}}
|
||||||
|
|
||||||
{{- range .Data.Pages.ByPublishDate.Reverse -}}
|
{{- range .Data.Pages.ByPublishDate.Reverse -}}
|
||||||
{{$title := .Title | markdownify}}
|
{{$title := .Title | markdownify}}
|
||||||
<li class="showcase-site">
|
<li class="showcase-site">
|
||||||
|
|||||||
Reference in new issue
Block a user