Skip to content

Commit

Permalink
Use username/login in profile page title
Browse files Browse the repository at this point in the history
  • Loading branch information
durden committed Apr 26, 2016
1 parent 99ab7a3 commit cffd8b0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
9 changes: 9 additions & 0 deletions pskb_website/templates/article.html
Expand Up @@ -9,6 +9,15 @@
{{ super() }}
{% endblock %}


{% block title %}
{% if article and article.title %}
<title>{{article.title}} | hack.guides()</title>
{% else %}
{{super}}
{% endif %}
{% endblock %}

{% block css %}
<link href="{{url_for('static', filename='css/vendor/editor/github.css')}}" rel="stylesheet">
<link href="{{url_for('static', filename='css/vendor/github.css')}}" rel="stylesheet">
Expand Down
6 changes: 1 addition & 5 deletions pskb_website/templates/layout.html
Expand Up @@ -9,11 +9,7 @@

{% block title %}

{% if article and article.title %}
<title>{{article.title}} | hack.guides()</title>
{% else %}
<title>hack.guides()</title>
{% endif %}
<title>hack.guides()</title>

{% endblock %}

Expand Down
8 changes: 8 additions & 0 deletions pskb_website/templates/profile.html
@@ -1,5 +1,13 @@
{% extends "layout.html" %}

{% block title %}
{% if user %}
<title>{{user.name if user.name else user.login}} | hack.guides()</title>
{% else %}
{{super}}
{% endif %}
{% endblock %}

{% block body %}

<div class="row">
Expand Down

0 comments on commit cffd8b0

Please sign in to comment.