bedirhandd
bedirhandd

Reputation: 1

Is it possible to use variable in meta tag?

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?

Upvotes: 0

Views: 49

Answers (1)

markwalker_
markwalker_

Reputation: 12869

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

Upvotes: 1

Related Questions