add tella theme
This commit is contained in:
1
themes/tella/layouts/shortcodes/begin-task-list.html
Normal file
1
themes/tella/layouts/shortcodes/begin-task-list.html
Normal file
@@ -0,0 +1 @@
|
||||
<span class="begin-task-list"></span>
|
||||
15
themes/tella/layouts/shortcodes/form.html
Normal file
15
themes/tella/layouts/shortcodes/form.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<form name="contact" action="https://getform.io/" method="POST">
|
||||
<div class="input">
|
||||
<input type="text" placeholder="Name" name="name" class="p-4 bg-gray-200 border border-gray-200 focus:outline-none focus:bg-white focus:border-gray-500" required>
|
||||
</div>
|
||||
<div class="input">
|
||||
<input type="text" placeholder="Email" name="mail" class="p-4 bg-gray-200 border border-gray-200 focus:outline-none focus:bg-white focus:border-gray-500" required>
|
||||
</div>
|
||||
<div class="input">
|
||||
<input type="text" placeholder="Title" name="title" class="p-4 bg-gray-200 border border-gray-200 focus:outline-none focus:bg-white focus:border-gray-500" required>
|
||||
</div>
|
||||
<div class="input">
|
||||
<textarea rows="5" cols="30" placeholder="Message" name="message" class="p-4 bg-gray-200 border border-gray-200 focus:outline-none focus:bg-white focus:border-gray-500" required></textarea>
|
||||
</div>
|
||||
<input type="submit" value="Submit" class="px-8 py-2 duration-200 bg-gray-800 text-white cursor-pointer transition-colors hover:bg-gray-400">
|
||||
</form>
|
||||
14
themes/tella/layouts/shortcodes/img.html
Normal file
14
themes/tella/layouts/shortcodes/img.html
Normal file
@@ -0,0 +1,14 @@
|
||||
{{ $name := .Get "src" }}
|
||||
{{ $extention := .Get "ext" | default "jpg" }}
|
||||
{{ $alt := .Get "alt" }}
|
||||
{{ $width := .Get "width" | default "auto" }}
|
||||
{{ $minipath := printf "/posts/%s/%s.%s" .Page.File.ContentBaseName $name $extention }}
|
||||
{{ $path := printf "content%s.webp" $minipath }}
|
||||
{{- if (fileExists $path) -}}
|
||||
<picture>
|
||||
<source type="image/webp" srcset="{{ $minipath }}.webp">
|
||||
<img src="{{ $minipath }}" />
|
||||
</picture>
|
||||
{{- else -}}
|
||||
<img src="{{ $minipath }}" />
|
||||
{{- end -}}
|
||||
Reference in New Issue
Block a user