Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,25 @@ div.main-container {
text-transform: uppercase;
font-size: 11px;
}

div.author-card {
display: flex;

img {
height: 55px;
border-radius: 3px;
margin-right: 10px;
}
}

div.category-card-title {
color: #57ad68;
font-size: 14px;
}

div.category-card-title:hover {
color: #468c54;
}
}
}

Expand Down
11 changes: 11 additions & 0 deletions static/css/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions static/css/main.css.map

Large diffs are not rendered by default.

16 changes: 9 additions & 7 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,18 @@ <h3>{{ tag }}</h3>

<div class="pure-u-1 pure-u-lg-1-3">
<div class="right-container">
<div class="right-bar">
<div class="right-head">
Tags
{% if MEDIUS_WIDGETS %}
{% for widget in MEDIUS_WIDGETS %}
<div class="right-bar">
{% include 'widgets/%s.html' % (widget, ) %}
</div>
<div class="tags">
{% for tag, null in tags %}
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>
{% endfor %}
{% else %}
{# Keeping backwards compatibility to config without MEDIUS_WIDGETS #}
<div class="right-bar">
{% include 'widgets/tags.html' %}
</div>
</div>
{% endif %}
</div>
</div>

Expand Down
14 changes: 14 additions & 0 deletions templates/widgets/authors.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<div class="right-head">
Authors
</div>
<div class="post-meta post author-card">
{% for author, null in authors %}
<div>
<a href="{{ SITEURL }}/{{ author.url }}"><img src="{{ MEDIUS_AUTHORS.get(author|string).image }}" alt="{{ author|string }}"></a>
</div>
<div class="meta-data">
<a class="category" href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a><br \>
{{ MEDIUS_AUTHORS.get(author|string).description }}
</div>
{% endfor %}
</div>
18 changes: 18 additions & 0 deletions templates/widgets/categories.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<div class="right-head">
Categories
</div>
<div class="post-meta tags">
{% for category, null in categories %}
<a class="category" href="{{ SITEURL }}/{{ category.url }}">
<div class="pure-g post-category-info">
<div class="pure-u">
<img class="post-avatar" src="{{ MEDIUS_CATEGORIES.get(category|string).thumbnail }}" alt="{{ category|string }}">
</div>
<div class="pure-u meta-data">
<div class="category-card-title">{{ category }}</div>
{{ MEDIUS_CATEGORIES.get(category|string).description }}
</div>
</div>
</a>
{% endfor %}
</div>
8 changes: 8 additions & 0 deletions templates/widgets/tags.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<div class="right-head">
Tags
</div>
<div class="tags">
{% for tag, null in tags %}
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>
{% endfor %}
</div>