Skip to content
Discussion options

You must be logged in to vote

https://docs.orchardcore.net/en/latest/docs/reference/modules/Liquid/#page_title

{% assign page_title = "PageTitle" %}
{% assign blog_name = Model.ContentItem | container | display_text %}

{% page_title page_title, position: "after", separator: " - " %}
{% page_title blog_name, position: "after", separator: " - " %}
{% page_title Site.SiteName, position: "after", separator: " - " %}

This Liquid "Layout Tag" is additive to the current page title set in your layout.liquid file :

<title>{% page_title Site.SiteName, position: "before", separator: " - " %}</title>

See RenderTitleSegmentTag.cs for understanding how it works :

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@dsghi
Comment options

@Skrypt
Comment options

@dsghi
Comment options

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