From f2be212967ce3ea067b8737d5c9167c258685d1c Mon Sep 17 00:00:00 2001 From: Rohan Deb Sarkar Date: Sun, 8 Jan 2023 22:46:31 +0530 Subject: [PATCH] Add news page (#1085) fixes #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. --- _includes/news.html | 1 - _includes/selected_papers.html | 1 - _layouts/about.html | 30 +++++++++++++++++------------- news.html | 7 +++++++ 4 files changed, 24 insertions(+), 15 deletions(-) create mode 100644 news.html diff --git a/_includes/news.html b/_includes/news.html index 307e532..14d286d 100644 --- a/_includes/news.html +++ b/_includes/news.html @@ -1,6 +1,5 @@
-

news

{% if site.news != blank -%} {%- assign news_size = site.news | size -%}
3 %}style="max-height: 10vw"{% endif %}> diff --git a/_includes/selected_papers.html b/_includes/selected_papers.html index 61457db..cfaeb80 100644 --- a/_includes/selected_papers.html +++ b/_includes/selected_papers.html @@ -1,5 +1,4 @@
-

selected publications

{% bibliography -f papers -q @*[selected=true]* %}
diff --git a/_layouts/about.html b/_layouts/about.html index b33c498..ab6674a 100644 --- a/_layouts/about.html +++ b/_layouts/about.html @@ -40,26 +40,30 @@ layout: default {{ content }}
- {% if page.news -%} - {%- include news.html %} + {% if page.news -%} +

news

+ {%- include news.html %} {%- endif %} + + {% if page.selected_papers -%} - +

selected publications

{%- include selected_papers.html %} {%- endif %} - {%- if page.social %} - -