Switch theme to Doks
This commit is contained in:
4
layouts/shortcodes/alert.html
Normal file
4
layouts/shortcodes/alert.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<div class="alert alert-warning d-flex" role="alert">
|
||||
<div class="flex-shrink-1 alert-icon">{{ with .Get "icon" }}{{.}}{{ end }}</div>
|
||||
<div class="w-100">{{ with .Get "text" }}{{ . | safeHTML }}{{ end }}</div>
|
||||
</div>
|
||||
1
layouts/shortcodes/appveyor-ci.html
Normal file
1
layouts/shortcodes/appveyor-ci.html
Normal file
@@ -0,0 +1 @@
|
||||
<a style="margin-left: 1px; margin-right: 1px; display: inline-block" href="https://ci.appveyor.com/project/moussaelianarsen/{{ .Get "project" }}"><img style="height: 18px; width: 100px;" src="https://ci.appveyor.com/api/projects/status/{{ .Get "projectID" }}?svg=true"/></a>
|
||||
1
layouts/shortcodes/btn-copy.html
Normal file
1
layouts/shortcodes/btn-copy.html
Normal file
@@ -0,0 +1 @@
|
||||
<button class="btn-clipboard btn btn-sm btn-link" data-clipboard-text="{{ .Get "text" | safeHTML }}"><span class="copy-status"></span></button>
|
||||
4
layouts/shortcodes/button-gitea.html
Normal file
4
layouts/shortcodes/button-gitea.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<a class="btn" style="color: white; background-color: {{ .Get "color" }};" href="https://gitea.arsenm.dev/{{ if or (.Get "owner") }}{{ .Get "owner" }}{{ else }}Arsen6331{{ end }}/{{ .Get "project" }}">
|
||||
<span class="iconify" data-icon="cib:gitea"></span>
|
||||
{{ .Get "text" }}
|
||||
</a>
|
||||
4
layouts/shortcodes/button-gitlab.html
Normal file
4
layouts/shortcodes/button-gitlab.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<a class="btn" style="color: white; background-color: {{ .Get "color" }};" href="https://www.gitlab.com/moussaelianarsen/{{ .Get "project" }}">
|
||||
<span class="iconify" data-icon="fa-brands:gitlab"></span>
|
||||
{{ .Get "text" }}
|
||||
</a>
|
||||
3
layouts/shortcodes/button.html
Normal file
3
layouts/shortcodes/button.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<a class="f6 link dim ph3 pv2 mb2 dib white bg-{{ .Get "color" }}" style="color: white;" href="{{ .Get "link" }}">
|
||||
{{ .Get "text" }}
|
||||
</a>
|
||||
1
layouts/shortcodes/email.html
Normal file
1
layouts/shortcodes/email.html
Normal file
@@ -0,0 +1 @@
|
||||
<script type="text/javascript" nonce="dXNlcj0iaGVsbG8iLGRvbWFpbj0iaGVua3ZlcmxpbmRlLmNvbSIsZG9jdW1lbnQud3JpdGUodXNlcisiQCIrZG9tYWluKTs=">user="{{ with .Get "user" }}{{.}}{{ end }}",domain="{{ with .Get "domain" }}{{.}}{{ end }}",document.write(user+"@"+domain);</script><noscript>{{ with .Get "user" }}{{.}}{{ end }} at {{ with .Get "domain" }}{{.}}{{ end }}</noscript>
|
||||
1
layouts/shortcodes/image.html
Normal file
1
layouts/shortcodes/image.html
Normal file
@@ -0,0 +1 @@
|
||||
<img src="{{ .Get "src" }}" alt="{{ .Get "alt" }}">
|
||||
3
layouts/shortcodes/img-simple.html
Normal file
3
layouts/shortcodes/img-simple.html
Normal file
@@ -0,0 +1,3 @@
|
||||
{{ $image := .Page.Resources.GetMatch (printf "*%s*" (.Get "src")) -}}
|
||||
{{ $lqip := $image.Resize $.Site.Params.lqipWidth -}}
|
||||
<img class="img-simple img-fluid lazyload blur-up" src="{{ $lqip.Permalink }}" data-src="{{ $image.Permalink }}" width="{{ $image.Width }}" height="{{ $image.Height }}" {{ with .Get "alt" }}alt="{{.}}"{{ end }}>
|
||||
23
layouts/shortcodes/img.html
Normal file
23
layouts/shortcodes/img.html
Normal file
@@ -0,0 +1,23 @@
|
||||
{{ $image := .Page.Resources.GetMatch (printf "*%s*" (.Get "src")) -}}
|
||||
{{ $lqip := $image.Resize $.Site.Params.lqipWidth -}}
|
||||
|
||||
{{ $imgSrc := "" -}}
|
||||
{{ $imgSrcSet := slice -}}
|
||||
|
||||
{{ $widths := $.Site.Params.landscapePhotoWidths -}}
|
||||
{{ if gt $image.Height $image.Width -}}
|
||||
{{ $widths = $.Site.Params.portraitPhotoWidths -}}
|
||||
{{ end -}}
|
||||
|
||||
{{ range $widths -}}
|
||||
{{ $srcUrl := (printf "%dx" . | $image.Resize).Permalink -}}
|
||||
{{ if eq $imgSrc "" -}}{{ $imgSrc = $srcUrl -}}{{ end -}}
|
||||
{{ $imgSrcSet = $imgSrcSet | append (printf "%s %dw" $srcUrl .) -}}
|
||||
{{ end -}}
|
||||
{{ $imgSrcSet = (delimit $imgSrcSet ",") -}}
|
||||
|
||||
<figure{{ with .Get "class" }} class="{{.}}"{{ end }}>
|
||||
<img class="img-fluid lazyload blur-up" data-sizes="auto" src="{{ $lqip.Permalink }}" data-srcset="{{ $imgSrcSet }}" width="{{ $image.Width }}" height="{{ $image.Height }}" {{ with .Get "alt" }}alt="{{.}}"{{ end }}>
|
||||
<noscript><img class="img-fluid" sizes="100vw" srcset="{{ $imgSrcSet }}" src="{{ $image.Permalink }}" width="{{ $image.Width }}" height="{{ $image.Height }}" {{ with .Get "alt" }}alt="{{.}}"{{ end }}></noscript>
|
||||
{{ with .Get "caption" }}<figcaption class="figure-caption">{{ . | safeHTML }}</figcaption>{{ end }}
|
||||
</figure>
|
||||
1
layouts/shortcodes/minio-s3.html
Normal file
1
layouts/shortcodes/minio-s3.html
Normal file
@@ -0,0 +1 @@
|
||||
<a style="margin-left: 1px; margin-right: 1px; display: inline-block" href="https://minio.arsenm.dev/minio/{{ .Get "project" }}"><img style="height: 18px; width: 100px;" src="https://img.shields.io/static/v1.svg?label=download&message=binary&color=blue"/></a>
|
||||
14
layouts/shortcodes/table.html
Normal file
14
layouts/shortcodes/table.html
Normal file
@@ -0,0 +1,14 @@
|
||||
{{ $htmlTable := .Inner | markdownify }}
|
||||
{{ $class := .Get 0 }}
|
||||
{{ $old := "<table>" }}
|
||||
{{ $new := printf "<table class=\"%s\">" $class }}
|
||||
{{ $htmlTable := replace $htmlTable $old $new }}
|
||||
{{ $old_item := "<td>" }}
|
||||
{{ $old_thr := "<th>" }}
|
||||
{{ $thr_class := "fw6 bb b--black-20 tl pb3 pr3 " }}
|
||||
{{ $item_class := "pv3 pr3 bb b--black-20" }}
|
||||
{{ $new_item := printf "<td class=\"%s\">" $item_class }}
|
||||
{{ $new_thr := printf "<th class=\"%s\">" $thr_class }}
|
||||
{{ $htmlTable := replace $htmlTable $old_item $new_item }}
|
||||
{{ $htmlTable := replace $htmlTable $old_thr $new_thr }}
|
||||
{{ $htmlTable | safeHTML }}
|
||||
Reference in New Issue
Block a user