type-on-strap 0.6.3 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 18220ff2bed115de2551c0c321e20eb7f00ced8b
4
- data.tar.gz: 5fa58a662a070f5e6fa29557a8bd96e4288c98b0
3
+ metadata.gz: 6a9692d82ebd698111c199c686d23edeeaf64530
4
+ data.tar.gz: 706429b6444e3c9312fa4ba3fba17fd61cd1a29c
5
5
  SHA512:
6
- metadata.gz: c7d1318ac7cbc99abac531afe29bd37b72356417b3635f559bf51f97e96010eaef1819231b3edf8b4061475a2b5b277f79dd6bc5409dbd2d09a40bae8873971a
7
- data.tar.gz: b6564989ef79bdac3295e4c437f6c28927c485efa0bec9dfeffb6d2e2d3ae71dfa3e562a4cf7280ca9055014765d2258fc3369ac5a4645900ad62a4d92a2a2e5
6
+ metadata.gz: 58a1dd5eb49983e001770284626da5f6f3253a8da6c10e7de78371215d875bb7f5380eef84801fd765d26640f9ea9e99788f72eb3f2deb4b510b57279bcf064c
7
+ data.tar.gz: fe83d3f3fa0da9014be6eba6b0af06da1403bfd171edf45214bd1cdd93f8413516f6bbcc1ac5c7a2a3bede6cbc17f30cb60d9d62bbf299587b48bc5397cfac00
data/_includes/blog.html CHANGED
@@ -3,13 +3,13 @@
3
3
  <div class="post-teaser">
4
4
  {% if post.thumbnail %}
5
5
  <div class="post-img">
6
- <img alt="{{ post.title }}" src="{{ site.baseurl }}/{{ post.thumbnail }}">
6
+ <img alt="{{ post.title }}" src="{{ post.thumbnail | relative_url }}">
7
7
  </div>
8
8
  {% endif %}
9
9
  <span>
10
10
  <header>
11
11
  <h1>
12
- <a alt="{{ post.title }}" class="post-link" href="{{ post.url | prepend: site.baseurl }}">
12
+ <a alt="{{ post.title }}" class="post-link" href="{{ post.url | relative_url }}">
13
13
  {{ post.title }}
14
14
  </a>
15
15
  </h1>
@@ -26,17 +26,46 @@
26
26
  </div>
27
27
 
28
28
  {% if paginator.total_pages > 1 %}
29
- <div class="pagination">
29
+ <div class="pagination" style="display: inline-block;">
30
+ <div style="position: absolute; left: 35%;">
30
31
  {% if paginator.previous_page %}
31
- <a alt="{{ site.theme_settings.str_previous_page }}"
32
- href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="button">
33
- <i class="fa fa-chevron-left"></i>
34
- {{ site.theme_settings.str_previous_page }}
35
- </a> {% endif %} {% if paginator.next_page %}
36
- <a alt="{{ site.theme_settings.str_next_page }}"
37
- href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="button">
38
- {{ site.theme_settings.str_next_page }}
39
- <i class="fa fa-chevron-right"></i>
40
- </a> {% endif %}
32
+ <!-- << -->
33
+ {% if paginator.previous_page != 1 %}
34
+ <a alt="{{ site.theme_settings.str_previous_page }}"
35
+ href="{{ '/' | relative_url }}" style="margin-right:0" class="button">
36
+ <i class="fa fa-angle-double-left"></i>
37
+ </a>
38
+ {% endif %}
39
+ <!-- < previous -->
40
+ <a href="{{ paginator.previous_page_path | relative_url }}" {% if paginator.previous_page != 1 %}style="margin-left:0"{% endif %} class="button">
41
+ <i class="fa fa-chevron-left"></i>
42
+ {{ site.theme_settings.str_previous_page }}
43
+ </a>
44
+ {% endif %}
45
+ </div>
46
+
47
+ <!-- Centering not working well on all format
48
+ <div style="position: absolute; left: 50%;">
49
+ <div style="position: relative; left: -50%;">
50
+ {{ paginator.page }} / {{ paginator.total_pages }}
51
+ </div>
52
+ </div> -->
53
+
54
+ <div style="position: absolute; right: 35%;">
55
+ {% if paginator.next_page %}
56
+ <!-- next > -->
57
+ <a alt="{{ site.theme_settings.str_next_page }}"
58
+ href="{{ paginator.next_page_path | relative_url }}" {% if paginator.next_page != paginator.total_pages %}style="margin-right:0"{% endif %} class="button">
59
+ {{ site.theme_settings.str_next_page }}
60
+ <i class="fa fa-chevron-right"></i>
61
+ </a>
62
+ <!-- >> -->
63
+ {% if paginator.next_page != paginator.total_pages %}
64
+ <a href="{{ site.paginate_path | relative_url | replace: ':num', paginator.total_pages }}" style="margin-left:0" class="button">
65
+ <i class="fa fa-angle-double-right"></i>
66
+ </a>
67
+ {% endif %}
68
+ {% endif %}
69
+ </div>
41
70
  </div>
42
71
  {% endif %}
@@ -13,12 +13,12 @@ html { overflow-y: scroll; }
13
13
  {% for image in site.static_files %}
14
14
  {% if image.path contains include.gallery_path %}
15
15
 
16
- <img src="{{ image.path | prepend: site.baseurl }}" alt="" class="grid-item" style="padding: 0;">
16
+ <img src="{{ image.path | relative_url }}" alt="" class="grid-item" style="padding: 0;">
17
17
 
18
18
  {% endif %}
19
19
  {% endfor %}
20
20
  </div>
21
21
 
22
22
  <!-- Require JQuery >= 3.2.1 Requireas well -->
23
- <script src="{{ site.baseurl }}/assets/js/vendor/masonry.pkgd.min.js" type="text/javascript"></script>
24
- <script src="{{ site.baseurl }}/assets/js/vendor/imagesloaded.min.js" type="text/javascript"></script>
23
+ <script src="{{ "/assets/js/vendor/masonry.pkgd.min.js" | relative_url }}" type="text/javascript"></script>
24
+ <script src="{{ "/assets/js/vendor/imagesloaded.min.js" | relative_url }}" type="text/javascript"></script>
data/_includes/head.html CHANGED
@@ -3,34 +3,34 @@
3
3
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
4
4
 
5
5
  <!-- Main JS (navbar.js, katex_init.js and masonry_init.js)-->
6
- <script defer=true src="{{ site.baseurl }}/assets/js/main.min.js"></script>
6
+ <script defer=true src="{{ '/assets/js/main.min.js' | relative_url }}"></script>
7
7
 
8
8
  <!-- CSS -->
9
- <link rel="stylesheet" href="{{ site.baseurl }}/assets/css/main.css">
9
+ <link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
10
10
 
11
11
  <!--Favicon-->
12
- <link rel="shortcut icon" href="{{ site.baseurl }}/{{ site.theme_settings.favicon }}" type="image/x-icon">
12
+ <link rel="shortcut icon" href="{{ site.theme_settings.favicon | relative_url }}" type="image/x-icon">
13
13
 
14
14
  <!-- Canonical -->
15
- <link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
15
+ <link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
16
16
 
17
17
  <!-- RSS -->
18
- <link rel="alternate" type="application/atom+xml" title="{{ site.theme_settings.title }}" href="{{ site.url }}/{{ site.baseurl }}//feed.xml"/>
18
+ <link rel="alternate" type="application/atom+xml" title="{{ site.theme_settings.title }}" href="{{ 'feed.xml' | absolute_url }}"/>
19
19
 
20
20
  <!-- Font Awesome -->
21
21
  <!-- <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"> -->
22
- <link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/assets/css/vendor/font-awesome.min.css">
22
+ <link rel="stylesheet" type="text/css" href="{{ '/assets/css/vendor/font-awesome.min.css' | relative_url }}">
23
23
 
24
24
  {% if page.bootstrap %}
25
25
  <!-- Bootstrap-4.1.3 isolation CSS -->
26
- <link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/assets/css/vendor/bootstrap-iso.min.css">
26
+ <link rel="stylesheet" type="text/css" href="{{ '/assets/css/vendor/bootstrap-iso.min.css' | relative_url }}">
27
27
 
28
28
  <!-- JQuery 3.3.1 -->
29
29
  <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
30
- <!-- Popper, a dependency of Bootstrap-->
31
- <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
32
30
  <!-- Bootstrap 4.1.3 compiled and minified JavaScript -->
33
31
  <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
32
+ <!-- Popper, a dependency of Bootstrap-->
33
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
34
34
  {% endif %}
35
35
 
36
36
  <!-- Google Fonts -->
@@ -40,8 +40,8 @@
40
40
 
41
41
  <!-- KaTeX 0.8.3 -->
42
42
  {% if site.theme_settings.katex %}
43
- <link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/assets/css/vendor/katex.min.css">
44
- <script src="{{ site.baseurl }}/assets/js/vendor/katex.min.js">
43
+ <link rel="stylesheet" type="text/css" href="{{ '/assets/css/vendor/katex.min.css' | relative_url }}">
44
+ <script src="{{ '/assets/js/vendor/katex.min.js' | relative_url }}">
45
45
  </script>
46
46
  {% endif %}
47
47
 
data/_includes/icons.html CHANGED
@@ -1,6 +1,6 @@
1
1
  {% if site.theme_settings.rss %}
2
2
  <li>
3
- <a href="{{ site.url }}{{ site.baseurl }}/feed.xml" title="{{ site.theme_settings.str_rss_follow }}">
3
+ <a href="{{ "feed.xml" | absolute_url }}" title="{{ site.theme_settings.str_rss_follow }}">
4
4
  <span class="fa-stack fa-lg">
5
5
  <i class="fa fa-circle fa-stack-2x"></i>
6
6
  <i class="fa fa-rss fa-stack-1x fa-inverse"></i>
@@ -2,13 +2,14 @@
2
2
 
3
3
  <!-- Logo and title -->
4
4
  <div class="branding">
5
- <a alt="logo" href="{{ site.baseurl }}/">
6
- <img alt="logo img" class="avatar" src="{{ site.baseurl }}/{{ site.theme_settings.avatar }}"/>
5
+ <a href="{{ '/' | relative_url }}">
6
+ <img alt="logo img" class="avatar" src="{{ site.theme_settings.avatar | relative_url }}" alt=""/>
7
7
  </a>
8
8
 
9
9
  <h1 class="site-title">
10
- <a alt="{{ site.theme_settings.title }}" href="{{ site.baseurl }}/">
11
- {{ site.theme_settings.title }}</a>
10
+ <a alt="{{ site.theme_settings.title }}" href="{{ '/' | relative_url }}">
11
+ {{ site.theme_settings.title }}
12
+ </a>
12
13
  </h1>
13
14
  </div>
14
15
 
@@ -44,10 +45,9 @@
44
45
  {% if item[1].enabled %}
45
46
  <li class="separator"> | </li>
46
47
  <li>
47
- <a class="clear" id="{{ item[0] }}" name="{{ item[0] }}"
48
- href="{{ site.url }}{{ site.baseurl }}/{{ item[0] }}">
49
- <i class="fa fa-{{ item[1].icon }}" aria-hidden="true"></i>
50
- </a>
48
+ <a class="clear" href="{{ item[0] | relative_url }}" name="{{ item[0] }}">
49
+ <i class="fa fa-{{ item[1].icon }}" aria-hidden="true"></i>
50
+ </a>
51
51
  </li>
52
52
  {% endif %}
53
53
  {% endfor %}
@@ -3,13 +3,13 @@
3
3
  <div class="portfolio-grid">
4
4
  {% for item in site.portfolio %}
5
5
  <div class="portfolio-cell">
6
- <a href="{{ site.baseurl }}{{ item.url }}" class="portfolio-link" data-keyboard="true">
6
+ <a href="{{ item.url | relative_url }}" class="portfolio-link" data-keyboard="true">
7
7
  <div class="caption" title="{{ item.title }}">
8
8
  <div class="caption-content">
9
9
  <i class="fa fa-search-plus fa-3x"></i>
10
10
  </div>
11
11
  </div>
12
- <img src="{{ site.baseurl }}/{{ item.img }}" class="" alt="">
12
+ <img src="{{ item.img | relative_url }}" class="" alt="">
13
13
  </a>
14
14
  </div>
15
15
  {% endfor %}
@@ -2,7 +2,7 @@
2
2
  {% if page.previous.url %}
3
3
  <div id="previous-post" class="post-nav-post">
4
4
  <p>{{ site.theme_settings.str_previous_post }}</p>
5
- <a alt="{{ page.previous.title }}" href="{{ site.baseurl }}{{ page.previous.url }}">
5
+ <a alt="{{ page.previous.title }}" href="{{ page.previous.url | relative_url }}">
6
6
  {{ page.previous.title }}
7
7
  </a>
8
8
  </div>
@@ -10,9 +10,9 @@
10
10
  {% if page.next.url %}
11
11
  <div id="next-post" class="post-nav-post">
12
12
  <p>{{ site.theme_settings.str_next_post }}</p>
13
- <a alt="{{ page.next.title }}" href="{{ site.baseurl }}{{ page.next.url }}">
13
+ <a alt="{{ page.next.title }}" href="{{ page.next.url | relative_url }}">
14
14
  {{ page.next.title }}
15
15
  </a>
16
16
  </div>
17
17
  {% endif %}
18
- </div>
18
+ </div>
@@ -3,70 +3,70 @@
3
3
  <div class="meta">Share</div>
4
4
  {% if site.theme_settings.share_buttons.facebook %}
5
5
  <li>
6
- <a href="https://www.facebook.com/sharer/sharer.php?u={{ page.url | prepend: site.baseurl | prepend: site.url }}" target="_blank" title="{{ site.theme_settings.str_share_on }} Facebook">
6
+ <a href="https://www.facebook.com/sharer/sharer.php?u={{ page.url | absolute_url }}" target="_blank" title="{{ site.theme_settings.str_share_on }} Facebook">
7
7
  <i class="fa fa-facebook-square fa-2x" aria-hidden="true"></i>
8
8
  <span class="sr-only">{{ site.theme_settings.str_share_on }} Facebook</span>
9
9
  </a>
10
10
  </li>
11
11
  {% endif %} {% if site.theme_settings.share_buttons.twitter %}
12
12
  <li>
13
- <a href="https://twitter.com/intent/tweet?source={{ page.url | prepend: site.baseurl | prepend: site.url }}&text={{ page.title | url_encode }}%20%7C%20{{ site.title | url_encode }}:%20{{ page.url | prepend: site.baseurl | prepend: site.url }}" target="_blank" title="{{ site.theme_settings.str_tweet }}">
13
+ <a href="https://twitter.com/intent/tweet?source={{ page.url | absolute_url }}&text={{ page.title | url_encode }}%20%7C%20{{ site.title | url_encode }}:%20{{ page.url | absolute_url }}" target="_blank" title="{{ site.theme_settings.str_tweet }}">
14
14
  <i class="fa fa-twitter-square fa-2x" aria-hidden="true"></i>
15
15
  <span class="sr-only">{{ site.theme_settings.str_tweet }}</span>
16
16
  </a>
17
17
  </li>
18
18
  {% endif %} {% if site.theme_settings.share_buttons.google_plus %}
19
19
  <li>
20
- <a href="https://plus.google.com/share?url={{ page.url | prepend: site.baseurl | prepend: site.url }}" target="_blank" title="{{ site.theme_settings.str_share_on }} Google+">
20
+ <a href="https://plus.google.com/share?url={{ page.url | absolute_url }}" target="_blank" title="{{ site.theme_settings.str_share_on }} Google+">
21
21
  <i class="fa fa-google-plus-square fa-2x" aria-hidden="true"></i>
22
22
  <span class="sr-only">{{ site.theme_settings.str_share_on }} Google+</span>
23
23
  </a>
24
24
  </li>
25
25
  {% endif %} {% if site.theme_settings.share_buttons.tumblr %}
26
26
  <li>
27
- <a href="http://www.tumblr.com/share?v=3&u={{ page.url | prepend: site.baseurl | prepend: site.url }}&quote={{ page.title | url_encode }}%20%7C%20{{ site.title | url_encode }}&s=" target="_blank" title="{{ site.theme_settings.str_share_on }} Tumblr">
27
+ <a href="http://www.tumblr.com/share?v=3&u={{ page.url | absolute_url }}&quote={{ page.title | url_encode }}%20%7C%20{{ site.title | url_encode }}&s=" target="_blank" title="{{ site.theme_settings.str_share_on }} Tumblr">
28
28
  <i class="fa fa-tumblr-square fa-2x" aria-hidden="true"></i>
29
29
  <span class="sr-only">{{ site.theme_settings.str_share_on }} Tumblr</span>
30
30
  </a>
31
31
  </li>
32
32
  {% endif %} {% if site.theme_settings.share_buttons.pinterest %}
33
33
  <li>
34
- <a href="http://pinterest.com/pin/create/button/?url={{ page.url | prepend: site.baseurl | prepend: site.url }}&description=" target="_blank" title="{{ site.theme_settings.str_pin_it }}">
34
+ <a href="http://pinterest.com/pin/create/button/?url={{ page.url | absolute_url }}&description=" target="_blank" title="{{ site.theme_settings.str_pin_it }}">
35
35
  <i class="fa fa-pinterest-square fa-2x" aria-hidden="true"></i>
36
36
  <span class="sr-only">{{ site.theme_settings.str_pin_it }}</span>
37
37
  </a>
38
38
  </li>
39
39
  {% endif %} {% if site.theme_settings.share_buttons.pocket %}
40
40
  <li>
41
- <a href="https://getpocket.com/save?url={{ page.url | prepend: site.baseurl | prepend: site.url }}&title={{ page.title | url_encode }}%20%7C%20{{ site.title | url_encode }}" target="_blank" title="{{ site.theme_settings.str_add_to }} Pocket">
41
+ <a href="https://getpocket.com/save?url={{ page.url | absolute_url }}&title={{ page.title | url_encode }}%20%7C%20{{ site.title | url_encode }}" target="_blank" title="{{ site.theme_settings.str_add_to }} Pocket">
42
42
  <i class="fa fa fa-get-pocket fa-2x" aria-hidden="true"></i>
43
43
  <span class="sr-only">{{ site.theme_settings.str_add_to }} Pocket</span>
44
44
  </a>
45
45
  </li>
46
46
  {% endif %} {% if site.theme_settings.share_buttons.reddit %}
47
47
  <li>
48
- <a href="http://www.reddit.com/submit?url={{ page.url | prepend: site.baseurl | prepend: site.url }}&title={{ page.title | url_encode }}%20%7C%20{{ site.title | url_encode }}" target="_blank" title="{{ site.theme_settings.str_share_on }} Reddit">
48
+ <a href="http://www.reddit.com/submit?url={{ page.url | absolute_url }}&title={{ page.title | url_encode }}%20%7C%20{{ site.title | url_encode }}" target="_blank" title="{{ site.theme_settings.str_share_on }} Reddit">
49
49
  <i class="fa fa-reddit-square fa-2x" aria-hidden="true"></i>
50
50
  <span class="sr-only">{{ site.theme_settings.str_share_on }} Reddit</span>
51
51
  </a>
52
52
  </li>
53
53
  {% endif %} {% if site.theme_settings.share_buttons.linkedin %}
54
54
  <li>
55
- <a href="http://www.linkedin.com/shareArticle?mini=true&url={{ page.url | prepend: site.baseurl | prepend: site.url }}&title={{ page.title | url_encode }}%20%7C%20{{ site.title | url_encode }}&summary=&source={{ page.url | prepend: site.baseurl | prepend: site.url }}" target="_blank" title="{{ site.theme_settings.str_share_on }} LinkedIn">
55
+ <a href="http://www.linkedin.com/shareArticle?mini=true&url={{ page.url | absolute_url }}&title={{ page.title | url_encode }}%20%7C%20{{ site.title | url_encode }}&summary=&source={{ page.url | absolute_url }}" target="_blank" title="{{ site.theme_settings.str_share_on }} LinkedIn">
56
56
  <i class="fa fa-linkedin fa-2x" aria-hidden="true"></i>
57
57
  <span class="sr-only">{{ site.theme_settings.str_share_on }} LinkedIn</span>
58
58
  </a>
59
59
  </li>
60
60
  {% endif %} {% if site.theme_settings.share_buttons.wordpress %}
61
61
  <li>
62
- <a href="http://wordpress.com/press-this.php?u={{ page.url | prepend: site.baseurl | prepend: site.url }}&quote={{ page.title | url_encode }}%20%7C%20{{ site.title | url_encode }}&s=" target="_blank" title="{{ site.theme_settings.str_share_on }} WordPress">
62
+ <a href="http://wordpress.com/press-this.php?u={{ page.url | absolute_url }}&quote={{ page.title | url_encode }}%20%7C%20{{ site.title | url_encode }}&s=" target="_blank" title="{{ site.theme_settings.str_share_on }} WordPress">
63
63
  <i class="fa fa-wordpress fa-2x" aria-hidden="true"></i>
64
64
  <span class="sr-only">{{ site.theme_settings.str_share_on }} WordPress</span>
65
65
  </a>
66
66
  </li>
67
67
  {% endif %} {% if site.theme_settings.share_buttons.email %}
68
68
  <li>
69
- <a href="mailto:?subject={{ page.title | url_encode }}%20%7C%20{{ site.title | url_encode }}&body=:%20{{ page.url | prepend: site.baseurl | prepend: site.url }}" target="_blank" title="{{ site.theme_settings.str_email }}">
69
+ <a href="mailto:?subject={{ page.title | url_encode }}%20%7C%20{{ site.title | url_encode }}&body=:%20{{ page.url | absolute_url }}" target="_blank" title="{{ site.theme_settings.str_email }}">
70
70
  <i class="fa fa-envelope-square fa-2x" aria-hidden="true"></i>
71
71
  <span class="sr-only">{{ site.theme_settings.str_email }}</span>
72
72
  </a>
@@ -10,7 +10,7 @@
10
10
  {% endif %}
11
11
 
12
12
  {% for tag in tags %}
13
- <a class="button" href="{{site.baseurl}}/tags#{{ tag | cgi_escape }}">
13
+ <a class="button" href="{{ "/tags" | relative_url }}#{{ tag | cgi_escape }}">
14
14
  <p><i class="fa fa-tag fa-fw"></i> {{ tag }}</p>
15
15
  </a>
16
16
  {% endfor %}
data/_layouts/custom.html CHANGED
@@ -2,7 +2,7 @@
2
2
  layout: default
3
3
  ---
4
4
  <article {% if page.feature-img %}class="feature-image"{% endif %} style="padding:0;">
5
- <header id="main" style="background-image: url('{{ site.baseurl }}/{{ page.feature-img }}')">
5
+ <header id="main" style="background-image: url('{{ page.feature-img | relative_url }}')">
6
6
  <h1 id="{{ page.title | cgi_escape }}" class="title">{{ page.title }}</h1>
7
7
  <p class="meta">
8
8
  {{ page.date | date: "%B %-d, %Y" }}
data/_layouts/feed.xml CHANGED
@@ -2,15 +2,15 @@
2
2
  <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
3
3
  <channel>
4
4
  <title>{{ site.theme_settings.title | xml_escape }}</title>
5
- <atom:link href="{{ "/feed.xml" | relative_url }}" rel="self" type="application/rss+xml"/>
6
- <link>{{ site.url }}{{ site.baseurl }}/</link>
5
+ <atom:link href="{{ "/feed.xml" | absolute_url }}" rel="self" type="application/rss+xml"/>
6
+ <link>{{ "/" | absolute_url }}</link>
7
7
  <description>{{ site.theme_settings.description | xml_escape }}</description>
8
8
  <pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
9
9
  {% for post in site.posts limit:15 %}
10
10
  <item>
11
11
  <title>{{ post.title | xml_escape }}</title>
12
- <link>{{ post.url | relative_url }}</link>
13
- <guid isPermaLink="true">{{ post.url | relative_url }}</guid>
12
+ <link>{{ post.url | absolute_url }}</link>
13
+ <guid isPermaLink="false">{{ post.url | relative_url }}</guid>
14
14
  <description>{{ post.content | xml_escape }}</description>
15
15
  <pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
16
16
  </item>
data/_layouts/home.html CHANGED
@@ -4,9 +4,9 @@ layout: default
4
4
 
5
5
  <div class="home">
6
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_feature_image }}')">
9
- {{ site.theme_settings.header_text }}
7
+ <div id="main" class="call-out"
8
+ style="background-image: url('{{ site.theme_settings.header_feature_image | relative_url }}')">
9
+ <h1> {{ site.theme_settings.header_text }} </h1>
10
10
  </div>
11
11
  {% endif %}
12
12
 
data/_layouts/page.html CHANGED
@@ -3,7 +3,7 @@ layout: default
3
3
  ---
4
4
 
5
5
  <article {% if page.feature-img %}class="feature-image"{% endif %}>
6
- <header id="main" style="background-image: url('{{ site.baseurl }}/{{ page.feature-img }}')">
6
+ <header id="main" style="background-image: url('{{ page.feature-img | relative_url }}')">
7
7
  <h1 id="{{ page.title | default: "" | cgi_escape }}" class="title">
8
8
  {{ page.title }}
9
9
  </h1>
data/_layouts/search.html CHANGED
@@ -10,13 +10,13 @@ layout: page
10
10
 
11
11
  <section>
12
12
  <!-- Script pointing to jekyll-search.js -->
13
- <script src="{{ site.baseurl }}/assets/js/vendor/simple-jekyll-search.min.js" type="text/javascript"></script>
13
+ <script src="{{ "/assets/js/vendor/simple-jekyll-search.min.js" | relative_url }}" type="text/javascript"></script>
14
14
 
15
15
  <script type="text/javascript">
16
16
  SimpleJekyllSearch({
17
17
  searchInput: document.getElementById('search-input'),
18
18
  resultsContainer: document.getElementById('results-container'),
19
- json: '{{ site.baseurl }}/assets/data/search.json',
19
+ json: '{{ "/assets/data/search.json" | relative_url }}',
20
20
  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>{excerpt}</p></div><hr> ',
21
21
  noResultsText: 'No results found',
22
22
  limit: 10,
data/_layouts/tags.html CHANGED
@@ -47,7 +47,7 @@ layout: page
47
47
  {% for page in site.pages %}
48
48
  {% if page.tags contains tag %}
49
49
  <h5 class="tag-title">
50
- <a href="{{ page.url | prepend: site.baseurl }}">
50
+ <a href="{{ page.url | relative_url }}">
51
51
  <i class="fa fa-file-image-o" aria-hidden="true"></i>
52
52
  {{ page.title }}
53
53
  </a>
@@ -63,7 +63,7 @@ layout: page
63
63
  {% for post in site.posts %}
64
64
  {% if post.tags contains tag %}
65
65
  <h5 class="tag-title">
66
- <a href="{{ post.url | prepend: site.baseurl }}">
66
+ <a href="{{ post.url | relative_url }}">
67
67
  <i class="fa fa-file-text-o" aria-hidden="true"></i>
68
68
  {{ post.title }}
69
69
  </a>
@@ -79,7 +79,7 @@ layout: page
79
79
  {% for note in site.portfolio %}
80
80
  {% if note.tags contains tag %}
81
81
  <h5 class="tag-title">
82
- <a href="{{ site.baseurl }}{{ note.url }}">
82
+ <a href="{{ note.url | relative_url }}">
83
83
  <i class="fa fa-file-o" aria-hidden="true"></i>
84
84
  {{ note.title }}
85
85
  </a>
@@ -45,6 +45,8 @@ h6 {
45
45
  a {
46
46
  color: $text-color;
47
47
  }
48
+
49
+
48
50
  }
49
51
 
50
52
  h1 {
@@ -63,6 +65,47 @@ h4 {
63
65
  font-size: 1.15em;
64
66
  }
65
67
 
68
+ /* ---- Responsive ---- */
69
+
70
+ @media screen and (max-width: $break) {
71
+ h1 {
72
+ font-size: 2em;
73
+ }
74
+ h2 {
75
+ font-size: 1.5em;
76
+ }
77
+ h3 {
78
+ font-size: 1em;
79
+ }
80
+ h4,
81
+ .meta {
82
+ font-size: 0.9em;
83
+ }
84
+ p {
85
+ font-size: 0.8em;
86
+ }
87
+ }
88
+
89
+ @media screen and (max-width: $sm-break) {
90
+ h1 {
91
+ font-size: 1.5em;
92
+ }
93
+ h2 {
94
+ font-size: 1em;
95
+ }
96
+ h3 {
97
+ font-size: 0.9em;
98
+ }
99
+ h4,
100
+ .meta {
101
+ font-size: 0.85em;
102
+ }
103
+ p {
104
+ font-size: 0.8em;
105
+ }
106
+ }
107
+
108
+
66
109
  blockquote {
67
110
  border-left: 2px solid darken($blockquote-color, 20%);
68
111
  margin: 1em 1em;
@@ -166,25 +209,4 @@ img[align=left] {
166
209
 
167
210
  img[align=right] {
168
211
  margin-left: 3%;
169
- }
170
-
171
- /* ---- Responsive ---- */
172
-
173
- @media screen and (max-width: $break) {
174
- h1 {
175
- font-size: 2em;
176
- }
177
- h2 {
178
- font-size: 1.5em;
179
- }
180
- h3 {
181
- font-size: 1em;
182
- }
183
- h4 {
184
- font-size: 0.9em;
185
- }
186
- p,
187
- li {
188
- font-size: 0.8em;
189
- }
190
- }
212
+ }