Skip to content

Commit

Permalink
Rename Articles to Blog
Browse files Browse the repository at this point in the history
  • Loading branch information
yousinix committed Jan 10, 2020
1 parent fd051b5 commit afb8609
Show file tree
Hide file tree
Showing 14 changed files with 54 additions and 54 deletions.
8 changes: 4 additions & 4 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ plugins:
nav_exclude: # Pages with the following paths will be excluded from navbar
- 404.html
- index.html
- articles/tags.html
- articles/page-:num/index.html
- blog/tags.html
- blog/page-:num/index.html


### Author Info ###
Expand Down Expand Up @@ -49,11 +49,11 @@ author:

### Pagination ###
paginate: 6
paginate_path: "/articles/page-:num/"
paginate_path: "/blog/page-:num/"


### Posts Permalink ###
permalink: articles/:title
permalink: blog/:title


### Collections ###
Expand Down
8 changes: 4 additions & 4 deletions _includes/articles/index.html → _includes/blog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
{% endif %}
{% endif %}

{% comment %} Determine Article URL {% endcomment %}
{% comment %} Determine Post URL {% endcomment %}
{% if post.external_url %}
{% assign article_url = post.external_url %}
{% assign post_url = post.external_url %}
{% else %}
{% assign article_url = post.url | relative_url %}
{% assign post_url = post.url | relative_url %}
{% endif %}

<div class="col-lg-6 my-3 wow animated fadeIn" data-wow-delay=".15s">
<a href="{{ article_url }}" class="article card {{ card_style }}">
<a href="{{ post_url }}" class="post card {{ card_style }}">
<div class="card-body {{ text_style }}">
<h3 class="card-title">{{ post.title }}</h3>
<p class="card-text">
Expand Down
4 changes: 2 additions & 2 deletions _includes/articles/search.html → _includes/blog/search.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<!-- Simple-Jekyll-Search https://github.com/christian-fei/Simple-Jekyll-Search -->

<div class="input-group mt-5 px-3">
<input id="search-input" type="text" class="form-control search-box" placeholder="Search articles..">
<input id="search-input" type="text" class="form-control search-box" placeholder="Search posts..">
<div class="input-group-append">
<span class="input-group-text border border-primary bg-primary text-white">
<i class="fas fa-search"></i>
</span>
</div>
<button class="btn btn-outline-primary ml-1" onclick="location.href = '{{ '/articles/tags' | relative_url }}';">
<button class="btn btn-outline-primary ml-1" onclick="location.href = '{{ '/blog/tags' | relative_url }}';">
<i class="fas fa-tags"></i>
</button>
</div>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
layout: default
---

<div class="col-lg-10 mx-auto mt-5 article">
<div class="col-lg-10 mx-auto mt-5 post">
{{ content }}
</div>
6 changes: 3 additions & 3 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<h1><b>{{ page.title }}</b></h1>

<p class="article-metadata text-muted">
<p class="post-metadata text-muted">
{{ page.date | date_to_long_string }} -
<b>
{% assign words = content | number_of_words %}
Expand All @@ -20,7 +20,7 @@ <h1><b>{{ page.title }}</b></h1>
{% if page.tags != empty %}
Tags:
{% for tag in page.tags %}
<a class="text-decoration-none no-underline" href="{{ tag | slugify | prepend:'/articles/tags#' | relative_url }}">
<a class="text-decoration-none no-underline" href="{{ tag | slugify | prepend:'/blog/tags#' | relative_url }}">
<span class="tag badge badge-pill text-primary border border-primary">{{ tag }}</span>
</a>
{% endfor %}
Expand All @@ -31,6 +31,6 @@ <h1><b>{{ page.title }}</b></h1>
{{ content }}

<footer>
This Article is <b>open source</b>. Noticed a typo? </br>
This page is <b>open source</b>. Noticed a typo? </br>
Or something unclear? Improve it on {% github_edit_link "GitHub" %}.
</footer>
6 changes: 3 additions & 3 deletions _sass/_articles.scss → _sass/_blog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
box-shadow:none !important;
}

.article.card {
.post.card {
border-radius: $rounded-borders;
text-decoration: none!important;
padding: 15px;
Expand All @@ -15,9 +15,9 @@
}
}

.article {
.post {

.article-metadata {
.post-metadata {
font-size: 14px;
margin-top: -6px;
}
Expand Down
2 changes: 1 addition & 1 deletion _sass/_projects.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
border-radius: $rounded-borders $rounded-borders 0 0;
}

&:hover:not(.article) {
&:hover:not(.post) {
box-shadow: -2px 8px 40px -12px rgba(0, 0, 0, .24);
}
}
8 changes: 4 additions & 4 deletions _sass/portfolYOU.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

// Import partials from `sass_dir` (defaults to `_sass`)
@import "variables",
"404",
"autumn",
"base",
"blog",
"navbar",
"projects",
"articles",
"autumn",
"skills",
"timeline",
"404";
"timeline";
8 changes: 0 additions & 8 deletions articles/index.html

This file was deleted.

7 changes: 0 additions & 7 deletions articles/tags.html

This file was deleted.

8 changes: 8 additions & 0 deletions blog/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
layout: default
title: Blog
weight: 2
---

{% include blog/search.html %}
{% include blog/index.html %}
7 changes: 7 additions & 0 deletions blog/tags.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
layout: page
title: Tags
permalink: /blog/tags
---

{% include blog/tags.html %}
34 changes: 17 additions & 17 deletions docs/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ portfolYOU is a free modern open-source Jekyll portfolio and blogging theme that
- Support [Repository metadata][repo-meta], [FontAwesome][font-awesome], [GitHub Buttons][gh-btns] and many [more](#dependencies).
- Support **all image orientations** _(landscape, portrait or square)_ as a landing image.
- **Automatic** importing for **GitHub Repositories** as Projects.
- **Search** articles by title, tags or descriptions.
- **Tags archive** for articles.
- **Search** posts by title, tags or descriptions.
- **Tags archive** for posts.
- Skills progress bars and education/experience timeline.
- Support large number of **social networks**.
- Quick including for various [elements][elements] as videos, lists, figures, buttons and many more.
Expand Down Expand Up @@ -56,14 +56,14 @@ portfolYOU is a free modern open-source Jekyll portfolio and blogging theme that
│ ├── social-media.yml
│ └── timeline.yml
├── _posts/
│ ├── YYYY-MM-DD-article-1.md
│ ├── YYYY-MM-DD-post-1.md
│ ├── ....
│ └── YYYY-MM-DD-article-n.md
│ └── YYYY-MM-DD-post-n.md
├── _projects/
│ ├── project-1.md
│ ├── ....
│ └── project-n.md
├── articles/
├── blog/
│ ├── index.html
│ └── tags.html
├── pages/
Expand Down Expand Up @@ -112,11 +112,11 @@ portfolYOU is a free modern open-source Jekyll portfolio and blogging theme that

portfolYOU's sections are **independent**, you can remove any section upon your needs. Here's a list of the files and folders needed by each section:

| Projects | Articles | About |
| Projects | Blog | About |
| :--------- | :--------- | :--------- |
| pages/projects.html | articles/ | pages/about.md |
| _includes/projects/ | _includes/articles/ | _includes/about/ |
| _sass/projects.scss ¹ | _sass/_articles.scss ¹ | _sass/_skills.scss ¹ |
| pages/projects.html | blog/ | pages/about.md |
| _includes/projects/ | _includes/blog/ | _includes/about/ |
| _sass/projects.scss ¹ | _sass/_blog.scss ¹ | _sass/_skills.scss ¹ |
| assets/js/card-animation.js ² | _layouts/post.html | _sass/_timeline.scss ¹ |
| _projects/ ³ | _posts/ ⁴ | _data/ ⁵ |

Expand Down Expand Up @@ -165,24 +165,24 @@ remote_projects:
---
```

#### Articles
#### Posts

1. Add `YYYY-MM-DD-article-name.md` to `_posts/`.
1. Add [front matter](https://jekyllrb.com/docs/front-matter/) to the top of your new article file.
1. Add `YYYY-MM-DD-post-name.md` to `_posts/`.
1. Add [front matter](https://jekyllrb.com/docs/front-matter/) to the top of your new post file.

```yaml
---
title: Awesome Title
tags: [TAG 1, TAG 2]
style: fill / border (choose one only)
color: primary / secondary / success / danger / warning / info / light / dark (choose one only)
description: Write article description here, or it will be the first 25 words of the article's body.
description: Write post description here, or it will be the first 25 words of the post's body.
---
```

1. If you left both the style and color empty, the article's style is set to default style.
1. Add article body in markdown or html. Check available [elements]({{ '/elements' | relative_url }}) to enjoy extra customization.
1. Check more articles templates from [here]({{ site.github.repository_url }}/tree/master/_posts).
1. If you left both the style and color empty, the post's style is set to default style.
1. Add post body in markdown or html. Check available [elements]({{ '/elements' | relative_url }}) to enjoy extra customization.
1. Check more posts templates from [here]({{ site.github.repository_url }}/tree/master/_posts).

#### Pages

Expand All @@ -203,7 +203,7 @@ remote_projects:

#### External Content

If you want your project, article or even the page to refer to an external resource, _**google.com** for example_, just add the following attribute to your front matter:
If you want your project, post or even the page to refer to an external resource, _**google.com** for example_, just add the following attribute to your front matter:

```yaml
---
Expand Down

0 comments on commit afb8609

Please sign in to comment.