Switch theme to Doks

This commit is contained in:
2021-01-31 00:54:37 -08:00
commit 98666f3a08
150 changed files with 24437 additions and 0 deletions

View 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>

View 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>

View 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>

View 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>

View 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>

View 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>

View 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>

View File

@@ -0,0 +1 @@
<img src="{{ .Get "src" }}" alt="{{ .Get "alt" }}">

View 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 }}>

View 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>

View 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>

View 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 }}