From 7985d37ae39a158c17ae487710f1cd2b48ea7288 Mon Sep 17 00:00:00 2001 From: Kiran Jonnalagadda Date: Mon, 21 Mar 2016 17:14:39 +0530 Subject: [PATCH] Sub-board title tag --- hasjob/templates/index.html | 2 +- hasjob/templates/layout.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hasjob/templates/index.html b/hasjob/templates/index.html index 7dba8e4a5..cd663c0a0 100644 --- a/hasjob/templates/index.html +++ b/hasjob/templates/index.html @@ -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 -%} diff --git a/hasjob/templates/layout.html b/hasjob/templates/layout.html index 6b137e822..536a5c915 100644 --- a/hasjob/templates/layout.html +++ b/hasjob/templates/layout.html @@ -11,7 +11,7 @@ {%- endblock %} {%- block titletags %} - {% block title %}{{ title }}{% endblock %} | {% if g.board %}{{ g.board.title }}{% else %}{{ config['SITE_TITLE'] }}{% endif %} + {% block title %}{{ title }}{% endblock %} | {% if g.board %}{{ g.board.title }}{% if g.board.not_root %} ({{ config['SITE_TITLE'] }}){% endif %}{% else %}{{ config['SITE_TITLE'] }}{% endif %} {%- endblock %}