Commit bf21a85d authored by Francisco Jesús Acién Pérez's avatar Francisco Jesús Acién Pérez
Browse files

not showing logo if not set

parent 6f2ccdef
Pipeline #1286 passed with stage
in 4 seconds
......@@ -18,13 +18,6 @@
<div class="card-body">
<div class="row">
<div class="col-3 box-logo">
<a href="{{ .Permalink | relURL }}">
<img src="{{ if .Params.logo }} {{ if or (hasPrefix .Params.logo "http://") (hasPrefix .Params.logo "https://")}} {{ .Params.logo }} {{ else }} {{ .Params.logo | relURL }} {{ end }}{{ else }} {{ .Site.Params.logo | relURL }} {{ end }}">
</a>
</div>
<div class="col">
<div class="proyect-title">
<a href="{{ .Permalink | relURL }}" class="article-titles">
......@@ -63,6 +56,11 @@
{{ end }}
</div>
</div>
<div class="col-3 box-logo">
<a href="{{ .Permalink | relURL }}">
<img src="{{ if .Params.logo }} {{ if or (hasPrefix .Params.logo "http://") (hasPrefix .Params.logo "https://")}} {{ .Params.logo }} {{ else }} {{ .Params.logo | relURL }} {{ end }}{{ end }}">
</a>
</div>
</div>
</div>
......
......@@ -120,7 +120,7 @@
{{ $relatedPages = $relatedPages | append . }}
<div class="col-auto mb-3" style="width: 18rem;">
<div class="card">
<a href="{{ .RelPermalink }}"><img class="card-img-top" src="{{ if .Params.logo }} {{ if or (hasPrefix .Params.logo "http://") (hasPrefix .Params.logo "https://")}} {{ .Params.logo }} {{ else }} {{ .Params.logo | relURL }} {{ end }}{{ else }} {{ .Site.Params.logo | relURL }} {{ end }}" alt="Card image cap"></a>
<a href="{{ .RelPermalink }}"><img class="card-img-top" src="{{ if .Params.logo }} {{ if or (hasPrefix .Params.logo "http://") (hasPrefix .Params.logo "https://")}} {{ .Params.logo }} {{ else }} {{ .Params.logo | relURL }} {{ end }}{{ end }}" alt="Card image cap"></a>
<div class="card-body">
<a href="{{ .RelPermalink }}"><h5 class="card-title">{{ .Title }}</h5></a>
......@@ -144,7 +144,9 @@
{{ range . }}
<div class="col-auto mb-3" style="width: 18rem;">
<div class="card">
<a href="{{ .RelPermalink }}"><img class="card-img-top" src="{{ if .Params.logo }} {{ if or (hasPrefix .Params.logo "http://") (hasPrefix .Params.logo "https://")}} {{ .Params.logo }} {{ else }} {{ .Params.logo | relURL }} {{ end }}{{ else }} {{ .Site.Params.logo | relURL }} {{ end }}" alt="Card image cap"></a>
{{ if .Params.logo}}
<a href="{{ .RelPermalink }}"><img class="card-img-top" src="{{ if or (hasPrefix .Params.logo "http://") (hasPrefix .Params.logo "https://")}} {{ .Params.logo }} {{ else }} {{ .Params.logo | relURL }} {{ end }}" alt="Card image cap"></a>
{{ end }}
<div class="card-body">
<a href="{{ .RelPermalink }}"><h5 class="card-title">{{ .Title }}</h5></a>
......
......@@ -207,11 +207,9 @@ blockquote blockquote blockquote blockquote {
-webkit-flex-wrap: wrap;
flex-wrap: wrap;
}
.article-meta a {
color: inherit;
}
.article-meta a:hover, .article-meta a:active {
color: gray;
color: #2060d0;
}
.article-meta li {
padding: 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment