Is it possible to use variable in meta tag?

34 views Asked by At

I am new at web dev. I am using Django, and I just wonder is it possible to use variable in meta description tag, Just like this:

<meta name="description"
content="{{blog_detail.context_1|slice:160|safe}}">

Will it still appear on search engines?

1

There are 1 answers

1
markwalker_ On

If that value is available in the context whenever that template is rendered, then yes.