dev-portfolio-blog 0.1.10 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,41 +1,41 @@
1
- {% if include.pageurl != nil and include.pageurl != '' %}
2
- {% assign pageurl = include.pageurl %}
3
- {% else %}
4
- {% assign pageurl = page.url %}
5
- {% endif %}
6
-
7
- <style>
8
- #share-buttons {display: inline-block; vertical-align: middle; }
9
- #share-buttons:after {content: ""; display: block; clear: both;}
10
- #share-buttons > div {
11
- position: relative;
12
- text-align: left;
13
- height: 36px;
14
- width: 32px;
15
- float: left;
16
- text-align: center;
17
- }
18
- #share-buttons > div > svg {height: 16px; fill: #d5d5d5; margin-top: 10px;}
19
- #share-buttons > div:hover {cursor: pointer;}
20
- #share-buttons > div.facebook:hover > svg {fill: #3B5998;}
21
- #share-buttons > div.twitter:hover > svg {fill: #55ACEE;}
22
- #share-buttons > div.linkedin:hover > svg {fill: #0077b5;}
23
- #share-buttons > div.pinterest:hover > svg {fill: #CB2027;}
24
- #share-buttons > div.mail:hover > svg {fill: #7D7D7D;}
25
- #share-buttons > div.instagram:hover > svg {fill: #C73B92;}
26
- #share-buttons > div.facebook > svg {height: 18px; margin-top: 9px;}
27
- #share-buttons > div.twitter > svg {height: 20px; margin-top: 8px;}
28
- #share-buttons > div.linkedin > svg {height: 19px; margin-top: 7px;}
29
- #share-buttons > div.pinterest > svg {height: 20px; margin-top: 9px;}
30
- #share-buttons > div.mail > svg {height: 14px; margin-top: 11px;}
31
- </style>
32
-
33
- <span>Share on: </span><div id="share-buttons">
34
- <div class="facebook" title="Share this on Facebook" onclick="window.open('http://www.facebook.com/share.php?u={{ site.url }}{{ pageurl }}');"><svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1343 12v264h-157q-86 0-116 36t-30 108v189h293l-39 296h-254v759h-306v-759h-255v-296h255v-218q0-186 104-288.5t277-102.5q147 0 228 12z"/></svg></div>
35
- <div class="twitter" title="Share this on Twitter" onclick="window.open('http://twitter.com/home?status={{ site.url }}{{ pageurl }}');"><svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1684 408q-67 98-162 167 1 14 1 42 0 130-38 259.5t-115.5 248.5-184.5 210.5-258 146-323 54.5q-271 0-496-145 35 4 78 4 225 0 401-138-105-2-188-64.5t-114-159.5q33 5 61 5 43 0 85-11-112-23-185.5-111.5t-73.5-205.5v-4q68 38 146 41-66-44-105-115t-39-154q0-88 44-163 121 149 294.5 238.5t371.5 99.5q-8-38-8-74 0-134 94.5-228.5t228.5-94.5q140 0 236 102 109-21 205-78-37 115-142 178 93-10 186-50z"/></svg></div>
36
- <div class="linkedin" title="Share this on Linkedin" onclick="window.open('https://www.linkedin.com/shareArticle?mini=true&url={{ site.url }}{{ pageurl }}&title=&summary=&source=');"><svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M477 625v991h-330v-991h330zm21-306q1 73-50.5 122t-135.5 49h-2q-82 0-132-49t-50-122q0-74 51.5-122.5t134.5-48.5 133 48.5 51 122.5zm1166 729v568h-329v-530q0-105-40.5-164.5t-126.5-59.5q-63 0-105.5 34.5t-63.5 85.5q-11 30-11 81v553h-329q2-399 2-647t-1-296l-1-48h329v144h-2q20-32 41-56t56.5-52 87-43.5 114.5-15.5q171 0 275 113.5t104 332.5z"/></svg></div>
37
- {% if page.image %}<div class="pinterest" title="Share this on Pinterest" onclick="window.open('https://pinterest.com/pin/create/button/?url=&media={{ site.url }}{{ page.image }}&description=');"><svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M256 597q0-108 37.5-203.5t103.5-166.5 152-123 185-78 202-26q158 0 294 66.5t221 193.5 85 287q0 96-19 188t-60 177-100 149.5-145 103-189 38.5q-68 0-135-32t-96-88q-10 39-28 112.5t-23.5 95-20.5 71-26 71-32 62.5-46 77.5-62 86.5l-14 5-9-10q-15-157-15-188 0-92 21.5-206.5t66.5-287.5 52-203q-32-65-32-169 0-83 52-156t132-73q61 0 95 40.5t34 102.5q0 66-44 191t-44 187q0 63 45 104.5t109 41.5q55 0 102-25t78.5-68 56-95 38-110.5 20-111 6.5-99.5q0-173-109.5-269.5t-285.5-96.5q-200 0-334 129.5t-134 328.5q0 44 12.5 85t27 65 27 45.5 12.5 30.5q0 28-15 73t-37 45q-2 0-17-3-51-15-90.5-56t-61-94.5-32.5-108-11-106.5z"/></svg></div>{% endif %}
38
- <div class="mail" title="Share this through Email" onclick="window.open('mailto:?subject=Hey Checkout this Amazing Blog I Found&body={{ site.url }}{{ pageurl }}');"><svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1792 710v794q0 66-47 113t-113 47h-1472q-66 0-113-47t-47-113v-794q44 49 101 87 362 246 497 345 57 42 92.5 65.5t94.5 48 110 24.5h2q51 0 110-24.5t94.5-48 92.5-65.5q170-123 498-345 57-39 100-87zm0-294q0 79-49 151t-122 123q-376 261-468 325-10 7-42.5 30.5t-54 38-52 32.5-57.5 27-50 9h-2q-23 0-50-9t-57.5-27-52-32.5-54-38-42.5-30.5q-91-64-262-182.5t-205-142.5q-62-42-117-115.5t-55-136.5q0-78 41.5-130t118.5-52h1472q65 0 112.5 47t47.5 113z"/></svg></div>
39
- </div>
40
-
1
+ {% if include.pageurl != nil and include.pageurl != '' %}
2
+ {% assign pageurl = include.pageurl %}
3
+ {% else %}
4
+ {% assign pageurl = page.url %}
5
+ {% endif %}
6
+
7
+ <style>
8
+ #share-buttons {display: inline-block; vertical-align: middle; }
9
+ #share-buttons:after {content: ""; display: block; clear: both;}
10
+ #share-buttons > div {
11
+ position: relative;
12
+ text-align: left;
13
+ height: 36px;
14
+ width: 32px;
15
+ float: left;
16
+ text-align: center;
17
+ }
18
+ #share-buttons > div > svg {height: 16px; fill: #d5d5d5; margin-top: 10px;}
19
+ #share-buttons > div:hover {cursor: pointer;}
20
+ #share-buttons > div.facebook:hover > svg {fill: #3B5998;}
21
+ #share-buttons > div.twitter:hover > svg {fill: #55ACEE;}
22
+ #share-buttons > div.linkedin:hover > svg {fill: #0077b5;}
23
+ #share-buttons > div.pinterest:hover > svg {fill: #CB2027;}
24
+ #share-buttons > div.mail:hover > svg {fill: #7D7D7D;}
25
+ #share-buttons > div.instagram:hover > svg {fill: #C73B92;}
26
+ #share-buttons > div.facebook > svg {height: 18px; margin-top: 9px;}
27
+ #share-buttons > div.twitter > svg {height: 20px; margin-top: 8px;}
28
+ #share-buttons > div.linkedin > svg {height: 19px; margin-top: 7px;}
29
+ #share-buttons > div.pinterest > svg {height: 20px; margin-top: 9px;}
30
+ #share-buttons > div.mail > svg {height: 14px; margin-top: 11px;}
31
+ </style>
32
+
33
+ <span>Share on: </span><div id="share-buttons">
34
+ <div class="facebook" title="Share this on Facebook" onclick="window.open('http://www.facebook.com/share.php?u={{ site.url }}{{ pageurl }}');"><svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1343 12v264h-157q-86 0-116 36t-30 108v189h293l-39 296h-254v759h-306v-759h-255v-296h255v-218q0-186 104-288.5t277-102.5q147 0 228 12z"/></svg></div>
35
+ <div class="twitter" title="Share this on Twitter" onclick="window.open('http://twitter.com/home?status={{ site.url }}{{ pageurl }}');"><svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1684 408q-67 98-162 167 1 14 1 42 0 130-38 259.5t-115.5 248.5-184.5 210.5-258 146-323 54.5q-271 0-496-145 35 4 78 4 225 0 401-138-105-2-188-64.5t-114-159.5q33 5 61 5 43 0 85-11-112-23-185.5-111.5t-73.5-205.5v-4q68 38 146 41-66-44-105-115t-39-154q0-88 44-163 121 149 294.5 238.5t371.5 99.5q-8-38-8-74 0-134 94.5-228.5t228.5-94.5q140 0 236 102 109-21 205-78-37 115-142 178 93-10 186-50z"/></svg></div>
36
+ <div class="linkedin" title="Share this on Linkedin" onclick="window.open('https://www.linkedin.com/shareArticle?mini=true&url={{ site.url }}{{ pageurl }}&title=&summary=&source=');"><svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M477 625v991h-330v-991h330zm21-306q1 73-50.5 122t-135.5 49h-2q-82 0-132-49t-50-122q0-74 51.5-122.5t134.5-48.5 133 48.5 51 122.5zm1166 729v568h-329v-530q0-105-40.5-164.5t-126.5-59.5q-63 0-105.5 34.5t-63.5 85.5q-11 30-11 81v553h-329q2-399 2-647t-1-296l-1-48h329v144h-2q20-32 41-56t56.5-52 87-43.5 114.5-15.5q171 0 275 113.5t104 332.5z"/></svg></div>
37
+ {% if page.image %}<div class="pinterest" title="Share this on Pinterest" onclick="window.open('https://pinterest.com/pin/create/button/?url=&media={{ site.url }}{{ page.image }}&description=');"><svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M256 597q0-108 37.5-203.5t103.5-166.5 152-123 185-78 202-26q158 0 294 66.5t221 193.5 85 287q0 96-19 188t-60 177-100 149.5-145 103-189 38.5q-68 0-135-32t-96-88q-10 39-28 112.5t-23.5 95-20.5 71-26 71-32 62.5-46 77.5-62 86.5l-14 5-9-10q-15-157-15-188 0-92 21.5-206.5t66.5-287.5 52-203q-32-65-32-169 0-83 52-156t132-73q61 0 95 40.5t34 102.5q0 66-44 191t-44 187q0 63 45 104.5t109 41.5q55 0 102-25t78.5-68 56-95 38-110.5 20-111 6.5-99.5q0-173-109.5-269.5t-285.5-96.5q-200 0-334 129.5t-134 328.5q0 44 12.5 85t27 65 27 45.5 12.5 30.5q0 28-15 73t-37 45q-2 0-17-3-51-15-90.5-56t-61-94.5-32.5-108-11-106.5z"/></svg></div>{% endif %}
38
+ <div class="mail" title="Share this through Email" onclick="window.open('mailto:?subject=Hey Checkout this Amazing Blog I Found&body={{ site.url }}{{ pageurl }}');"><svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1792 710v794q0 66-47 113t-113 47h-1472q-66 0-113-47t-47-113v-794q44 49 101 87 362 246 497 345 57 42 92.5 65.5t94.5 48 110 24.5h2q51 0 110-24.5t94.5-48 92.5-65.5q170-123 498-345 57-39 100-87zm0-294q0 79-49 151t-122 123q-376 261-468 325-10 7-42.5 30.5t-54 38-52 32.5-57.5 27-50 9h-2q-23 0-50-9t-57.5-27-52-32.5-54-38-42.5-30.5q-91-64-262-182.5t-205-142.5q-62-42-117-115.5t-55-136.5q0-78 41.5-130t118.5-52h1472q65 0 112.5 47t47.5 113z"/></svg></div>
39
+ </div>
40
+
41
41
  <!--- Special thanks to https://jekyllcodex.org/without-plugin/share-buttons for this amazing piece of code without the use of actual images--->
@@ -1,2 +1,2 @@
1
- <select id='themeSelector' onchange="toggleTheme()" aria-label="Select theme">
2
- </select>
1
+ <select id='themeSelector' onchange="toggleTheme()" aria-label="Select theme">
2
+ </select>
data/_layouts/blog.html CHANGED
@@ -1,46 +1,50 @@
1
- ---
2
- layout: description
3
- title: Blog
4
- pagetype: blog
5
- ---
6
- <!-- This loops through the paginated posts -->
7
-
8
-
9
- {% if paginator.total_posts == 0 %}
10
- <p>No posts right now.</p>
11
- {% else %}
12
- <div class="blogPage-categoryList">
13
- <ul>
14
- <li><a href="{{ "/categories/" | relative_url }}">Categories</a> : </li>
15
- {% for category in site.categories %}
16
- {% capture category_name %}{{ category | first }}{% endcapture %}
17
- <li><a href="{{"/categories/#" | append: category_name | relative_url}}">{{category_name}}</a></li>
18
- {% endfor %}
19
- </ul>
20
- </div>
21
- <ul class="blog-list">
22
- {% for post in paginator.posts %}
23
- <li>
24
- <a class="blog-heading" href="{{ post.url | relative_url }}">{{ post.title }}</a><span class="date">{{ post.date | date_to_string }}</span>
25
- <div class="excerpt">{{ post.excerpt }}</div>
26
- </li>
27
- {% endfor %}
28
- </ul>
29
- {% endif %}
30
-
31
- <hr>
32
- {% if paginator.total_pages > 1 %}
33
- <ul>
34
-
35
- {% if paginator.previous_page %}
36
- <li>
37
- <a href="{{ paginator.previous_page_path | prepend: site.baseurl }}">Newer</a>
38
- </li>
39
- {% endif %}
40
- {% if paginator.next_page %}
41
- <li>
42
- <a href="{{ paginator.next_page_path | prepend: site.baseurl }}">Older</a>
43
- </li>
44
- {% endif %}
45
- </ul>
46
- {% endif %}
1
+ ---
2
+ layout: description
3
+ title: Blog
4
+ pagetype: blog
5
+ ---
6
+ <!-- This loops through the paginated posts -->
7
+
8
+
9
+ {% if paginator.total_posts == 0 %}
10
+ <p>No posts right now.</p>
11
+ {% else %}
12
+ <div class="blogPage-categoryList">
13
+ <ul>
14
+ <li><a href="{{ "/categories/" | relative_url }}">Categories</a> : </li>
15
+ {% for category in site.categories %}
16
+ {% capture category_name %}{{ category | first }}{% endcapture %}
17
+ <li><a href="{{"/categories/#" | append: category_name | relative_url}}">{{category_name}}</a></li>
18
+ {% endfor %}
19
+ </ul>
20
+ </div>
21
+ <ul class="blog-list">
22
+ {% for post in paginator.posts %}
23
+ <li>
24
+ <a class="blog-heading" href="{{ post.url | relative_url }}">{{ post.title }}</a><span class="date">{{ post.date | date_to_string }}</span>
25
+ {% assign preview = post.description | default: post.excerpt %}
26
+ <div class="excerpt">
27
+ {{ preview | strip_html | normalize_whitespace | truncatewords: 30 }}
28
+ <a href="{{ post.url | relative_url }}">Read more</a>
29
+ </div>
30
+ </li>
31
+ {% endfor %}
32
+ </ul>
33
+ {% endif %}
34
+
35
+ <hr>
36
+ {% if paginator.total_pages > 1 %}
37
+ <ul>
38
+
39
+ {% if paginator.previous_page %}
40
+ <li>
41
+ <a href="{{ paginator.previous_page_path | prepend: site.baseurl }}">Newer</a>
42
+ </li>
43
+ {% endif %}
44
+ {% if paginator.next_page %}
45
+ <li>
46
+ <a href="{{ paginator.next_page_path | prepend: site.baseurl }}">Older</a>
47
+ </li>
48
+ {% endif %}
49
+ </ul>
50
+ {% endif %}
@@ -1,23 +1,23 @@
1
- ---
2
- layout: description
3
- permalink: /categories/
4
- title: Categories
5
- ---
6
-
7
-
8
- <div id="archives">
9
- {% for category in site.categories %}
10
- <div class="archive-group">
11
- {% capture category_name %}{{ category | first }}{% endcapture %}
12
- <div id="#{{ category_name | slugize }}"></div>
13
- <h3 class="category-head">{{ category_name }}</h3>
14
- <a name="{{ category_name | slugize }}"></a>
15
- {% for post in site.categories[category_name] %}
16
- <article class="archive-item">
17
- &nbsp;&nbsp;<a href="{{ post.url | relative_url }}">{{post.title}} - {{ post.date | date_to_string }}</a>
18
- </article>
19
- <br>
20
- {% endfor %}
21
- </div>
22
- {% endfor %}
1
+ ---
2
+ layout: description
3
+ permalink: /categories/
4
+ title: Categories
5
+ ---
6
+
7
+
8
+ <div id="archives">
9
+ {% for category in site.categories %}
10
+ <div class="archive-group">
11
+ {% capture category_name %}{{ category | first }}{% endcapture %}
12
+ <div id="#{{ category_name | slugize }}"></div>
13
+ <h3 class="category-head">{{ category_name }}</h3>
14
+ <a name="{{ category_name | slugize }}"></a>
15
+ {% for post in site.categories[category_name] %}
16
+ <article class="archive-item">
17
+ &nbsp;&nbsp;<a href="{{ post.url | relative_url }}">{{post.title}} - {{ post.date | date_to_string }}</a>
18
+ </article>
19
+ <br>
20
+ {% endfor %}
21
+ </div>
22
+ {% endfor %}
23
23
  </div>
@@ -1,49 +1,49 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <link rel="shortcut icon" href="{{"/favicon.ico" | relative_url }}" type="image/x-icon" />
7
- <link rel="dns-prefetch" href="https://{{ site.disqus.shortname }}.disqus.com">
8
- <meta
9
- itemprop="description"
10
- name="description"
11
- content="
12
- {% if page.description %}
13
- {{ page.description | truncate: 160 }}
14
- {% else %}
15
- {{ site.description | truncate: 160 }}
16
- {% endif %}"
17
- />
18
- <title>
19
- {%if page.title %}
20
- {{ page.title }}
21
- {% else %}
22
- {{ site.title }}
23
- {% endif %}
24
- </title>
25
- <!-- async load css file -->
26
- <link rel="stylesheet" href="{{"/assets/css/styles.css" | relative_url}}" media="none" onload="if(media!='all')media='all'">
27
- <!-- Load css when script is disabled -->
28
- <noscript><link rel="stylesheet" href="{{"/assets/css/styles.css" | relative_url}}"></noscript>
29
-
30
- <!-- Dns Prefetch the google analytics -->
31
- <link rel="dns-prefetch" href="www.googletagmanager.com">
32
- <link rel="dns-prefetch" href="www.google-analytics.com">
33
-
34
-
35
-
36
- <!-- Load the script async and wait for the page to render for script to execute -->
37
- <script defer src="{{"/assets/js/theme.js" | relative_url }}"></script>
38
- <script defer src="{{"/assets/js/script.js" | relative_url }}"></script>
39
-
40
- {% include analytics.html %}
41
- {% feed_meta %}
42
- {% seo %}
43
-
44
- </head>
45
- <body onload="onLoad()">
46
- {% include themeSelector.html %}
47
- {{ content }}
48
- </body>
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <link rel="shortcut icon" href="{{"/favicon.ico" | relative_url }}" type="image/x-icon" />
7
+ <link rel="dns-prefetch" href="https://{{ site.disqus.shortname }}.disqus.com">
8
+ <meta
9
+ itemprop="description"
10
+ name="description"
11
+ content="
12
+ {% if page.description %}
13
+ {{ page.description | truncate: 160 }}
14
+ {% else %}
15
+ {{ site.description | truncate: 160 }}
16
+ {% endif %}"
17
+ />
18
+ <title>
19
+ {%if page.title %}
20
+ {{ page.title }}
21
+ {% else %}
22
+ {{ site.title }}
23
+ {% endif %}
24
+ </title>
25
+ <!-- async load css file -->
26
+ <link rel="stylesheet" href="{{"/assets/css/styles.css" | relative_url}}" media="none" onload="if(media!='all')media='all'">
27
+ <!-- Load css when script is disabled -->
28
+ <noscript><link rel="stylesheet" href="{{"/assets/css/styles.css" | relative_url}}"></noscript>
29
+
30
+ <!-- Dns Prefetch the google analytics -->
31
+ <link rel="dns-prefetch" href="www.googletagmanager.com">
32
+ <link rel="dns-prefetch" href="www.google-analytics.com">
33
+
34
+
35
+
36
+ <!-- Load the script async and wait for the page to render for script to execute -->
37
+ <script defer src="{{"/assets/js/theme.js" | relative_url }}"></script>
38
+ <script defer src="{{"/assets/js/script.js" | relative_url }}"></script>
39
+
40
+ {% include analytics.html %}
41
+ {% feed_meta %}
42
+ {% seo %}
43
+
44
+ </head>
45
+ <body onload="onLoad()">
46
+ {% include themeSelector.html %}
47
+ {{ content }}
48
+ </body>
49
49
  </html>
@@ -1,12 +1,12 @@
1
- ---
2
- layout: default
3
- ---
4
- <div class="mid-section-cover">
5
- <nav>
6
- <h1>{{ site.author_name }}</h1>
7
- {% include navigation.html %}
8
- </nav>
9
- <main class="sub-mid-section-cover">
10
- {{ content }}
11
- </main>
12
- </div>
1
+ ---
2
+ layout: default
3
+ ---
4
+ <div class="mid-section-cover">
5
+ <nav>
6
+ <h1>{{ site.author_name }}</h1>
7
+ {% include navigation.html %}
8
+ </nav>
9
+ <main class="sub-mid-section-cover">
10
+ {{ content }}
11
+ </main>
12
+ </div>
data/_layouts/home.html CHANGED
@@ -1,15 +1,15 @@
1
- ---
2
- title: Rohit Jain
3
- layout: default
4
- ---
5
- <div class="mid-section-home">
6
- <h1><span>I am </span>{{ site.author_name }}</h1>
7
- <div class="row sub-heading">
8
- <div class="summary-about-me">
9
- <p>{{ page.home_text }}</p>
10
- </div>
11
- <div class="nav-link">
12
- {% include navigation.html %}
13
- </div>
14
- </div>
15
- </div>
1
+ ---
2
+ title: Rohit Jain
3
+ layout: default
4
+ ---
5
+ <div class="mid-section-home">
6
+ <h1><span>I am </span>{{ site.author_name }}</h1>
7
+ <div class="row sub-heading">
8
+ <div class="summary-about-me">
9
+ <p>{{ page.home_text }}</p>
10
+ </div>
11
+ <div class="nav-link">
12
+ {% include navigation.html %}
13
+ </div>
14
+ </div>
15
+ </div>
data/_layouts/list.html CHANGED
@@ -1,22 +1,21 @@
1
- ---
2
- layout: description
3
- ---
4
- <ul>
5
- {% if page.contenttype == project %}
6
- {% for post in paginator.posts %}
7
- <li>
8
- <h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
9
- <p>{{ post.excerpt }}</p>
10
- </li>
11
- {% endfor %}
12
- {% elsif page.contenttype == project %}
13
- {% for post in site.posts %}
14
- {% if post.contenttype == page.pagetype %}
15
- <li>
16
- <h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
17
- <p>{{ post.excerpt }}</p>
18
- </li>
19
- {% endif %}
20
- {% endfor %}
21
- {% endif %}
1
+ ---
2
+ layout: description
3
+ ---
4
+ <ul>
5
+ {% if page.contenttype == project %}
6
+ {% for post in paginator.posts %}
7
+ <li>
8
+ <h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
9
+ <p>{{ post.excerpt }}</p>
10
+ </li>
11
+ {% endfor %}
12
+ {% elsif page.contenttype == project %}
13
+ {% assign filtered_posts = site.posts | where: "contenttype", page.pagetype %}
14
+ {% for post in filtered_posts %}
15
+ <li>
16
+ <h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
17
+ <p>{{ post.excerpt }}</p>
18
+ </li>
19
+ {% endfor %}
20
+ {% endif %}
22
21
  </ul>
data/_layouts/page.html CHANGED
@@ -1,5 +1,5 @@
1
- ---
2
- layout: default
3
- ---
4
-
5
- {{ content }}
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {{ content }}
data/_layouts/post.html CHANGED
@@ -1,27 +1,27 @@
1
- ---
2
- layout: description
3
- ---
4
- <h2>{{ page.title }}</h2>
5
- <small>{{ post.date | date_to_string }}</small>
6
- {{content}}
7
-
8
- <div class="post-footer">
9
- <div class="post-categories">
10
- Categories :
11
- {% if post %}
12
- {% assign categories = post.categories %}
13
- {% else %}
14
- {% assign categories = page.categories %}
15
- {% endif %}
16
- {% for category in categories %}
17
- <a href="{{site.baseurl}}/categories/#{{category|slugize}}">{{category}}</a>
18
- {% unless forloop.last %}&nbsp;{% endunless %}
19
- {% endfor %}
20
- </div>
21
- <div>{% include share_buttons.html %}</div>
22
-
23
- </div>
24
- {% if site.disqus.shortname and page.comments %}
25
- <hr>
26
- {% include disqus_comments.html %}
27
- {% endif %}
1
+ ---
2
+ layout: description
3
+ ---
4
+ <h2>{{ page.title }}</h2>
5
+ <small>{{ page.date | date_to_string }}</small>
6
+ {{content}}
7
+
8
+ <div class="post-footer">
9
+ <div class="post-categories">
10
+ Categories :
11
+ {% if post %}
12
+ {% assign categories = post.categories %}
13
+ {% else %}
14
+ {% assign categories = page.categories %}
15
+ {% endif %}
16
+ {% for category in categories %}
17
+ <a href="{{site.baseurl}}/categories/#{{category|slugize}}">{{category}}</a>
18
+ {% unless forloop.last %}&nbsp;{% endunless %}
19
+ {% endfor %}
20
+ </div>
21
+ <div>{% include share_buttons.html %}</div>
22
+
23
+ </div>
24
+ {% if site.disqus.shortname and page.comments %}
25
+ <hr>
26
+ {% include disqus_comments.html %}
27
+ {% endif %}