For more context, what I envision for card.tmpl would be something like

<div class="card" style="justify-content: center">
    <img src="/images/${image_path}.jpg" alt="Jane" class="im-center" 
 style="width:50%">
    <div class="container">
      <h2> ${name} Doe</h2>
      <p class="title">CEO </p>
      <p>Some text that describes me lorem ipsum ipsum lorem.</p>
<!-- some way to upload text from a file? with %{content_path} -->
      <p>[email protected]</p>
      <p><button class="button">Contact</button></p>
    </div>
  </div>

which would be called in my main html by 
{{% card name=Maxime image_path=me content_path=/files/location/me.txt %}}

Would something close to that be possible ?

Thanks!

Le lundi 17 octobre 2022 à 11:42:13 UTC+2, Maxime Garnier a écrit :

> High all,
>
> I've been starting using Nikola and I have a question. I plan using a 
> shortcode for a card on a "meet the team"-like page and I would like to 
> call that shortcode with the path to a file (txt, possibly html or other) 
> as argument that contains the content to write in the card. 
>
> I didn't figure out a way to do this. I am primarily using html files and 
> the standard {%  include %} doesn't seem to work. Or maybe there's a better 
> way to tackle the problem that I didn't thin of?
>
> Anyways, thanks!
>
> Best,
>
> Maxime
>

-- 
You received this message because you are subscribed to the Google Groups 
"nikola-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nikola-discuss/44003663-3936-4699-9841-342a2b6baa36n%40googlegroups.com.

Reply via email to