no link underline: remove class from links, use SCSS variable instead

This commit is contained in:
Helmut Merz 2022-01-30 08:48:07 +01:00
parent 9930b31d67
commit 51022e8a2e
6 changed files with 12 additions and 18 deletions

View file

@ -1,10 +1,10 @@
<div class="col-md-4">
<div class="card mb-3">
<a href="{{ .Permalink }}" class="index-anchor text-decoration-none">
<a href="{{ .Permalink }}" class="index-anchor">
{{- $img := .Params.img -}}
{{- $refImg := "" -}}
{{- if .Params.imgRef -}}
{{- range where .Site.RegularPages "Params.pageid" "eq" .Params.imgRef -}}
{{- if .Params.imgref -}}
{{- range where .Site.RegularPages "Params.pageid" "eq" .Params.imgref -}}
{{- $refImg = .Params.img -}}
{{- end -}}
{{- end -}}
@ -18,7 +18,7 @@
{{ else if .Params.teaser }}
<div class="card-header">
<p class="card-text">{{ .Params.teaser }}</p>
</div>
</div>
{{ else if .Site.Params.defaultImage }}
<img width="100%"
src="{{ .Site.BaseURL }}img/{{ .Site.Params.defaultImage }}"

View file

@ -6,8 +6,7 @@
{{ with .Site.Params.copyright -}}
<li class="list-inline-item">
<span class="fa fa-copyright"></span>
<a target="_blank" class="text-decoration-none"
href="{{ .link }}">{{ .name }}</a>
<a target="_blank" href="{{ .link }}">{{ .name }}</a>
</li>
{{- end }}
{{ with .Site.Params.email -}}
@ -38,14 +37,12 @@
<ul class="col-md-4 text-end list-inline">
{{ with .Site.Params.legal -}}
<li class="list-inline-item">
<a class="text-decoration-none"
href="{{ site.BaseURL }}{{ .path }}">{{ .name }}</a>
<a href="{{ site.BaseURL }}{{ .path }}">{{ .name }}</a>
</li>
{{- end }}
{{ with .Site.Params.privacy -}}
<li class="list-inline-item">
<a class="text-decoration-none"
href="{{ site.BaseURL }}{{ .path }}">{{ .name }}</a>
<a href="{{ site.BaseURL }}{{ .path }}">{{ .name }}</a>
</li>
{{- end }}
</ul>

View file

@ -12,8 +12,7 @@
{{- else -}}
{{- $url = $page.Permalink -}}
{{- end -}}
<a href="{{ $url }}"
class="text-decoration-none">{{ $page.Title }}&nbsp;&nbsp;
<a href="{{ $url }}">{{ $page.Title }}&nbsp;&nbsp;
{{ if $page.Date -}}
<small>{{ $page.Date.Format (i18n "dateFormat") }}</small>
{{- else if $page.Params.Teaser -}}<small>{{ $page.Params.Teaser }}</small>

View file

@ -10,9 +10,7 @@
{{ range . -}}
{{- $page := $site.GetPage (printf "/topics/%s" .) -}}
<span class="badge rounded-pill bg-secondary m-1">
<a href="{{ $page.Permalink }}"
class="text-decoration-none">{{ $page.Title }}
</a>
<a href="{{ $page.Permalink }}">{{ $page.Title }}</a>
</span>
{{- end }}
</div>

View file

@ -3,8 +3,8 @@
{{- $refImg := "" -}}
{{- $refPage := "" -}}
{{- $img := .Params.img -}}
{{- if .Params.imgRef -}}
{{- range where .Site.RegularPages "Params.pageid" "eq" .Params.imgRef -}}
{{- if .Params.imgref -}}
{{- range where .Site.RegularPages "Params.pageid" "eq" .Params.imgref -}}
{{- $refImg = .Params.img -}}
{{- $refPage = . -}}
{{- end -}}

View file

@ -18,7 +18,7 @@
<div class="col-md-{{or $site.Params.TaxoWidth 4}} mt-3">
<div class="card">
<a href="{{ .Page.Permalink }}"
class="list-group-item d-flex justify-content-between align-items-center text-decoration-none">
class="list-group-item d-flex justify-content-between align-items-center">
{{ .Page.Title }}
<span class="badge rounded-pill bg-secondary">{{ .Count }}</span>
</a>