Skip to content

Commit

Permalink
Sub-board title tag
Browse files Browse the repository at this point in the history
  • Loading branch information
jace committed Mar 21, 2016
1 parent ced4174 commit 7985d37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hasjob/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{%- from "domain.html" import org_profile, user_profile with context %}
{% from "baseframe/forms.html" import renderfield, widgetscripts %}
{%- macro pagetitle() %}{% if title %}{{ title }} — {% endif %}{% if g.board %}{{ g.board.title }}{% else %}{{ config['SITE_TITLE'] }}{% endif %}{%- endmacro %}
{%- macro pagetitle() %}{% if title %}{{ title }} | {% endif %}{% if g.board %}{{ g.board.title }}{% if g.board.not_root %} ({{ config['SITE_TITLE'] }}){% endif %}{% else %}{{ config['SITE_TITLE'] }}{% endif %}{%- endmacro %}
{%- if not request.is_xhr -%}
{% extends "layout.html" %}
{% block titletags -%}
Expand Down
2 changes: 1 addition & 1 deletion hasjob/templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{%- endblock %}

{%- block titletags %}
<title>{% block title %}{{ title }}{% endblock %} | {% if g.board %}{{ g.board.title }}{% else %}{{ config['SITE_TITLE'] }}{% endif %}</title>
<title>{% block title %}{{ title }}{% endblock %} | {% if g.board %}{{ g.board.title }}{% if g.board.not_root %} ({{ config['SITE_TITLE'] }}){% endif %}{% else %}{{ config['SITE_TITLE'] }}{% endif %}</title>
<meta name="DC.title" content="{{ self.title()|e }}" />
<meta property="og:title" content="{{ self.title()|e }}" />
{%- endblock %}
Expand Down

0 comments on commit 7985d37

Please sign in to comment.