Skip to content

Moved specific information from config to about #2985

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions CUSTOMIZE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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
Expand Down
10 changes: 0 additions & 10 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
# -----------------------------------------------------------------------------
Expand Down
4 changes: 0 additions & 4 deletions _includes/distill_scripts.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,3 @@
<script src="{{ '/assets/js/search-data.js' | relative_url }}"></script>
<script src="{{ '/assets/js/shortcut-key.js' | relative_url | bust_file_cache }}"></script>
{% endif %}

{% if site.newsletter.enabled %}
<script defer src="{{ '/assets/js/newsletter.js' | relative_url | bust_file_cache }}"></script>
{% endif %}
8 changes: 4 additions & 4 deletions _includes/latest_posts.liquid
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<div class="news">
{% if site.latest_posts != blank %}
{% if page.latest_posts != blank %}
{% assign latest_posts_size = site.posts | size %}
<div
class="table-responsive"
{% if site.latest_posts.scrollable and latest_posts_size > 3 %}
{% if page.latest_posts.scrollable and latest_posts_size > 3 %}
style="max-height: 60vw"
{% endif %}
>
<table class="table table-sm table-borderless">
{% 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 %}
Expand Down
6 changes: 3 additions & 3 deletions _includes/news.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
{% assign news_size = site.news | size %}
<div
class="table-responsive"
{% if include.limit and site.announcements.scrollable and news_size > 3 %}
{% if include.limit and page.announcements.scrollable and news_size > 3 %}
style="max-height: 60vw"
{% endif %}
>
<table class="table table-sm table-borderless">
{% 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 %}
Expand Down
4 changes: 2 additions & 2 deletions _layouts/about.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ layout: default
<div class="clearfix">{{ content }}</div>

<!-- News -->
{% if page.news and site.announcements and site.announcements.enabled %}
{% if page.announcements and page.announcements.enabled %}
<h2>
<a href="{{ '/news/' | relative_url }}" style="color: inherit">news</a>
</h2>
{% include news.liquid limit=true %}
{% endif %}

<!-- Latest posts -->
{% if site.latest_posts and site.latest_posts.enabled %}
{% if page.latest_posts and page.latest_posts.enabled %}
<h2>
<a href="{{ '/blog/' | relative_url }}" style="color: inherit">latest posts</a>
</h2>
Expand Down
11 changes: 10 additions & 1 deletion _pages/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,18 @@ profile:
<p>123 your address street</p>
<p>Your City, State 12345</p>

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.
Expand Down
Loading