jekyll-theme-type-on-strap 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +311 -0
- data/_includes/disqus.html +10 -0
- data/_includes/footer.html +13 -0
- data/_includes/head.html +69 -0
- data/_includes/icons.html +230 -0
- data/_includes/navbar.html +56 -0
- data/_includes/portfolio.html +17 -0
- data/_includes/post_nav.html +20 -0
- data/_includes/tags_list.html +19 -0
- data/_layouts/bootstrap.html +38 -0
- data/_layouts/default.html +11 -0
- data/_layouts/home.html +59 -0
- data/_layouts/page.html +23 -0
- data/_layouts/post.html +30 -0
- data/_layouts/search.html +52 -0
- data/_layouts/tags.html +94 -0
- data/_sass/base/_global.scss +147 -0
- data/_sass/base/_utility.scss +71 -0
- data/_sass/base/_variables.scss +43 -0
- data/_sass/external/_reset.scss +427 -0
- data/_sass/external/_syntax.scss +63 -0
- data/_sass/includes/_footer.scss +17 -0
- data/_sass/includes/_navbar.scss +132 -0
- data/_sass/includes/_post_nav.scss +21 -0
- data/_sass/layouts/_index.scss +106 -0
- data/_sass/layouts/_page.scss +10 -0
- data/_sass/layouts/_portfolio.scss +77 -0
- data/_sass/layouts/_posts.scss +114 -0
- data/_sass/layouts/_search.scss +55 -0
- data/_sass/layouts/_tags.scss +52 -0
- data/_sass/type-on-strap.scss +21 -0
- data/assets/css/bootstrap-iso.min.css +8 -0
- data/assets/css/font-awesome.min.css +4 -0
- data/assets/css/katex.min.css +1 -0
- data/assets/css/main.scss +4 -0
- data/assets/fonts/FontAwesome.otf +0 -0
- data/assets/fonts/KaTeX_AMS-Regular.eot +0 -0
- data/assets/fonts/KaTeX_AMS-Regular.ttf +0 -0
- data/assets/fonts/KaTeX_AMS-Regular.woff +0 -0
- data/assets/fonts/KaTeX_AMS-Regular.woff2 +0 -0
- data/assets/fonts/KaTeX_Caligraphic-Bold.eot +0 -0
- data/assets/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
- data/assets/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
- data/assets/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- data/assets/fonts/KaTeX_Caligraphic-Regular.eot +0 -0
- data/assets/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
- data/assets/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
- data/assets/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- data/assets/fonts/KaTeX_Fraktur-Bold.eot +0 -0
- data/assets/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
- data/assets/fonts/KaTeX_Fraktur-Bold.woff +0 -0
- data/assets/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- data/assets/fonts/KaTeX_Fraktur-Regular.eot +0 -0
- data/assets/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
- data/assets/fonts/KaTeX_Fraktur-Regular.woff +0 -0
- data/assets/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- data/assets/fonts/KaTeX_Main-Bold.eot +0 -0
- data/assets/fonts/KaTeX_Main-Bold.ttf +0 -0
- data/assets/fonts/KaTeX_Main-Bold.woff +0 -0
- data/assets/fonts/KaTeX_Main-Bold.woff2 +0 -0
- data/assets/fonts/KaTeX_Main-Italic.eot +0 -0
- data/assets/fonts/KaTeX_Main-Italic.ttf +0 -0
- data/assets/fonts/KaTeX_Main-Italic.woff +0 -0
- data/assets/fonts/KaTeX_Main-Italic.woff2 +0 -0
- data/assets/fonts/KaTeX_Main-Regular.eot +0 -0
- data/assets/fonts/KaTeX_Main-Regular.ttf +0 -0
- data/assets/fonts/KaTeX_Main-Regular.woff +0 -0
- data/assets/fonts/KaTeX_Main-Regular.woff2 +0 -0
- data/assets/fonts/KaTeX_Math-BoldItalic.eot +0 -0
- data/assets/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
- data/assets/fonts/KaTeX_Math-BoldItalic.woff +0 -0
- data/assets/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- data/assets/fonts/KaTeX_Math-Italic.eot +0 -0
- data/assets/fonts/KaTeX_Math-Italic.ttf +0 -0
- data/assets/fonts/KaTeX_Math-Italic.woff +0 -0
- data/assets/fonts/KaTeX_Math-Italic.woff2 +0 -0
- data/assets/fonts/KaTeX_Math-Regular.eot +0 -0
- data/assets/fonts/KaTeX_Math-Regular.ttf +0 -0
- data/assets/fonts/KaTeX_Math-Regular.woff +0 -0
- data/assets/fonts/KaTeX_Math-Regular.woff2 +0 -0
- data/assets/fonts/KaTeX_SansSerif-Bold.eot +0 -0
- data/assets/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
- data/assets/fonts/KaTeX_SansSerif-Bold.woff +0 -0
- data/assets/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- data/assets/fonts/KaTeX_SansSerif-Italic.eot +0 -0
- data/assets/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
- data/assets/fonts/KaTeX_SansSerif-Italic.woff +0 -0
- data/assets/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- data/assets/fonts/KaTeX_SansSerif-Regular.eot +0 -0
- data/assets/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
- data/assets/fonts/KaTeX_SansSerif-Regular.woff +0 -0
- data/assets/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- data/assets/fonts/KaTeX_Script-Regular.eot +0 -0
- data/assets/fonts/KaTeX_Script-Regular.ttf +0 -0
- data/assets/fonts/KaTeX_Script-Regular.woff +0 -0
- data/assets/fonts/KaTeX_Script-Regular.woff2 +0 -0
- data/assets/fonts/KaTeX_Size1-Regular.eot +0 -0
- data/assets/fonts/KaTeX_Size1-Regular.ttf +0 -0
- data/assets/fonts/KaTeX_Size1-Regular.woff +0 -0
- data/assets/fonts/KaTeX_Size1-Regular.woff2 +0 -0
- data/assets/fonts/KaTeX_Size2-Regular.eot +0 -0
- data/assets/fonts/KaTeX_Size2-Regular.ttf +0 -0
- data/assets/fonts/KaTeX_Size2-Regular.woff +0 -0
- data/assets/fonts/KaTeX_Size2-Regular.woff2 +0 -0
- data/assets/fonts/KaTeX_Size3-Regular.eot +0 -0
- data/assets/fonts/KaTeX_Size3-Regular.ttf +0 -0
- data/assets/fonts/KaTeX_Size3-Regular.woff +0 -0
- data/assets/fonts/KaTeX_Size3-Regular.woff2 +0 -0
- data/assets/fonts/KaTeX_Size4-Regular.eot +0 -0
- data/assets/fonts/KaTeX_Size4-Regular.ttf +0 -0
- data/assets/fonts/KaTeX_Size4-Regular.woff +0 -0
- data/assets/fonts/KaTeX_Size4-Regular.woff2 +0 -0
- data/assets/fonts/KaTeX_Typewriter-Regular.eot +0 -0
- data/assets/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
- data/assets/fonts/KaTeX_Typewriter-Regular.woff +0 -0
- data/assets/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- data/assets/fonts/fontawesome-webfont.eot +0 -0
- data/assets/fonts/fontawesome-webfont.svg +2671 -0
- data/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/assets/fonts/fontawesome-webfont.woff +0 -0
- data/assets/fonts/fontawesome-webfont.woff2 +0 -0
- data/assets/fonts/glyphicons-halflings-regular.eot +0 -0
- data/assets/fonts/glyphicons-halflings-regular.svg +288 -0
- data/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/assets/fonts/glyphicons-halflings-regular.woff +0 -0
- data/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/assets/js/bootstrap.min.js +12 -0
- data/assets/js/jekyll-search.min.js +6 -0
- data/assets/js/jquery-3.2.1.min.js +5 -0
- data/assets/js/katex.min.js +6 -0
- data/assets/js/katex_init.js +26 -0
- data/assets/js/main.min.js +1 -0
- data/assets/js/navbar.js +31 -0
- metadata +251 -0
@@ -0,0 +1,56 @@
|
|
1
|
+
<header class="site-header">
|
2
|
+
|
3
|
+
<!-- Logo and title -->
|
4
|
+
<div class="branding">
|
5
|
+
<a href="{{ site.baseurl }}/">
|
6
|
+
<img class="avatar" src="{{ site.baseurl }}/{{ site.theme_settings.avatar }}" alt=""/>
|
7
|
+
</a>
|
8
|
+
|
9
|
+
<h1 class="site-title">
|
10
|
+
<a href="{{ site.baseurl }}/">{{ site.theme_settings.title }}</a>
|
11
|
+
</h1>
|
12
|
+
</div>
|
13
|
+
|
14
|
+
<!-- Toggle menu -->
|
15
|
+
<nav class="clear">
|
16
|
+
<a id="pull" class="toggle" href="#">
|
17
|
+
<i class="fa fa-bars fa-lg"></i>
|
18
|
+
</a>
|
19
|
+
|
20
|
+
<!-- Menu -->
|
21
|
+
<ul>
|
22
|
+
{% for page in site.pages %}
|
23
|
+
{% if page.title and page.hide != true %}
|
24
|
+
<li>
|
25
|
+
<a class="clear" href="{{ page.url | relative_url }}">
|
26
|
+
{{ page.title }}
|
27
|
+
</a>
|
28
|
+
</li>
|
29
|
+
{% endif %}
|
30
|
+
{% endfor %}
|
31
|
+
{% if site.theme_settings.portfolio %}
|
32
|
+
<li>
|
33
|
+
<a class="clear" href="{{ site.url }}{{ site.baseurl }}/portfolio">
|
34
|
+
Portfolio
|
35
|
+
</a>
|
36
|
+
</li>
|
37
|
+
{% endif %}
|
38
|
+
{% if site.theme_settings.search %}
|
39
|
+
<li>
|
40
|
+
<a class="clear" href="{{ site.url }}{{ site.baseurl }}/search">
|
41
|
+
<i class="fa fa-search" aria-hidden="true"></i>
|
42
|
+
</a>
|
43
|
+
</li>
|
44
|
+
{% endif %}
|
45
|
+
{% if site.theme_settings.tags %}
|
46
|
+
<li>
|
47
|
+
<a class="clear" href="{{ site.url }}{{ site.baseurl }}/tags">
|
48
|
+
<i class="fa fa-tags" aria-hidden="true"></i>
|
49
|
+
</a>
|
50
|
+
</li>
|
51
|
+
{% endif %}
|
52
|
+
|
53
|
+
</ul>
|
54
|
+
|
55
|
+
</nav>
|
56
|
+
</header>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<!-- Portfolio Grid Section -->
|
2
|
+
<section class="portfolio">
|
3
|
+
<div class="row">
|
4
|
+
{% for item in site.portfolio %}
|
5
|
+
<div class="col-sm-4 col-xs-4 portfolio-item">
|
6
|
+
<a href="{{ site.baseurl }}{{ item.url }}" class="portfolio-link" data-keyboard="true">
|
7
|
+
<div class="caption" title="{{ item.title }}">
|
8
|
+
<div class="caption-content">
|
9
|
+
<i class="fa fa-search-plus fa-3x"></i>
|
10
|
+
</div>
|
11
|
+
</div>
|
12
|
+
<img src="{{ site.baseurl }}/{{ item.img }}" class="" alt="">
|
13
|
+
</a>
|
14
|
+
</div>
|
15
|
+
{% endfor %}
|
16
|
+
</div>
|
17
|
+
</section>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<div id="post-nav">
|
2
|
+
{% if page.previous.url %}
|
3
|
+
<div id="previous-post" class="post-nav-post">
|
4
|
+
<p>{{ site.theme_settings.str_previous_post }}</p>
|
5
|
+
<a href="{{ site.baseurl }}{{ page.previous.url }}">
|
6
|
+
{{ page.previous.title }}
|
7
|
+
</a>
|
8
|
+
</div>
|
9
|
+
{% endif %}
|
10
|
+
{% if page.next.url %}
|
11
|
+
<div id="next-post" class="post-nav-post">
|
12
|
+
<p>{{ site.theme_settings.str_next_post }}</p>
|
13
|
+
<a href="{{ site.baseurl }}{{ page.next.url }}">
|
14
|
+
{{ page.next.title }}
|
15
|
+
</a>
|
16
|
+
</div>
|
17
|
+
{% endif %}
|
18
|
+
</div>
|
19
|
+
|
20
|
+
{% endif %}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
{% assign tags = include.tags | split:'|' | sort | uniq %}
|
2
|
+
|
3
|
+
{% if include.tags.size > 0 %}
|
4
|
+
<footer>
|
5
|
+
<div class="tag-list">
|
6
|
+
{% if include.tags.size == 1 %}
|
7
|
+
<div class="meta">Tag</div>
|
8
|
+
{% elsif include.tags.size > 1 %}
|
9
|
+
<div class="meta">Tags</div>
|
10
|
+
{% endif %}
|
11
|
+
|
12
|
+
{% for tag in tags %}
|
13
|
+
<a class="button" href="{{site.baseurl}}/tags#{{tag}}">
|
14
|
+
<p><i class="fa fa-tag fa-fw"></i> {{ tag }}</p>
|
15
|
+
</a>
|
16
|
+
{% endfor %}
|
17
|
+
</div>
|
18
|
+
</footer>
|
19
|
+
{% endif %}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<!-- Bootstrap-3.3.7 isolation CSS -->
|
6
|
+
<link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/assets/css/bootstrap-iso.min.css">
|
7
|
+
|
8
|
+
<!-- Bootstrap JS -->
|
9
|
+
<script src="{{ site.baseurl }}/assets/js/bootstrap.min.js"></script>
|
10
|
+
|
11
|
+
<article {% if page.feature-img %}class="feature-image" {% endif %}>
|
12
|
+
<header id="main" style="background-image: url('{{ site.baseurl }}/{{ page.feature-img }}')">
|
13
|
+
<h1 class="title">{{ page.title }}</h1> {% if page.subtitle %}
|
14
|
+
<h2 class="subtitle">{{ page.subtitle }}</h2>{% endif %}
|
15
|
+
</header>
|
16
|
+
|
17
|
+
{% if page.description %}
|
18
|
+
<section class="post-content">
|
19
|
+
{{ page.description }}
|
20
|
+
</section>
|
21
|
+
{% endif %}
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
<!-- Bootstrap will work within this div -->
|
26
|
+
<section>
|
27
|
+
<div class="bootstrap-iso">
|
28
|
+
<div class="col-md-1"></div>
|
29
|
+
<div class="col-md-10 centered">
|
30
|
+
{{ content }}
|
31
|
+
</div>
|
32
|
+
<div class="col-md-1"></div>
|
33
|
+
</div>
|
34
|
+
</section>
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
</article>
|
data/_layouts/home.html
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<div class="home">
|
6
|
+
{% if site.theme_settings.header_text %}
|
7
|
+
<div id="main" class="call-out"
|
8
|
+
style="background-image: url('{{ site.baseurl }}/{{ site.theme_settings.header_text_feature_image }}')">
|
9
|
+
{{ site.theme_settings.header_text }}
|
10
|
+
</div>
|
11
|
+
{% endif %}
|
12
|
+
|
13
|
+
<div class="posts">
|
14
|
+
{% for post in paginator.posts %}
|
15
|
+
<div class="post-teaser">
|
16
|
+
{% if post.thumbnail %}
|
17
|
+
<div class="post-img">
|
18
|
+
<img src="{{ site.baseurl }}/{{ post.thumbnail }}">
|
19
|
+
</div>
|
20
|
+
{% endif %}
|
21
|
+
<span>
|
22
|
+
<header>
|
23
|
+
<h1>
|
24
|
+
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">
|
25
|
+
{{ post.title }}
|
26
|
+
</a>
|
27
|
+
</h1>
|
28
|
+
<p class="meta">
|
29
|
+
{{ post.date | date: "%B %-d, %Y" }}
|
30
|
+
</p>
|
31
|
+
</header>
|
32
|
+
<div class="excerpt">
|
33
|
+
{{ post.content | strip_html | truncate: "250" }}
|
34
|
+
<!--<a class="button" href="{{ post.url | prepend: site.baseurl }}">
|
35
|
+
{{ site.theme_settings.str_continue_reading }}
|
36
|
+
</a>-->
|
37
|
+
</div>
|
38
|
+
</span>
|
39
|
+
</div>
|
40
|
+
{% endfor %}
|
41
|
+
</div>
|
42
|
+
|
43
|
+
{% if paginator.total_pages > 1 %}
|
44
|
+
<div class="pagination">
|
45
|
+
{% if paginator.previous_page %}
|
46
|
+
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="button" >
|
47
|
+
<i class="fa fa-chevron-left"></i>
|
48
|
+
{{ site.theme_settings.str_previous_page }}
|
49
|
+
</a>
|
50
|
+
{% endif %}
|
51
|
+
{% if paginator.next_page %}
|
52
|
+
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="button" >
|
53
|
+
{{ site.theme_settings.str_next_page }}
|
54
|
+
<i class="fa fa-chevron-right"></i>
|
55
|
+
</a>
|
56
|
+
{% endif %}
|
57
|
+
</div>
|
58
|
+
{% endif %}
|
59
|
+
</div>
|
data/_layouts/page.html
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<article {% if page.feature-img %}class="feature-image"{% endif %}>
|
6
|
+
<header id="main" style="background-image: url('{{ site.baseurl }}/{{ page.feature-img }}')">
|
7
|
+
<h1 id="{{ page.title | default: "" | cgi_escape }}" class="title">
|
8
|
+
{{ page.title }}
|
9
|
+
</h1>
|
10
|
+
|
11
|
+
{% if page.subtitle %}
|
12
|
+
<h2 class="subtitle">{{ page.subtitle }}</h2>
|
13
|
+
{% endif %}
|
14
|
+
|
15
|
+
</header>
|
16
|
+
<section class="post-content">{{ content }}</section>
|
17
|
+
|
18
|
+
|
19
|
+
<!-- Tag list for portfolio -->
|
20
|
+
{% capture tag_list %}{{ page.tags | join: "|"}}{% endcapture %}
|
21
|
+
{% include tags_list.html tags=tag_list %}
|
22
|
+
|
23
|
+
</article>
|
data/_layouts/post.html
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
<article {% if page.feature-img %}class="feature-image"{% endif %}>
|
5
|
+
<header id="main" style="background-image: url('{{ site.baseurl }}/{{ page.feature-img }}')">
|
6
|
+
<h1 id="{{ page.title | cgi_escape }}" class="title">{{ page.title }}</h1>
|
7
|
+
<p class="meta">
|
8
|
+
{{ page.date | date: "%B %-d, %Y" }}
|
9
|
+
{% if page.author %} - {{ page.author }}{% endif %}
|
10
|
+
</p>
|
11
|
+
</header>
|
12
|
+
<section class="post-content">{{ content }}</section>
|
13
|
+
|
14
|
+
<!-- Tag list -->
|
15
|
+
{% capture tag_list %}{{ page.tags | join: "|"}}{% endcapture %}
|
16
|
+
{% include tags_list.html tags=tag_list %}
|
17
|
+
|
18
|
+
</article>
|
19
|
+
|
20
|
+
<!-- Disqus -->
|
21
|
+
{% if site.theme_settings.disqus_shortname %}
|
22
|
+
<div class="comments">
|
23
|
+
{% include disqus.html %}
|
24
|
+
</div>
|
25
|
+
{% endif %}
|
26
|
+
|
27
|
+
<!-- Post navigation -->
|
28
|
+
{% if site.theme_settings.post_navigation %}
|
29
|
+
{% include post_nav.html %}
|
30
|
+
{% endif %}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
---
|
2
|
+
layout: page
|
3
|
+
---
|
4
|
+
|
5
|
+
<!-- Html Elements for Search -->
|
6
|
+
<input type="text" id="search-input" placeholder="Enter keywords..." class="search-bar">
|
7
|
+
<br>
|
8
|
+
<br>
|
9
|
+
<ul id="results-container" ></ul>
|
10
|
+
|
11
|
+
<section>
|
12
|
+
<!-- Script pointing to jekyll-search.js -->
|
13
|
+
<script src="{{ site.baseurl }}/assets/js/jekyll-search.min.js" type="text/javascript"></script>
|
14
|
+
|
15
|
+
<script type="text/javascript">
|
16
|
+
SimpleJekyllSearch({
|
17
|
+
searchInput: document.getElementById('search-input'),
|
18
|
+
resultsContainer: document.getElementById('results-container'),
|
19
|
+
json: [
|
20
|
+
{% if site.theme_settings.search %}
|
21
|
+
{% for post in site.posts %}
|
22
|
+
{
|
23
|
+
"title" : "{{ post.title | escape }}",
|
24
|
+
"category" : "{{ post.content | strip_html | strip_newlines | truncatewords: 25 }}",
|
25
|
+
"tags" : "{{ post.tags | join: ', ' | prepend: " " }}",
|
26
|
+
"url" : "{{ site.baseurl }}{{ post.url }}",
|
27
|
+
"date" : "{{ post.date | date: "%B %-d, %Y" }}",
|
28
|
+
"content" : "{{ post.content | strip_html | strip_newlines }}"
|
29
|
+
} {% unless forloop.last %},{% endunless %}
|
30
|
+
{% endfor %},
|
31
|
+
{% for page in site.portfolio %}
|
32
|
+
{
|
33
|
+
{% if page.title != nil %}
|
34
|
+
"title" : "{{ page.title | escape }}",
|
35
|
+
"category" : "{{ page.content | strip_html | strip_newlines | truncatewords: 25 }}",
|
36
|
+
"tags" : "{{ page.tags | join: ', ' | prepend: " " }}",
|
37
|
+
"url" : "{{ site.baseurl }}{{ page.url }}",
|
38
|
+
"date" : "{{ page.date | date: "%B %-d, %Y" }}",
|
39
|
+
"content" : "{{ page.content | strip_html | strip_newlines }}"
|
40
|
+
{% endif %}
|
41
|
+
} {% unless forloop.last %},{% endunless %}
|
42
|
+
{% endfor %}
|
43
|
+
{% endif %}
|
44
|
+
],
|
45
|
+
searchResultTemplate: '<div class="search-title"><a href="{url}"><h3> {title}</h3></a><div class="meta">{date} <div class="right"><i class="fa fa-tag"></i> {tags}</div></div><p>{category}</p></div><hr> ',
|
46
|
+
noResultsText: 'No results found',
|
47
|
+
limit: 10,
|
48
|
+
fuzzy: true,
|
49
|
+
exclude: []
|
50
|
+
})
|
51
|
+
</script>
|
52
|
+
</section>
|
data/_layouts/tags.html
ADDED
@@ -0,0 +1,94 @@
|
|
1
|
+
---
|
2
|
+
layout: page
|
3
|
+
---
|
4
|
+
|
5
|
+
<div class="home">
|
6
|
+
|
7
|
+
<!-- cycles through posts to get tags -->
|
8
|
+
{% assign rawtags = "" %}
|
9
|
+
{% for post in site.posts %}
|
10
|
+
{% assign post_tags = post.tags | join:'|' | append:'|' %}
|
11
|
+
{% assign rawtags = rawtags | append:post_tags %}
|
12
|
+
{% endfor %}
|
13
|
+
|
14
|
+
<!-- cycles through portfolio collection to get tags -->
|
15
|
+
{% assign portfolio = site.portfolio | map: 'tags' | join: ',' | split: ',' | uniq %}
|
16
|
+
{% for tag in portfolio %}
|
17
|
+
{% assign portfolio_tags = tag | join:'|' | append:'|' %}
|
18
|
+
{% assign rawtags = rawtags | append:portfolio_tags %}
|
19
|
+
{% endfor %}
|
20
|
+
|
21
|
+
<!-- cycles through pages to get tags -->
|
22
|
+
{% for page in site.pages %}
|
23
|
+
{% assign page_tags = page.tags | join:'|' %}
|
24
|
+
{% assign rawtags = rawtags | append:page_tags %}
|
25
|
+
{% endfor %}
|
26
|
+
|
27
|
+
<!-- Displays the list of tags-->
|
28
|
+
{% include tags_list.html tags=rawtags %}
|
29
|
+
|
30
|
+
<!-- Displays the posts and pages that contains the tag-->
|
31
|
+
<div class="posts">
|
32
|
+
{% for tag in tags %}
|
33
|
+
<h3 id="{{ tag | cgi_escape }}" class="tag-anchor">
|
34
|
+
<a href="#{{ tag | cgi_escape }}"><i class="fa fa-tag fa-fw"></i> {{ tag }}</a>
|
35
|
+
<a href="#{{ page.title }}" style="float: right"><i class="fa fa-chevron-up" aria-hidden="true"> </i> </a>
|
36
|
+
|
37
|
+
</h3>
|
38
|
+
|
39
|
+
<!-- Posts and collection for each tags -->
|
40
|
+
<div class="tag-posts">
|
41
|
+
|
42
|
+
<!-- Pages -->
|
43
|
+
{% for page in site.pages %}
|
44
|
+
{% if page.tags contains tag %}
|
45
|
+
<h5 class="tag-title">
|
46
|
+
<a href="{{ page.url | prepend: site.baseurl }}">
|
47
|
+
<i class="fa fa-file-image-o" aria-hidden="true"></i>
|
48
|
+
{{ page.title }}
|
49
|
+
</a>
|
50
|
+
|
51
|
+
<div class="meta">
|
52
|
+
{{ "today" | date: "%B %-d, %Y" }}
|
53
|
+
</div>
|
54
|
+
</h5>
|
55
|
+
{% endif %}
|
56
|
+
{% endfor %}
|
57
|
+
|
58
|
+
<!-- Posts -->
|
59
|
+
{% for post in site.posts %}
|
60
|
+
{% if post.tags contains tag %}
|
61
|
+
<h5 class="tag-title">
|
62
|
+
<a href="{{ post.url | prepend: site.baseurl }}">
|
63
|
+
<i class="fa fa-file-text-o" aria-hidden="true"></i>
|
64
|
+
{{ post.title }}
|
65
|
+
</a>
|
66
|
+
|
67
|
+
<div class="meta">
|
68
|
+
{{ post.date | date: "%B %-d, %Y" }}
|
69
|
+
</div>
|
70
|
+
</h5>
|
71
|
+
{% endif %}
|
72
|
+
{% endfor %}
|
73
|
+
|
74
|
+
<!-- Portfolio -->
|
75
|
+
{% for note in site.portfolio %}
|
76
|
+
{% if note.tags contains tag %}
|
77
|
+
<h5 class="tag-title">
|
78
|
+
<a href="{{ site.baseurl }}{{ note.url }}">
|
79
|
+
<i class="fa fa-file-o" aria-hidden="true"></i>
|
80
|
+
{{ note.title }}
|
81
|
+
</a>
|
82
|
+
|
83
|
+
<div class="meta">
|
84
|
+
{{ note.date | date: "%B %-d, %Y" }}
|
85
|
+
</div>
|
86
|
+
</h5>
|
87
|
+
{% endif %}
|
88
|
+
{% endfor %}
|
89
|
+
|
90
|
+
</div>
|
91
|
+
{% endfor %}
|
92
|
+
|
93
|
+
</div>
|
94
|
+
</div>
|
@@ -0,0 +1,147 @@
|
|
1
|
+
* {
|
2
|
+
margin: 0;
|
3
|
+
padding: 0;
|
4
|
+
box-sizing: border-box;
|
5
|
+
}
|
6
|
+
figure {
|
7
|
+
margin: 0;
|
8
|
+
}
|
9
|
+
// For correct line number width in Github Gists
|
10
|
+
.gist table tbody tr td {
|
11
|
+
box-sizing: content-box;
|
12
|
+
}
|
13
|
+
html {
|
14
|
+
background: $background-color;
|
15
|
+
}
|
16
|
+
|
17
|
+
// Typography
|
18
|
+
::selection {
|
19
|
+
background: $selection-color;
|
20
|
+
}
|
21
|
+
::-moz-selection {
|
22
|
+
background: $selection-color;
|
23
|
+
}
|
24
|
+
body {
|
25
|
+
color: $text-color;
|
26
|
+
font-family: $font-family-main;
|
27
|
+
font-size: $font-size;
|
28
|
+
word-wrap: break-word;
|
29
|
+
}
|
30
|
+
h1, h2, h3, h4, h5, h6 {
|
31
|
+
font-family: $font-family-headings;
|
32
|
+
line-height: 1.3;
|
33
|
+
margin: 0.67em 0;
|
34
|
+
a {
|
35
|
+
color: $text-color;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
h1 {
|
39
|
+
font-size: 2.5em;
|
40
|
+
}
|
41
|
+
h2 {
|
42
|
+
font-size: 2em;
|
43
|
+
}
|
44
|
+
h3 {
|
45
|
+
font-size: 1.5em;
|
46
|
+
}
|
47
|
+
h4 {
|
48
|
+
font-size: 1.15em;
|
49
|
+
}
|
50
|
+
blockquote {
|
51
|
+
border-left: 2px solid darken($blockquote-color, 20%);
|
52
|
+
margin: 1em 1em;
|
53
|
+
padding: 0.75em 1em;
|
54
|
+
background-color: $blockquote-color;
|
55
|
+
box-shadow: 0 2px 2px $border-color;
|
56
|
+
}
|
57
|
+
blockquote p:last-child,
|
58
|
+
footer p:last-child {
|
59
|
+
margin-bottom: 0;
|
60
|
+
}
|
61
|
+
table {
|
62
|
+
table-layout:fixed;
|
63
|
+
width:100%;
|
64
|
+
word-wrap:break-word;
|
65
|
+
@media (max-width: 1100px) {
|
66
|
+
overflow-x: scroll;
|
67
|
+
display: inline-block;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
td,
|
71
|
+
th {
|
72
|
+
padding: 0.5em 1em;
|
73
|
+
border: 1px solid $border-color;
|
74
|
+
text-align: left;
|
75
|
+
}
|
76
|
+
table,
|
77
|
+
dl,
|
78
|
+
code,
|
79
|
+
kbd,
|
80
|
+
pre,
|
81
|
+
samp {
|
82
|
+
margin: 1em 0;
|
83
|
+
}
|
84
|
+
dt {
|
85
|
+
font-weight: bold;
|
86
|
+
}
|
87
|
+
dd {
|
88
|
+
margin-left: 2em;
|
89
|
+
}
|
90
|
+
p, ol, ul, dl, .math-display {
|
91
|
+
line-height: 1.5;
|
92
|
+
margin-bottom: 1em;
|
93
|
+
}
|
94
|
+
// KaTeX math display
|
95
|
+
.math-display {
|
96
|
+
display: inline-block;
|
97
|
+
width: 100%;
|
98
|
+
}
|
99
|
+
// Lists within lists
|
100
|
+
li > ul, li > ol {
|
101
|
+
margin-bottom: 0;
|
102
|
+
margin-left: 1em;
|
103
|
+
}
|
104
|
+
ol, ul {
|
105
|
+
list-style-position: inside;
|
106
|
+
}
|
107
|
+
hr {
|
108
|
+
border: 0;
|
109
|
+
border-top: 1px solid $border-color;
|
110
|
+
border-bottom: 1px solid #fff;
|
111
|
+
margin: 1em 0;
|
112
|
+
}
|
113
|
+
a {
|
114
|
+
color: $link-color;
|
115
|
+
text-decoration: none;
|
116
|
+
}
|
117
|
+
|
118
|
+
/* ---- Responsive ---- */
|
119
|
+
|
120
|
+
iframe, img, embed, object, video {
|
121
|
+
max-width: 100%;
|
122
|
+
padding: 0 10%;
|
123
|
+
}
|
124
|
+
img[align=left] {
|
125
|
+
margin-right: 3%;
|
126
|
+
}
|
127
|
+
img[align=right] {
|
128
|
+
margin-left: 3%;
|
129
|
+
}
|
130
|
+
|
131
|
+
@media screen and (max-width: $sm-break) {
|
132
|
+
h1 {
|
133
|
+
font-size: 2em;
|
134
|
+
}
|
135
|
+
h2 {
|
136
|
+
font-size: 1.5em;
|
137
|
+
}
|
138
|
+
h3 {
|
139
|
+
font-size: 1em;
|
140
|
+
}
|
141
|
+
h4 {
|
142
|
+
font-size: 0.75em;
|
143
|
+
}
|
144
|
+
p, li {
|
145
|
+
font-size: 0.75em;
|
146
|
+
}
|
147
|
+
}
|