first commit
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
<aside class="callout callout-enterprise" role="note">
|
||||
<p class="callout-title">{{ .Get "title" | default "Enterprise plans only" }}</p>
|
||||
{{ .Inner | .Page.RenderString (dict "display" "block") }}
|
||||
<p class="callout-foot">Command-line access is available only when Federated Core was installed with the Enterprise option. <a href="{{ "getting-started/command-line-access/" | relURL }}">What this means</a></p>
|
||||
</aside>
|
||||
@@ -0,0 +1,4 @@
|
||||
<aside class="callout callout-note" role="note">
|
||||
<p class="callout-title">{{ .Get "title" | default "Note" }}</p>
|
||||
{{ .Inner | .Page.RenderString (dict "display" "block") }}
|
||||
</aside>
|
||||
@@ -0,0 +1 @@
|
||||
{{- /* Editorial marker. Renders nothing. Usage: {{< review "what to check" >}}. Find all with: grep -rn '< review' content/ */ -}}
|
||||
@@ -0,0 +1,15 @@
|
||||
{{- /* Usage: {{< screenshot src="app/name.png" alt="…" caption="…" >}}. Images live in assets/screenshots/. Add demo="true" for screenshots taken on an upstream public demo rather than a Federated Core server. */ -}}
|
||||
{{- $src := .Get "src" -}}
|
||||
{{- with resources.Get (printf "screenshots/%s" $src) -}}
|
||||
{{- $img := . -}}
|
||||
{{- if gt .Width 1280 }}{{ $img = .Resize "1280x webp q82" }}{{ else }}{{ $img = .Process "webp q82" }}{{ end -}}
|
||||
<figure class="screenshot">
|
||||
<a href="{{ .RelPermalink }}"><img src="{{ $img.RelPermalink }}" width="{{ $img.Width }}" height="{{ $img.Height }}" alt="{{ $.Get "alt" }}" loading="lazy" decoding="async"></a>
|
||||
<figcaption>
|
||||
{{- with $.Get "caption" }}{{ . | $.Page.RenderString }}{{ end -}}
|
||||
{{- if eq ($.Get "demo") "true" }} <span class="screenshot-src">Shown on the public demo. Your server may look slightly different.</span>{{ end -}}
|
||||
</figcaption>
|
||||
</figure>
|
||||
{{- else -}}
|
||||
{{- errorf "screenshot: assets/screenshots/%s not found (%s)" $src $.Position -}}
|
||||
{{- end -}}
|
||||
@@ -0,0 +1,4 @@
|
||||
<aside class="callout callout-superpanel" role="note">
|
||||
<p class="callout-title">{{ .Get "title" | default "In Superpanel" }}</p>
|
||||
{{ .Inner | .Page.RenderString (dict "display" "block") }}
|
||||
</aside>
|
||||
@@ -0,0 +1,4 @@
|
||||
<aside class="callout callout-warning" role="note">
|
||||
<p class="callout-title">{{ .Get "title" | default "Be careful" }}</p>
|
||||
{{ .Inner | .Page.RenderString (dict "display" "block") }}
|
||||
</aside>
|
||||
Reference in New Issue
Block a user