working site with external nginx
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
<p class="alert alert-{{ .Get 0 }}">
|
||||
{{ .Inner }}
|
||||
</p>
|
||||
@@ -0,0 +1,3 @@
|
||||
<p class="sm col background-{{ .Get 0 }}">
|
||||
{{ .Inner }}
|
||||
</p>
|
||||
@@ -0,0 +1,3 @@
|
||||
<span class="badge {{ .Get 0 }}">
|
||||
{{ .Inner }}
|
||||
</span>
|
||||
@@ -0,0 +1,17 @@
|
||||
{{ $arg := .Get 0 }}
|
||||
{{ $class := "" }}
|
||||
{{ if eq $arg "dashed" }}
|
||||
{{ $class = "border-dashed" }}
|
||||
{{ else if eq $arg "dotted" }}
|
||||
{{ $class = "border-dotted" }}
|
||||
{{ else if eq $arg "dashed thick" }}
|
||||
{{ $class = "border-dashed border-thick" }}
|
||||
{{ else if eq $arg "dotted thick" }}
|
||||
{{ $class = "border-dotted border-thick" }}
|
||||
{{ end }}
|
||||
|
||||
<div class="child-borders">
|
||||
<p class="sm col {{ $class }}">
|
||||
{{ .Inner }}
|
||||
</p>
|
||||
</div>
|
||||
@@ -0,0 +1,35 @@
|
||||
{{ $img := .Get "img" }}
|
||||
{{ $command := .Get "command" }}
|
||||
{{ $options := .Get "options" }}
|
||||
|
||||
{{ $original := .Page.Resources.GetMatch (printf "*%s*" $img) }}
|
||||
{{ $new := "" }}
|
||||
|
||||
{{ if eq $command "Fit" }}
|
||||
{{ $new = $original.Fit $options }}
|
||||
{{ else if eq $command "Fill" }}
|
||||
{{ $new = $original.Fill $options }}
|
||||
{{ else if eq $command "Resize" }}
|
||||
{{ $new = $original.Resize $options }}
|
||||
{{ else if eq $command "Original" }}
|
||||
{{ $new = $original }}
|
||||
{{ else }}
|
||||
{{ errorf "Invalid image processing command: Must be one of Fit, Fill, Resize, Original." }}
|
||||
{{ end }}
|
||||
|
||||
<div class="card row flex-center" style="">
|
||||
<a href="{{ $original.Permalink }}" class="img-link">
|
||||
<img src="{{ $new.Permalink }}">
|
||||
</a>
|
||||
<div class="card-body">
|
||||
{{ with (.Get "title" )}}
|
||||
<h4 class="card-title">{{ . | markdownify }}</h4>
|
||||
{{ end }}
|
||||
{{ with (.Get "subtitle" )}}
|
||||
<h5 class="card-subtitle">{{ . | markdownify }}</h5>
|
||||
{{ end }}
|
||||
{{ with (.Get "text") }}
|
||||
<p class="card-text">{{ . | markdownify }}</p>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,3 @@
|
||||
<p class="text-{{ .Get 0 }}">
|
||||
{{ .Inner }}
|
||||
</p>
|
||||
Reference in New Issue
Block a user