diff --git a/_data/news.yaml b/_data/news.yaml new file mode 100644 index 0000000..0e1ee39 --- /dev/null +++ b/_data/news.yaml @@ -0,0 +1,20 @@ +- date: 2024-05-13 + type: news-paper-accepted + title: "2 Papers Accepted to be presented at ACM HotStorage 2024" + +- date: 2024-03-19 + type: news-paper-accepted + title: "2 Papers Accepted to be presented at MSST 2024" + +- date: 2024-02-23 + type: news-paper-accepted + title: "1 Paper Accepted to be presented at ACM SIGMOD 2024" + +- date: 2024-01-23 + type: news-paper-accepted + title: "1 Project Accepted for WIP and Poster at FAST 2024" + +- date: 2023-12-01 + type: news-info + title: "2023 Winter Research Camp Starts!" + diff --git a/_data/types.yaml b/_data/types.yaml index df126ca..2614f83 100644 --- a/_data/types.yaml +++ b/_data/types.yaml @@ -150,6 +150,24 @@ error: icon: fa-solid fa-ban color: "#ef4444" +# news + +news-paper-accepted: + icon: fa-solid fa-file-lines + color: "#22c55e" + +news-info: + icon: fa-solid fa-circle-info + color: "#6366f1" + +news-award: + icon: fa-solid fa-award + color: "#ffd700" + +news-general: + icon: fa-solid fa-newspaper + color: "#0ea5e9" + # publications paper: diff --git a/_includes/header.html b/_includes/header.html index 6ee7248..b16a430 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -22,7 +22,11 @@ {% if svg %} {{ svg | file_read }} {% else %} - logo + {% if page.url == "/" %} + logo + {% else %} + logo + {% endif %} {% endif %} {% endif %} @@ -31,8 +35,10 @@ {% if site.title and site.show-title != false %} {{ site.title }} {% endif %} - {% if site.subtitle and site.show-subtitle != false %} - {{ site.subtitle }} + {% if page.url == "/" %} + {% if site.subtitle and site.show-subtitle != false %} + {{ site.subtitle }} + {% endif %} {% endif %} {% endif %} diff --git a/_includes/news.html b/_includes/news.html new file mode 100644 index 0000000..9c000cc --- /dev/null +++ b/_includes/news.html @@ -0,0 +1,10 @@ +{% assign color = site.data.types[include.type].color | default: "#808080" %} +
+ {% assign icon = site.data.types[include.type].icon + | default: "fa-solid fa-circle-info" + %} + {% include icon.html icon=icon %} +
+ {{ include.date | append: ": " | append: include.content }} +
+
diff --git a/_styles/alert.scss b/_styles/alert.scss index c789ad8..ede7506 100644 --- a/_styles/alert.scss +++ b/_styles/alert.scss @@ -4,10 +4,10 @@ .alert { position: relative; display: flex; - gap: 20px; + gap: 10px; align-items: center; - margin: 20px 0; - padding: 20px; + margin: 10px 0; + padding: 10px; border-radius: var(--rounded); overflow: hidden; text-align: left; diff --git a/index.md b/index.md index 2aedc5b..09abf66 100644 --- a/index.md +++ b/index.md @@ -7,6 +7,31 @@ The Intelligent Data Infrastructure (IDI) research lab delves into database syst {% include section.html %} +## News + +{% assign news = site.data.news + | sort: 'date' + | reverse +%} + +{% for item in news limit:5 %} +{% + include news.html + date=item.date + type=item.type + content=item.title +%} +{% endfor %} + +{% + include button.html + link="news" + text="See all news" + icon="fa-solid fa-arrow-right" + flip=true + style="bare" +%} + ## Highlights {% capture text %} diff --git a/news/index.md b/news/index.md new file mode 100644 index 0000000..ffd5423 --- /dev/null +++ b/news/index.md @@ -0,0 +1,22 @@ +--- +title: News +nav: + order: 6 + display: false +--- + +# {% include icon.html icon="fa-solid fa-scroll" %}News + +{% assign news = site.data.news + | sort: 'date' + | reverse +%} + +{% for item in news %} +{% + include news.html + date=item.date + type=item.type + content=item.title +%} +{% endfor %} \ No newline at end of file