Skip to content

Commit d719c95

Browse files
authored
Merge pull request #3342 from metacpan/oalders/sidebar
Add an author flag to the sidebar
2 parents 24fd095 + 6c6f540 commit d719c95

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

root/author.tx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<li class="author-item">
2020
<i class="fas fa-map-marker-alt"></i>
2121
%% }
22+
<img src="/static/images/flag/[% $author.country %].png" alt="[% $author.country %] flag">
2223
[% $author.city %][% if $author.city && $author.region { %], [% } %][% $author.region %]
2324
</li>
2425
%% }

root/static/less/author.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
i {
1919
padding-right: 5px;
2020
}
21+
22+
img[src*="/static/images/flag/"] {
23+
margin-right: 5px;
24+
}
2125
}
2226

2327
.author-pic {

0 commit comments

Comments
 (0)