channel: Add short description under channel name
This commit is contained in:
parent
fe38aa214b
commit
cb1c899a45
@ -166,7 +166,7 @@ def extract_info(polymer_json, tab):
|
|||||||
|
|
||||||
|
|
||||||
# stuff from microformat (info given by youtube for every page on channel)
|
# stuff from microformat (info given by youtube for every page on channel)
|
||||||
info['description'] = microformat['description']
|
info['short_description'] = microformat['description']
|
||||||
info['channel_name'] = microformat['title']
|
info['channel_name'] = microformat['title']
|
||||||
info['avatar'] = microformat['thumbnail']['thumbnails'][0]['url']
|
info['avatar'] = microformat['thumbnail']['thumbnails'][0]['url']
|
||||||
channel_url = microformat['urlCanonical'].rstrip('/')
|
channel_url = microformat['urlCanonical'].rstrip('/')
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
height:200px;
|
height:200px;
|
||||||
width:200px;
|
width:200px;
|
||||||
}
|
}
|
||||||
main .title{
|
main .summary{
|
||||||
grid-row:1;
|
grid-row:1;
|
||||||
grid-column:2;
|
grid-column:2;
|
||||||
}
|
}
|
||||||
@ -77,7 +77,10 @@
|
|||||||
|
|
||||||
{% block main %}
|
{% block main %}
|
||||||
<img class="avatar" src="{{ avatar }}">
|
<img class="avatar" src="{{ avatar }}">
|
||||||
|
<div class="summary">
|
||||||
<h2 class="title">{{ channel_name }}</h2>
|
<h2 class="title">{{ channel_name }}</h2>
|
||||||
|
<p class="short-description">{{ short_description }}</p>
|
||||||
|
</div>
|
||||||
<nav class="channel-tabs">
|
<nav class="channel-tabs">
|
||||||
{% for tab_name in ('Videos', 'Playlists', 'About') %}
|
{% for tab_name in ('Videos', 'Playlists', 'About') %}
|
||||||
{% if tab_name.lower() == current_tab %}
|
{% if tab_name.lower() == current_tab %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user