File tree Expand file tree Collapse file tree 6 files changed +22
-16
lines changed Expand file tree Collapse file tree 6 files changed +22
-16
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,8 @@ To remove the blog, you have to:
176
176
- delete [\_posts](_posts/) directory
177
177
- delete blog page [\_pages/blog.md](_pages/blog.md)
178
178
- remove reference to blog page in our [\_pages/dropdown.md](_pages/dropdown.md)
179
- - remove the `Blog` section in the [\_config.yml](_config.yml) file and the related parts, like the `jekyll-archives` and `latest_posts`
179
+ - remove the `latest_posts` part in [\_pages/about.md](_pages/about.md)
180
+ - remove the `Blog` section in the [\_config.yml](_config.yml) file and the related parts, like the `jekyll-archives`
180
181
181
182
You can also :
182
183
@@ -195,7 +196,7 @@ To remove the news section, you can:
195
196
196
197
- delete the [\_news](_news/) directory
197
198
- delete the file [\_includes/news.liquid](_includes/news.liquid) and the references to it in the [\_pages/about.md](_pages/about.md)
198
- - remove the `announcements` part in [\_config.yml](_config.yml )
199
+ - remove the `announcements` part in [\_pages/about.md](_pages/about.md )
199
200
- remove the news part in the `Collections` section in the [\_config.yml](_config.yml) file
200
201
201
202
# ## Removing the projects page
Original file line number Diff line number Diff line change 278
278
<script src =" {{ '/assets/js/search-data.js' | relative_url }}" ></script >
279
279
<script src =" {{ '/assets/js/shortcut-key.js' | relative_url | bust_file_cache }}" ></script >
280
280
{% endif %}
281
-
282
- {% if site .newsletter .enabled %}
283
- <script defer src =" {{ '/assets/js/newsletter.js' | relative_url | bust_file_cache }}" ></script >
284
- {% endif %}
Original file line number Diff line number Diff line change 1
1
<div class =" news" >
2
- {% if site .latest_posts != blank %}
2
+ {% if page .latest_posts != blank %}
3
3
{% assign latest_posts_size = site .posts | size %}
4
4
<div
5
5
class =" table-responsive"
6
- {% if site .latest_posts.scrollable and latest_posts_size > 3 %}
6
+ {% if page .latest_posts.scrollable and latest_posts_size > 3 %}
7
7
style="max-height: 60vw"
8
8
{% endif %}
9
9
>
10
10
<table class =" table table-sm table-borderless" >
11
11
{% assign latest_posts = site .posts %}
12
- {% if site .latest_posts .limit %}
13
- {% assign latest_posts_limit = site .latest_posts .limit %}
12
+ {% if page .latest_posts .limit %}
13
+ {% assign latest_posts_limit = page .latest_posts .limit %}
14
14
{% else %}
15
15
{% assign latest_posts_limit = latest_posts_size %}
16
16
{% endif %}
Original file line number Diff line number Diff line change 3
3
{% assign news_size = site .news | size %}
4
4
<div
5
5
class =" table-responsive"
6
- {% if include.limit and site .announcements.scrollable and news_size > 3 %}
6
+ {% if include.limit and page .announcements.scrollable and news_size > 3 %}
7
7
style="max-height: 60vw"
8
8
{% endif %}
9
9
>
10
10
<table class =" table table-sm table-borderless" >
11
11
{% assign news = site .news | reverse %}
12
- {% if include .limit and site .announcements .limit %}
13
- {% assign news_limit = site .announcements .limit %}
12
+ {% if include .limit and page .announcements .limit %}
13
+ {% assign news_limit = page .announcements .limit %}
14
14
{% else %}
15
15
{% assign news_limit = news_size %}
16
16
{% endif %}
Original file line number Diff line number Diff line change @@ -41,15 +41,15 @@ layout: default
41
41
<div class =" clearfix" >{{ content }}</div >
42
42
43
43
<!-- News -->
44
- {% if page .news and site . announcements and site .announcements .enabled %}
44
+ {% if page .announcements and page .announcements .enabled %}
45
45
<h2 >
46
46
<a href =" {{ '/news/' | relative_url }}" style =" color : inherit " >news</a >
47
47
</h2 >
48
48
{% include news .liquid limit =true %}
49
49
{% endif %}
50
50
51
51
<!-- Latest posts -->
52
- {% if site .latest_posts and site .latest_posts .enabled %}
52
+ {% if page .latest_posts and page .latest_posts .enabled %}
53
53
<h2 >
54
54
<a href =" {{ '/blog/' | relative_url }}" style =" color : inherit " >latest posts</a >
55
55
</h2 >
Original file line number Diff line number Diff line change @@ -10,9 +10,18 @@ profile:
10
10
image_circular : false # crops the image to make it circular
11
11
more_info : >
12
12
13
- news : true # includes a list of news items
14
13
selected_papers : true # includes a list of papers marked as "selected={true}"
15
14
social : true # includes social icons at the bottom of the page
15
+
16
+ announcements :
17
+ enabled : true # includes a list of news items
18
+ scrollable : true # adds a vertical scroll bar if there are more than 3 news items
19
+ limit : 5 # leave blank to include all the news in the `_news` folder
20
+
21
+ latest_posts :
22
+ enabled : true
23
+ scrollable : true # adds a vertical scroll bar if there are more than 3 new posts items
24
+ limit : 3 # leave blank to include all the blog posts
16
25
---
17
26
18
27
I'm a second-year graduate student at [ Pennsylvania State University] ( https://www.psu.edu/ ) , pursuing a PhD in Computer Science and Engineering.
You can’t perform that action at this time.
0 commit comments