diff --git a/CUSTOMIZE.md b/CUSTOMIZE.md
index 9b0f32c..61a02b8 100644
--- a/CUSTOMIZE.md
+++ b/CUSTOMIZE.md
@@ -176,7 +176,8 @@ To remove the blog, you have to:
- delete [\_posts](_posts/) directory
- delete blog page [\_pages/blog.md](_pages/blog.md)
- remove reference to blog page in our [\_pages/dropdown.md](_pages/dropdown.md)
-- remove the `Blog` section in the [\_config.yml](_config.yml) file and the related parts, like the `jekyll-archives` and `latest_posts`
+- remove the `latest_posts` part in [\_pages/about.md](_pages/about.md)
+- remove the `Blog` section in the [\_config.yml](_config.yml) file and the related parts, like the `jekyll-archives`
You can also:
@@ -195,7 +196,7 @@ To remove the news section, you can:
- delete the [\_news](_news/) directory
- delete the file [\_includes/news.liquid](_includes/news.liquid) and the references to it in the [\_pages/about.md](_pages/about.md)
-- remove the `announcements` part in [\_config.yml](_config.yml)
+- remove the `announcements` part in [\_pages/about.md](_pages/about.md)
- remove the news part in the `Collections` section in the [\_config.yml](_config.yml) file
### Removing the projects page
diff --git a/_config.yml b/_config.yml
index 923db92..48511de 100644
--- a/_config.yml
+++ b/_config.yml
@@ -153,16 +153,6 @@ collections:
output: true
permalink: /:collection/:title/
-announcements:
- enabled: true
- scrollable: true # adds a vertical scroll bar if there are more than 3 news items
- limit: 5 # leave blank to include all the news in the `_news` folder
-
-latest_posts:
- enabled: true
- scrollable: true # adds a vertical scroll bar if there are more than 3 new posts items
- limit: 3 # leave blank to include all the blog posts
-
# -----------------------------------------------------------------------------
# Jekyll settings
# -----------------------------------------------------------------------------
diff --git a/_includes/distill_scripts.liquid b/_includes/distill_scripts.liquid
index 82bf593..df4104c 100644
--- a/_includes/distill_scripts.liquid
+++ b/_includes/distill_scripts.liquid
@@ -278,7 +278,3 @@
{% endif %}
-
-{% if site.newsletter.enabled %}
-
-{% endif %}
diff --git a/_includes/latest_posts.liquid b/_includes/latest_posts.liquid
index e710727..3342619 100644
--- a/_includes/latest_posts.liquid
+++ b/_includes/latest_posts.liquid
@@ -1,16 +1,16 @@
- {% if site.latest_posts != blank %}
+ {% if page.latest_posts != blank %}
{% assign latest_posts_size = site.posts | size %}
3 %}
+ {% if page.latest_posts.scrollable and latest_posts_size > 3 %}
style="max-height: 60vw"
{% endif %}
>
{% assign latest_posts = site.posts %}
- {% if site.latest_posts.limit %}
- {% assign latest_posts_limit = site.latest_posts.limit %}
+ {% if page.latest_posts.limit %}
+ {% assign latest_posts_limit = page.latest_posts.limit %}
{% else %}
{% assign latest_posts_limit = latest_posts_size %}
{% endif %}
diff --git a/_includes/news.liquid b/_includes/news.liquid
index 547ccf1..ddf40b8 100644
--- a/_includes/news.liquid
+++ b/_includes/news.liquid
@@ -3,14 +3,14 @@
{% assign news_size = site.news | size %}
3 %}
+ {% if include.limit and page.announcements.scrollable and news_size > 3 %}
style="max-height: 60vw"
{% endif %}
>
{% assign news = site.news | reverse %}
- {% if include.limit and site.announcements.limit %}
- {% assign news_limit = site.announcements.limit %}
+ {% if include.limit and page.announcements.limit %}
+ {% assign news_limit = page.announcements.limit %}
{% else %}
{% assign news_limit = news_size %}
{% endif %}
diff --git a/_layouts/about.liquid b/_layouts/about.liquid
index fe8cf3a..f0544cb 100644
--- a/_layouts/about.liquid
+++ b/_layouts/about.liquid
@@ -41,7 +41,7 @@ layout: default
{{ content }}
- {% if page.news and site.announcements and site.announcements.enabled %}
+ {% if page.announcements and page.announcements.enabled %}
@@ -49,7 +49,7 @@ layout: default
{% endif %}
- {% if site.latest_posts and site.latest_posts.enabled %}
+ {% if page.latest_posts and page.latest_posts.enabled %}
diff --git a/_pages/about.md b/_pages/about.md
index 13d9687..58d5b32 100644
--- a/_pages/about.md
+++ b/_pages/about.md
@@ -13,9 +13,18 @@ profile:
123 your address street
Your City, State 12345
-news: true # includes a list of news items
selected_papers: true # includes a list of papers marked as "selected={true}"
social: true # includes social icons at the bottom of the page
+
+announcements:
+ enabled: true # includes a list of news items
+ scrollable: true # adds a vertical scroll bar if there are more than 3 news items
+ limit: 5 # leave blank to include all the news in the `_news` folder
+
+latest_posts:
+ enabled: true
+ scrollable: true # adds a vertical scroll bar if there are more than 3 new posts items
+ limit: 3 # leave blank to include all the blog posts
---
Write your biography here. Tell the world about yourself. Link to your favorite [subreddit](http://reddit.com). You can put a picture in, too. The code is already in, just name your picture `prof_pic.jpg` and put it in the `img/` folder.