Merge branch 'main' into fix/Fix_google_analytics
This commit is contained in:
commit
86fe5131e8
10 changed files with 93 additions and 36 deletions
|
@ -55,6 +55,25 @@
|
|||
<script defer src='{{ or .scheme "https" }}://{{ or .instance "analytics.eu.umami.is" }}/script.js' data-website-id="{{ .id }}"></script>
|
||||
<!-- End Umami analytics -->
|
||||
{{end}}
|
||||
|
||||
{{ with .statcounter }}
|
||||
<!-- Statcounter analytics -->
|
||||
<script type="text/javascript" src="https://www.statcounter.com/counter/counter.js" async></script>
|
||||
<script type="text/javascript">
|
||||
var sc_project = {{ .project }};
|
||||
var sc_invisible = {{ .invisible }};
|
||||
var sc_security = "{{ .security }}";
|
||||
var scJsHost = (("https:" == document.location.protocol) ?
|
||||
"https://www.statcounter.com/js/" : "https://www.statcounter.com/js/");
|
||||
</script>
|
||||
<noscript>
|
||||
<div class="statcounter"><a title="web counter" href="https://statcounter.com/" target="_blank"><img
|
||||
class="statcounter" src="https://c.statcounter.com/{{ .project }}/0/{{ .security }}/{{ .invisible }}/"
|
||||
alt="web counter" referrerPolicy="no-referrer-when-downgrade"></a></div>
|
||||
<!-- End of Statcounter Code -->
|
||||
</noscript>
|
||||
<!-- End Statcounter analytics -->
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
|
@ -4,34 +4,48 @@
|
|||
>
|
||||
<div class="card mt-1">
|
||||
<div class="card">
|
||||
<a class="card-header" href="{{ if .repo }}{{ .repo }}{{ else if .url }}{{ .url }}{{ else }}javascript:void(0){{ end }}" {{ if or .repo .url }}target="_blank" rel="noopener"{{ end }}>
|
||||
<div>
|
||||
<div class="d-flex">
|
||||
{{ if .logo }}
|
||||
|
||||
{{ if eq (len (findRE ".*/.*" .logo) ) 0 }}
|
||||
|
||||
<i style="padding-right: 0.25em" class="{{.logo}} h4"></i>
|
||||
|
||||
{{ else }}
|
||||
|
||||
{{ $logoImage:= resources.Get .logo}}
|
||||
{{ if $logoImage }}
|
||||
{{/* svg don't support "Fit" operation */}}
|
||||
{{ if ne $logoImage.MediaType.SubType "svg" }}
|
||||
{{ $logoImage = $logoImage.Fit "24x24" }}
|
||||
{{ end }}
|
||||
<img class="card-img-xs" src="{{ $logoImage.RelPermalink }}" alt="{{ .name }}" />
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
<a href="{{ if .repo }}{{ .repo }}{{ else if .url }}{{ .url }}{{ else }}javascript:void(0){{ end }}" {{ if or .repo .url }}target="_blank" rel="noopener"{{ end }}>
|
||||
{{ if .image }}
|
||||
<div class="card-head">
|
||||
{{ $imageImage:= resources.Get .image}}
|
||||
{{ if $imageImage }}
|
||||
{{/* svg don't support "Fit" operation */}}
|
||||
{{ if ne $imageImage.MediaType.SubType "svg" }}
|
||||
{{ $imageImage = $imageImage.Fit "1000x1000" }}
|
||||
{{ end }}
|
||||
|
||||
<h5 class="card-title mb-0">{{ .name }}</h5>
|
||||
</div>
|
||||
<div class="sub-title">
|
||||
<span>{{ .role }}</span>
|
||||
<span>{{ .timeline }}</span>
|
||||
<img class="card-img-top" src="{{ $imageImage.RelPermalink }}" alt="{{ .name }}" />
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="card-header">
|
||||
<div>
|
||||
<div class="d-flex">
|
||||
{{ if .logo }}
|
||||
|
||||
{{ if eq (len (findRE ".*/.*" .logo) ) 0 }}
|
||||
|
||||
<i style="padding-right: 0.25em" class="{{.logo}} h4"></i>
|
||||
|
||||
{{ else }}
|
||||
|
||||
{{ $logoImage:= resources.Get .logo}}
|
||||
{{ if $logoImage }}
|
||||
{{/* svg don't support "Fit" operation */}}
|
||||
{{ if ne $logoImage.MediaType.SubType "svg" }}
|
||||
{{ $logoImage = $logoImage.Fit "24x24" }}
|
||||
{{ end }}
|
||||
<img class="card-img-xs" src="{{ $logoImage.RelPermalink }}" alt="{{ .name }}" />
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
<h5 class="card-title mb-0">{{ .name }}</h5>
|
||||
</div>
|
||||
<div class="sub-title">
|
||||
<span>{{ .role }}</span>
|
||||
<span>{{ .timeline }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue