Moved specific information from config to about (#2985)
Moved news and latest posts related information from `_config.yml` to `_about.md` page. Signed-off-by: George Araújo <george.gcac@gmail.com>
This commit is contained in:
parent
4f28b9b97a
commit
0b3f19dfb3
@ -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
|
||||
|
||||
10
_config.yml
10
_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
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
@ -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 %}
|
||||
|
||||
@ -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 %}
|
||||
|
||||
@ -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 %}
|
||||
|
||||
@ -41,7 +41,7 @@ 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>
|
||||
@ -49,7 +49,7 @@ layout: default
|
||||
{% 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>
|
||||
|
||||
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user