-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added syntax line numbers and post rating stars
- Loading branch information
1 parent
94238af
commit 24f6cba
Showing
14 changed files
with
209 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{% if page.rating == 5 %} | ||
<span class="star-rating text-warning"> ★★★★★</span> | ||
{% endif %} | ||
|
||
{% if page.rating == 4 %} | ||
<span class="star-rating text-warning"> ★★★★☆</span> | ||
{% endif %} | ||
|
||
{% if page.rating == 3 %} | ||
<span class="star-rating text-warning"> ★★★☆☆</span> | ||
{% endif %} | ||
|
||
{% if page.rating == 2 %} | ||
<span class="star-rating text-warning"> ★★☆☆☆</span> | ||
{% endif %} | ||
|
||
{% if page.rating == 1 %} | ||
<span class="star-rating text-warning"> ★☆☆☆☆</span> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{% if post.rating == 5 %} | ||
<span class="star-rating text-warning"> ★★★★★</span> | ||
{% endif %} | ||
|
||
{% if post.rating == 4 %} | ||
<span class="star-rating text-warning"> ★★★★☆</span> | ||
{% endif %} | ||
|
||
{% if post.rating == 3 %} | ||
<span class="star-rating text-warning"> ★★★☆☆</span> | ||
{% endif %} | ||
|
||
{% if post.rating == 2 %} | ||
<span class="star-rating text-warning"> ★★☆☆☆</span> | ||
{% endif %} | ||
|
||
{% if post.rating == 1 %} | ||
<span class="star-rating text-warning"> ★☆☆☆☆</span> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,29 @@ | ||
--- | ||
layout: post | ||
title: "What is Jekyll" | ||
title: "Inception Movie" | ||
author: john | ||
categories: [ Jekyll, tutorial ] | ||
image: assets/images/11.jpg | ||
description: "My review of Inception movie. Acting, plot and something else in this short description." | ||
featured: true | ||
hidden: true | ||
rating: 5 | ||
--- | ||
|
||
No more databases, comment moderation, or pesky updates to install-just your content. Markdown, Liquid, HTML & CSS go in. Static sites come out ready for deployment. Permalinks, categories, pages, posts, and custom layouts are all first-class citizens here. | ||
Review products, books, movies, restaurant and anything you like on your Jekyll blog with Mediumish! JSON-LD ready for review property. | ||
|
||
Sick of dealing with hosting companies? GitHub Pages are powered by Jekyll, so you can easily deploy your site using GitHub for free-custom domain name and all. | ||
#### How to use? | ||
|
||
## What is Jekyll? | ||
It's actually really simple! Add the rating in your YAML front matter: | ||
|
||
Jekyll is a simple, blog-aware, static site generator. | ||
|
||
You create your content as text files (Markdown), and organize them into folders. Then, you build the shell of your site using Liquid-enhanced HTML templates. Jekyll automatically stitches the content and templates together, generating a website made entirely of static assets, suitable for uploading to any server. | ||
|
||
Jekyll happens to be the engine behind GitHub Pages, so you can host your project’s Jekyll page/blog/website on GitHub’s servers for free. | ||
```html | ||
--- | ||
layout: post | ||
title: "Inception Movie" | ||
author: john | ||
categories: [ Jekyll, tutorial ] | ||
image: assets/images/11.jpg | ||
description: "My review of Inception movie. Actors, directing and more." | ||
rating: 5 | ||
--- | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters