From 083368702d54907ce885c027860e3eea60fe8777 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 | 28 ++++++++++++++++------------ news.html | 7 +++++++ 4 files changed, 23 insertions(+), 14 deletions(-) create mode 100644 news.html diff --git a/_includes/news.html b/_includes/news.html index 307e532dc9af..14d286daa7f2 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 61457dbcf198..cfaeb80386e3 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 b33c498ba7f1..ab6674a90083 100644 --- a/_layouts/about.html +++ b/_layouts/about.html @@ -40,26 +40,30 @@

{{ 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 %} + -