Skip to content
Discussion options

You must be logged in to vote

The issue is that you are using an array to define the keywords and to call the var shortcode.

See the code
  • Quarto document:

    ---
    title: "title"
    categories:
      - "{{< var kws.k1 >}}"
      - "{{< var kws.k2 >}}"
    abc: def
    ---
    
    # Header 1
    
    Reading {{< var kws.k1 >}} works!
    
  • _variables.yml

    kws:
      k1: keyword1
      k2: keyword2
      k3: keyword3
    

Replies: 4 comments 10 replies

Comment options

You must be logged in to vote
1 reply
@e-alizadeh
Comment options

Comment options

You must be logged in to vote
3 replies
@e-alizadeh
Comment options

@nithinmkp
Comment options

@mcanouil
Comment options

Answer selected by e-alizadeh
Comment options

You must be logged in to vote
1 reply
@mcanouil
Comment options

mcanouil Aug 7, 2023
Collaborator

Comment options

You must be logged in to vote
5 replies
@mcanouil
Comment options

@Beforerr
Comment options

@mcanouil
Comment options

@Beforerr
Comment options

@mcanouil
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants