mirror of
https://github.com/CoolnsX/my-website.git
synced 2025-12-20 07:15:19 +05:30
feat: server setup intro blog
This commit is contained in:
7
templates/shortcodes/cost.html
Normal file
7
templates/shortcodes/cost.html
Normal file
@@ -0,0 +1,7 @@
|
||||
{%- set usd_rate = 0.012 -%}
|
||||
{%- set eur_rate = 0.010 -%}
|
||||
|
||||
{%- set amount_in_usd = amount * usd_rate -%}
|
||||
{%- set amount_in_eur = amount * eur_rate -%}
|
||||
|
||||
₹{{ amount }} (${{ amount_in_usd | round }} or €{{ amount_in_eur | round }})
|
||||
10
templates/shortcodes/image.html
Normal file
10
templates/shortcodes/image.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<div class="flex justify-center my-4">
|
||||
<img
|
||||
src="{{ get_url(path=url) | safe }}"
|
||||
alt="{{ page.title }}"
|
||||
class="max-w-full max-h-100 object-cover border border-gray-600 rounded-2xl"
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
onclick="openFullscreenImage(this)"
|
||||
/>
|
||||
</div>
|
||||
Reference in New Issue
Block a user