Skip to content

Commit a612dd5

Browse files
authored
Merge pull request pytorch#713 from pytorch/improve-newsletter-appearance
Improve newsletter page UI
2 parents fbe5f76 + fb5e585 commit a612dd5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

_includes/contributor_side_nav.html

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
<div class="col-md-3 get-started-cloud-sidebar">
22
<div class="sticky-top">
33
<ul id="get-started-contributor-sidebar-list">
4-
{% assign past_issues = site.past_issues | sort_natural: "date" %}
4+
{% assign past_issues = site.past_issues | sort_natural: "date" | reverse %}
55

66
{% for item in past_issues %}
77
{% assign currentdate = item.date | date: "%B %Y" %}
88
{% if currentdate != date %}
9-
<li>{{ currentdate }}</li>
109
{% assign date = currentdate %}
1110
{% endif %}
1211

1312
<ul>
14-
<li><a href="#issue-{{ item.issue }}">{{ item.title }}</a></li>
13+
<li><a href="#issue-{{ item.issue }}">{{ date }}</a></li>
1514
</ul>
1615
{% endfor %}
1716
</ul>

_includes/past_issues.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{% include contributor_side_nav.html %}
55
<div class="col-md-8 offset-md-1 container">
66
<div class="row main-content blog-detail-content contributor-sidebar">
7-
{% assign past_issues = site.past_issues | sort: "title" %}
7+
{% assign past_issues = site.past_issues | sort: "title" | reverse %}
88
{% for item in past_issues %}
99
<article class="pytorch-article">
1010
{{ item | markdownify }}

_sass/article.scss

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
article.pytorch-article {
22
max-width: 920px;
33
margin: 0 auto;
4+
padding-bottom: 90px;
45

56
h2,
67
h3,

0 commit comments

Comments
 (0)