You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
150 lines
8.4 KiB
150 lines
8.4 KiB
<div id="content" class="content-site customize-site"> |
|
{{ range .Site.Data.webstack }} |
|
{{ if .list }} |
|
{{ range .list }} |
|
<!--正文网址导航--》 |
|
<!-- {{ .term }} --> |
|
<div class="d-flex flex-fill"> |
|
<h4 class="text-gray text-lg mb-4"> |
|
<i class="site-tag iconfont icon-tag icon-lg mr-1" id="{{ md5 .term }}"></i> |
|
{{ .term }} |
|
</h4> |
|
<div class="flex-fill"></div> |
|
<!--a class='btn-move text-xs' href='#'>more+</a--> |
|
</div> |
|
<!--获取内容列表--> |
|
<div class="row"> |
|
{{ range .links }} |
|
<div class="url-card col-6 col-sm-6 col-md-4 col-xl-5a col-xxl-6a"> |
|
<div class="url-body default"> |
|
<!--去除 Tooltip |
|
<a href="{{ .url }}" target="_blank" data-id="" data-url="{{ .url }}" class="card no-c mb-4" title="{{ .title }}"> |
|
去除 Tooltip --> |
|
{{ if .qrcode }} |
|
<a href="javascript:" target="" |
|
class="card no-c mb-4" data-toggle="tooltip" data-placement="bottom" data-html="true" title="<img src='{{ .qrcode }}' width='128'>"> |
|
{{ else }} |
|
<a href="{{ .url }}" target="_blank" data-id="" data-url="{{ .url }}" |
|
class="card no-c mb-4" data-toggle="tooltip" data-placement="bottom" data-original-title="{{ .description }}"> |
|
{{ end }} |
|
<div class="card-body"> |
|
<div class="url-content d-flex align-items-center"> |
|
<div class="url-img mr-2 d-flex align-items-center justify-content-center"> |
|
{{ if findRE "http.*?(.|\n)*?" .logo }} |
|
{{ if $.Site.Params.defaultLogo }} |
|
<img class="lazy" src="{{ .logo }}" data-src="{{ .logo }}" |
|
onerror="javascript:this.src='{{ $.Site.Params.defaultLogo }}'" alt="{{ .title }}"> |
|
{{ else }} |
|
<img class="lazy" src="{{ .logo }}" data-src="{{ .logo }}" |
|
onerror="javascript:this.src='{{ .logo }}'" alt="{{ .title }}"> |
|
{{ end }} |
|
{{ else }} |
|
{{ if $.Site.Params.defaultLogo }} |
|
<img class="lazy" src="{{ $.Site.Params.logosPath }}/{{ .logo }}" data-src="{{ $.Site.Params.logosPath }}/{{ .logo }}" |
|
onerror="javascript:this.src='{{ $.Site.Params.defaultLogo }}'" alt="{{ .title }}"> |
|
{{ else }} |
|
<img class="lazy" src="{{ $.Site.Params.logosPath }}/{{ .logo }}" data-src="{{ $.Site.Params.logosPath }}/{{ .logo }}" |
|
onerror="javascript:this.src='{{ $.Site.Params.logosPath }}/{{ .logo }}'" alt="{{ .title }}"> |
|
{{ end }} |
|
{{ end }} |
|
</div> |
|
<div class="url-info flex-fill"> |
|
<div class="text-sm overflowClip_1"> |
|
<strong>{{ .title }}</strong> |
|
</div> |
|
<p class="overflowClip_1 m-0 text-muted text-xs">{{ .description }}</p> |
|
</div> |
|
</div> |
|
</div> |
|
</a> |
|
<a href="{{ .url }}" class="togo text-center text-muted is-views" data-id="689" |
|
data-toggle="tooltip" data-placement="right" title="直达" rel="nofollow"> |
|
<i class="iconfont icon-goto"></i> |
|
</a> |
|
</div> |
|
</div> |
|
{{ end }} |
|
</div><!--end row--> |
|
<br /> |
|
<!--END {{ .term }} --> |
|
{{ end }} |
|
{{ else }} |
|
<!--常用推荐--> |
|
<!-- {{ .taxonomy }} --> |
|
<div class="d-flex flex-fill"> |
|
<h4 class="text-gray text-lg mb-4"> |
|
<i class="site-tag iconfont icon-tag icon-lg mr-1" id="{{ md5 .taxonomy }}"></i> |
|
{{ .taxonomy }} |
|
</h4> |
|
<!--div class="flex-fill"></div> |
|
<a class='btn-move text-xs' href='#'>more+</a--> |
|
</div> |
|
<!--获取内容列表--> |
|
<div class="row"> |
|
{{ range .links }} |
|
<div class="url-card col-6 col-sm-6 col-md-4 col-xl-5a col-xxl-6a"> |
|
<div class="url-body default"> |
|
<!--去除 Tooltip |
|
<a href="{{ .url }}" target="_blank" data-id="" data-url="{{ .url }}" class="card no-c mb-4" title="{{ .title }}"> |
|
--> |
|
{{ if .qrcode }} |
|
<a href="javascript:" target="" |
|
class="card no-c mb-4" data-toggle="tooltip" data-placement="bottom" data-html="true" title="<img src='{{ .qrcode }}' width='128'>"> |
|
{{ else }} |
|
<a href="{{ .url }}" target="_blank" data-id="" data-url="{{ .url }}" |
|
class="card no-c mb-4" data-toggle="tooltip" data-placement="bottom" data-original-title="{{ .description }}"> |
|
{{ end }} |
|
<div class="card-body"> |
|
<div class="url-content d-flex align-items-center"> |
|
<div class="url-img mr-2 d-flex align-items-center justify-content-center"> |
|
{{ if findRE "http.*?(.|\n)*?" .logo }} |
|
{{ if $.Site.Params.defaultLogo }} |
|
<img class="lazy" src="{{ .logo }}" data-src="{{ .logo }}" |
|
onerror="javascript:this.src='{{ $.Site.Params.defaultLogo }}'" alt="{{ .title }}"> |
|
{{ else }} |
|
<img class="lazy" src="{{ .logo }}" data-src="{{ .logo }}" |
|
onerror="javascript:this.src='{{ .logo }}'" alt="{{ .title }}"> |
|
{{ end }} |
|
{{ else }} |
|
{{ if $.Site.Params.defaultLogo }} |
|
<img class="lazy" src="{{ $.Site.Params.logosPath }}/{{ .logo }}" data-src="{{ $.Site.Params.logosPath }}/{{ .logo }}" |
|
onerror="javascript:this.src='{{ $.Site.Params.defaultLogo }}'" alt="{{ .title }}"> |
|
{{ else }} |
|
<img class="lazy" src="{{ $.Site.Params.logosPath }}/{{ .logo }}" data-src="{{ $.Site.Params.logosPath }}/{{ .logo }}" |
|
onerror="javascript:this.src='{{ $.Site.Params.logosPath }}/{{ .logo }}'" alt="{{ .title }}"> |
|
{{ end }} |
|
{{ end }} |
|
</div> |
|
<div class="url-info flex-fill"> |
|
<div class="text-sm overflowClip_1"> |
|
<strong>{{ .title }}</strong> |
|
</div> |
|
<p class="overflowClip_1 m-0 text-muted text-xs">{{ .description }}</p> |
|
</div> |
|
</div> |
|
</div> |
|
</a> |
|
<a href="{{ .url }}" class="togo text-center text-muted is-views" data-id="689" |
|
data-toggle="tooltip" data-placement="right" title="直达" rel="nofollow"> |
|
<i class="iconfont icon-goto"></i> |
|
</a> |
|
</div> |
|
</div> |
|
{{ end }} |
|
</div> |
|
<br /> |
|
<!--END {{ .taxonomy }} --> |
|
{{ end }} |
|
{{ end }} |
|
|
|
<h4 class="text-gray text-lg mb-4"> |
|
<i class="iconfont icon-book-mark-line icon-lg mr-2" id="friendlink"></i>友情链接 |
|
</h4> |
|
<div class="friendlink text-xs card"> |
|
<div class="card-body"> |
|
{{ range .Site.Data.friendlinks }} |
|
<a href="{{ .url }}" title="{{ .description }}" target="_blank">{{ .title }}</a> |
|
{{ end }} |
|
</div> |
|
</div> |
|
</div>
|
|
|