Skip to content

Commit 08d2c8a

Browse files
Add news page (alshedivat#1085)
fixes alshedivat#993 Also added links to news and publications from respective section headers on the home page. Changed the colors of the header links to make it consistent with the previous look.
1 parent 28aa827 commit 08d2c8a

File tree

4 files changed

+23
-14
lines changed

4 files changed

+23
-14
lines changed

_includes/news.html

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11

22
<div class="news">
3-
<h2>news</h2>
43
{% if site.news != blank -%}
54
{%- assign news_size = site.news | size -%}
65
<div class="table-responsive" {% if site.news_scrollable and news_size > 3 %}style="max-height: 10vw"{% endif %}>

_includes/selected_papers.html

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

22
<div class="publications">
3-
<h2>selected publications</h2>
43
{% bibliography -f papers -q @*[selected=true]* %}
54
</div>

_layouts/about.html

+16-12
Original file line numberDiff line numberDiff line change
@@ -40,26 +40,30 @@ <h1 class="post-title">
4040
{{ content }}
4141
</div>
4242

43-
{% if page.news -%}
4443
<!-- News -->
45-
{%- include news.html %}
44+
{% if page.news -%}
45+
<h2><a href="{{ '/news/' | relative_url }}" style="color: inherit;">news</a></h2>
46+
{%- include news.html %}
4647
{%- endif %}
48+
49+
<!-- Selected papers -->
4750
{% if page.selected_papers -%}
48-
<!-- Selected papers -->
51+
<h2><a href="{{ '/publications/' | relative_url }}" style="color: inherit;">selected publications</a></h2>
4952
{%- include selected_papers.html %}
5053
{%- endif %}
51-
{%- if page.social %}
54+
5255
<!-- Social -->
53-
<div class="social">
54-
<div class="contact-icons">
55-
{% include social.html %}
56-
</div>
56+
{%- if page.social %}
57+
<div class="social">
58+
<div class="contact-icons">
59+
{% include social.html %}
60+
</div>
5761

58-
<div class="contact-note">
59-
{{ site.contact_note }}
62+
<div class="contact-note">
63+
{{ site.contact_note }}
64+
</div>
65+
6066
</div>
61-
62-
</div>
6367
{%- endif %}
6468
</article>
6569

news.html

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
layout: page
3+
title: news
4+
permalink: /news/
5+
---
6+
7+
{% include news.html %}

0 commit comments

Comments
 (0)