Skip to content

Commit

Permalink
update titles (#13887)
Browse files Browse the repository at this point in the history
  • Loading branch information
agsfer committed Jul 7, 2023
1 parent 2358be0 commit c07a4a7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/_includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

{%- if page.layout == "landing" -%}
<title>Spark NLP - State of the Art NLP</title>
{%- elsif page.layout == "model" -%}
<title>{%- include snippets/get-article-modeltitle.html article=page -%}</title>
{%- elsif _pagetitle -%}
<title>{%- if __return -%}{{ __return }}{%- endif -%}</title>
{%- else -%}
Expand Down
9 changes: 9 additions & 0 deletions docs/_includes/snippets/get-article-modeltitle.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{%- assign _modelname = include.article.name -%}
{%- assign _modeledition = include.article.edition -%}
{%- assign _title = include.article.title -%}

{%- if _title -%}
{{ _title }} | {% if _modelname %}{{ _modelname }}{% endif %}{% if _modeledition %} | {{ _modeledition }}{% endif %}
{%- else -%}
{%- assign __return = nil -%}
{%- endif -%}

0 comments on commit c07a4a7

Please sign in to comment.