mgm-jekyll-bulma 0.1.1 → 0.1.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1a2c77f9f320cc2c1d1de508a0e2947001e7bdf323109c0e21c40b1f3a9ec698
4
- data.tar.gz: cde6610e1b33dfd95eb992ab92efbcec695327b03467982da8815af05f407e0a
3
+ metadata.gz: f04da19975633e4cfab6401b5b4b7ca8557901326fb149b9c3ca9926011ef7fa
4
+ data.tar.gz: e022afcd870548a7a89bf99ccdf94ee30a437e36a08ba3fbd0f0d42cb0aad745
5
5
  SHA512:
6
- metadata.gz: b90b1e38d3cd07247d7a09c78c8b48f64b5d070c833056587896d7622225814a31a6221381b7a104e58f98b10cdd265e279ba20b80cdb8767c7dc724f8afbbdf
7
- data.tar.gz: c5491dde77ab60d7466c6541ef48d2cde1132e2c11bbcfa30b766e7ab83671a7d551a3764a65d1b6d0b474bb724a902af6af24fd9d6f25ec068357e7e34701a7
6
+ metadata.gz: 411b6b59227c255a5ee09caecb3c522932d60eb2edde9eaaf8335605f977f6986339fee4ebc6639fcb959ca1656d7c09ec756f2c9d7a6e0cdd358bc1fd4b0cb6
7
+ data.tar.gz: 447133e6315f6eac1b40bb6472adfbf00619fb2bac4df9e3b34bfc697807e450c25fddcb33dde4f10aab2631b7e9d8eeb416f1395fcd6791d775ca433a25bd9a
@@ -0,0 +1,41 @@
1
+ {% comment %}
2
+ This section adds pretty ordinal endings (i.e. st, nd, th) to dates in
3
+ the blog post listing.
4
+ {% endcomment %}
5
+
6
+
7
+ {%- assign dateOfPost = {{post.date | date: "%d"}} -%}
8
+
9
+ {%- if dateOfPost == "01" or dateOfPost == "21" or dateOfPost == "31" -%}
10
+ {%- assign ordinalEnding = "st" -%}
11
+ {%- elsif dateOfPost == "02" or dateOfPost == "22" -%}
12
+ {%- assign ordinalEnding = "nd" -%}
13
+ {%- elsif dateOfPost == "03" or dateOfPost == "23" -%}
14
+ {%- assign ordinalEnding = "rd" -%}
15
+ {%- else %}
16
+ {%- assign ordinalEnding = "th" -%}
17
+ {%- endif %}
18
+
19
+
20
+ {%- assign firstDigitDofP = dateOfPost | slice: 0 -%}
21
+
22
+ {%- if firstDigitDofP == "0" -%}
23
+ {%- assign prettyDateOfPost = dateOfPost | slice: 1 -%}
24
+ {%- else -%}
25
+ {%- assign prettyDateOfPost = dateOfPost -%}
26
+ {%- endif -%}
27
+
28
+ {% comment %}
29
+ The conditional makes the first now post link to /now instead of the post permalink.
30
+ {% endcomment %}
31
+
32
+ {%- if post.category == "now" and site.categories.now[0] == post -%}
33
+ {% assign LinkToPost = "/now" %}
34
+ {% else %}
35
+ {% assign LinkToPost = post.url %}
36
+ {% endif %}
37
+
38
+ <p class="mb-0"><a href="{{LinkToPost}}" title="{{post.title}}" class="blog-listing-link">{{ post.title }}</a>
39
+ {% unless page.display-post-date == false %}
40
+ <time class="is-size-7" datetime="{{ post.date | date: '%Y-%m-%d' }}">| {{ post.date | date: "%B" }} {{prettyDateOfPost}}{{ ordinalEnding }}, {{ post.date | date: "%Y" }}</time></p>
41
+ {% endunless %}
@@ -0,0 +1,56 @@
1
+ <div class="column socialmedia">
2
+ <div class="block notification is-link is-transparent">
3
+ <div class="columns is-mobile ">
4
+ <ul class="column">
5
+ {% if site.facebook %}
6
+ <li>
7
+ <a href="https://facebook.com/{{ site.facebook }}">
8
+ <i class="fab fa-facebook-square"></i>
9
+ <span class="username">Facebook</span>
10
+ </a>
11
+ </li>
12
+ {% endif %}
13
+ {% if site.twitter %}
14
+ <li>
15
+ <a href="https://twitter.com/{{ site.twitter }}">
16
+ <i class="fab fa-twitter-square"></i>
17
+ <span class="username">Twitter</span>
18
+ </a>
19
+ </li>
20
+ {% endif %}
21
+ {% if site.linkedin %}
22
+ <li>
23
+ <a href="https://www.linkedin.com/in/{{ site.linkedin }}">
24
+ <i class="fab fa-linkedin"></i>
25
+ <span class="username">LinkedIn</span>
26
+ </a>
27
+ </li>
28
+ {% endif %}
29
+ </ul>
30
+ <ul class="column">
31
+ {% if site.soundcloud %}
32
+ <li>
33
+ <a href="https://soundcloud.com/{{ site.soundcloud }}">
34
+ <i class="fab fa-podcast"></i>
35
+ <span class="username">Podcast</span>
36
+ </a>
37
+ </li>
38
+ {% endif %}
39
+ {% if site.youtube %}
40
+ <li>
41
+ <a href="https://youtube.com/{{ site.youtube }}">
42
+ <i class="fab fa-youtube-square"></i><span class="username"> YouTube</span>
43
+ </a>
44
+ </li>
45
+ {% endif %}
46
+ {% if site.github %}
47
+ <li>
48
+ <a href="https://github.com/{{ site.github }}">
49
+ <i class="fab fa-github-square"></i><span class="username"> Git Hub</span>
50
+ </a>
51
+ </li>
52
+ {% endif %}
53
+ </ul>
54
+ </div>
55
+ </div>
56
+ </div>
@@ -1,11 +1,13 @@
1
1
  {% if page.callouts %}
2
2
  {% assign callouts=site.data.[page.callouts] %}
3
- <section class="hero {% if callouts.height %} {{ callouts.height }} {% else %} is-medium {% endif %} {{ callouts.style }}">
3
+ <section class="hero {% if callouts.height %} {{ callouts.height }} {% else %} is-medium {% endif %} {{ callouts.style }}" {% if callouts.hero_image %} style="background-image: url('{{ callouts.hero_image }}');" {% endif %}>
4
4
  <div class="hero-body">
5
5
  <div class="container">
6
- <div class="columns is-multiline is-centered">
6
+ <div class="columns is-multiline is-centered callouts">
7
7
  {% for callout in callouts.items %}
8
- <div class="column is-4 has-text-centered">
8
+ <div class="column {% if callout.columns %} is-{{ callout.columns }} {% else %}is-4{% endif %} {% if callout.class %}{{ callout.class }}{% else %} {% endif %} has-text-centered">
9
+ <a href="{{ callout.link }}" class="callout">
10
+ <div class="solid"></div>
9
11
  {% if callout.icon %}
10
12
  <div class="icon callout-icon">
11
13
  {% if callout.icon_brand %}
@@ -15,9 +17,10 @@
15
17
  {% endif %}
16
18
  </div>
17
19
  {% endif %}
18
- <p class="title is-5">{{ callout.title }}</p>
19
- <p class="subtitle is-5">{{ callout.subtitle }}</p>
20
-
20
+ <p class="title is-4">{{ callout.title }}</p>
21
+ {% if callout.subtitle %}
22
+ <p class="subtitle is-5">{{ callout.subtitle }}</p>
23
+ {% endif %}
21
24
  {% if callout.description %}
22
25
  <div class="content">
23
26
  <p>{{ callout.description | newline_to_br }}</p>
@@ -25,10 +28,9 @@
25
28
  {% endif %}
26
29
 
27
30
  {% if callout.call_to_action_name %}
28
- <a href="{{ callout.call_to_action_link | relative_url }}" class="button is-primary">
29
- {{ callout.call_to_action_name }}
30
- </a>
31
+
31
32
  {% endif %}
33
+ </a>
32
34
  </div>
33
35
  {% endfor %}
34
36
  </div>
@@ -36,4 +38,3 @@
36
38
  </div>
37
39
  </section>
38
40
  {% endif %}
39
-
@@ -1,6 +1,5 @@
1
- <footer class="footer">
1
+ <footer class="footer dumbotron">
2
2
  <div class="container">
3
-
4
3
  {% if site.footer_menu %}
5
4
  <div class="columns is-multiline">
6
5
  {% for item in site.data[site.footer_menu] %}
@@ -12,9 +11,13 @@
12
11
  {% endfor %}
13
12
  </div>
14
13
  {% endif %}
15
-
14
+ <div class="columns">
15
+ {% include callout_subscribes.html %}
16
+ {% include callout_socialmedia.html %}
17
+ {% include callout_colophon.html %}
18
+ </div>
16
19
  <div class="content is-small has-text-centered">
17
- <p class="">Theme built by <a href="https://www.csrhymes.com">C.S. Rhymes</a></p>
20
+ <p class="">This site is built with <a href="https://github.com/jekyll/jekyll">Jekyll</a> and <a href="https://pages.github.com/">hosted on github</a>. The base theme uses the <a href="https://bulma.io/">Bulma CSS framework</a>, with the help of <a href="https://www.csrhymes.com">Bulma Clean Theme</a></p>
18
21
  </div>
19
22
  </div>
20
23
  </footer>
@@ -1,4 +1,4 @@
1
- <nav class="navbar is-primary {% if site.fixed_navbar %} is-fixed-{{ site.fixed_navbar }} {% endif %}" x-data="{ openNav: false }">
1
+ <nav class="navbar {% if site.fixed_navbar %} is-fixed-{{ site.fixed_navbar }} {% endif %}" x-data="{ openNav: false }">
2
2
  <div class="container">
3
3
  <div class="navbar-brand">
4
4
  <a href="{{ site.baseurl }}/" class="navbar-item">
@@ -11,35 +11,24 @@
11
11
  </a>
12
12
  </div>
13
13
  <div class="navbar-menu" id="navMenu" :class="{ 'is-active': openNav }">
14
- <div class="navbar-start">
15
- <a href="{{ site.baseurl }}/" class="navbar-item {% if page.url == "/" %}is-active{% endif %}">Home</a>
16
- {% if site.data.navigation %}
17
- {% for item in site.data.navigation %}
18
- {% if item.dropdown %}
19
- <div class="navbar-item has-dropdown is-hoverable {% if site.fixed_navbar == 'bottom' %} has-dropdown-up {% endif %}">
20
- <a href="{{ item.link | relative_url }}" class="navbar-link {% if page.url contains item.link %}is-active{% endif %}">{{ item.name }}</a>
21
- <div class="navbar-dropdown">
22
- {% for subitem in item.dropdown %}
23
- <a href="{{ subitem.link | relative_url }}" class="navbar-item {% if subitem.link == page.url %}is-active{% endif %}">{{ subitem.name }}</a>
24
- {% endfor %}
25
- </div>
26
- </div>
27
- {% else %}
28
- <a href="{{ item.link | relative_url }}" class="navbar-item {% if item.link == page.url %}is-active{% endif %}">{{ item.name }}</a>
29
- {% endif %}
30
- {% endfor %}
31
- {% endif %}
32
- </div>
33
-
34
14
  <div class="navbar-end">
35
- {% if site.gh_sponsor %}
36
- <a class="navbar-item" href="https://github.com/sponsors/{{ site.gh_sponsor }}">
37
- <span class="icon gh-sponsor"><i class="fas fa-heart"></i></span>
38
- <span>Sponsor</span>
39
- </a>
40
- {% endif %}
15
+ {% if site.data.navigation %}
16
+ {% for item in site.data.navigation %}
17
+ {% if item.dropdown %}
18
+ <div class="navbar-item has-dropdown is-hoverable {% if site.fixed_navbar == 'bottom' %} has-dropdown-up {% endif %}">
19
+ <a href="{{ item.link | relative_url }}" class="navbar-link {% if page.url contains item.link %}is-active{% endif %}">{{ item.name }}</a>
20
+ <div class="navbar-dropdown">
21
+ {% for subitem in item.dropdown %}
22
+ <a href="{{ subitem.link | relative_url }}" class="navbar-item {% if subitem.link == page.url %}is-active{% endif %}">{{ subitem.name }}</a>
23
+ {% endfor %}
24
+ </div>
25
+ </div>
26
+ {% else %}
27
+ <a href="{{ item.link | relative_url }}" class="navbar-item {% if item.link == page.url %}is-active{% endif %}">{{ item.name }}</a>
28
+ {% endif %}
29
+ {% endfor %}
30
+ {% endif %}
41
31
  </div>
42
-
43
32
  </div>
44
33
  </div>
45
34
  </nav>
data/_includes/hero.html CHANGED
@@ -1,4 +1,11 @@
1
- <section class="hero {% if page.hero_height %} {{ page.hero_height }} {% else %} is-medium {% endif %} is-bold is-primary" {% if page.hero_image %} style="background: url('{{ page.hero_image }}') no-repeat center center; background-size: cover;" {% endif %}>
1
+ <section class="hero {% if page.hero_height %} {{ page.hero_height }} {% else %} is-medium {% endif %} is-bold {% if page.hero_color %} {{ page.hero_color }} {% else %} is-primary {% endif %}" {% if page.hero_image %} style="background-image: url('{% if page.hero_remote %}{{ site.image-baseurl }}{% else %}{{ site.image-localpath }}{% endif %}{{ page.hero_image }}'); {% if page.hero_vertposition %} background-position: {{ page.hero_vertposition }} {% endif %};" {% endif %}>
2
+
3
+ {% if include.remote %}
4
+ <img src="{{ site.image-baseurl | absolute_url }}{{ include.src }}" alt="{{ include.alt }}">
5
+ {% else %}
6
+ <img src="{{ site.image-localpath | absolute_url }}/{{ include.src}}" alt="{{ include.alt }}">
7
+ {% endif %}
8
+
2
9
  <div class="hero-body {% if page.hero_darken %} hero-darken {% endif %}">
3
10
  <div class="container">
4
11
  <h1 class="title is-2">{{ page.title }}</h1>
@@ -8,4 +15,4 @@
8
15
  {% endif %}
9
16
  </div>
10
17
  </div>
11
- </section>
18
+ </section>
@@ -0,0 +1,11 @@
1
+ <figure class="image {{ include.ratio | default: is-16by9 }}">
2
+ {% if include.remote %}
3
+ <img src="{{ site.image-baseurl | absolute_url }}{{ include.src }}" alt="{{ include.alt }}">
4
+ {% else %}
5
+ <img src="{{ site.image-localpath | absolute_url }}/{{ include.src}}" alt="{{ include.alt }}">
6
+ {% endif %}
7
+ {% if include.alt %}
8
+ <span class="title">{{ include.alt }}</span>
9
+ <div class="attribution">{{ include.attribution }}</div>
10
+ {% endif %}
11
+ </figure>
@@ -3,10 +3,7 @@
3
3
  <div class="columns is-multiline">
4
4
  {% for post in site.posts limit:3 %}
5
5
  <div class="column is-12">
6
- {% include post-card.html %}
6
+ {% include post-list.html %}
7
7
  </div>
8
8
  {% endfor %}
9
9
  </div>
10
-
11
-
12
-
@@ -0,0 +1,21 @@
1
+ {% assign menus = site.data.[page.menubar] %}
2
+
3
+ <aside class="menu">
4
+ {% for menu in menus %}
5
+ <p class="menu-label">{{ menu.label }}</p>
6
+ <ul class="menu-list">
7
+ {% for item in menu.items %}
8
+ <li>
9
+ <a href="{{ item.link | relative_url }}" class="{% if item.link == page.url %}is-active{% endif %}">{{ item.name }}</a>
10
+ {% if item.items %}
11
+ <ul>
12
+ {% for subitem in item.items %}
13
+ <li><a href="{{ subitem.link | relative_url }}" class="{% if subitem.link == page.url %}is-active{% endif %}">{{ subitem.name }}</a></li>
14
+ {% endfor %}
15
+ </ul>
16
+ {% endif %}
17
+ </li>
18
+ {% endfor %}
19
+ </ul>
20
+ {% endfor %}
21
+ </aside>
@@ -0,0 +1,69 @@
1
+ {% if page.post-listlong %}
2
+ <div class="block">
3
+ <div class="columns post-header">
4
+ <div class="column card-image is-3">
5
+ <figure class="image is-3by1">
6
+ {% if post.hero_image %}
7
+ {% if post.hero_remote %}
8
+ <img src="{{ site.image-baseurl }}{{ post.hero_image }}" alt="{{ post.title }}">
9
+ {% else %}
10
+ <img src="{{ site.image-localpath | absolute_url }}{{ post.hero_image }}" alt="{{ post.title }}">
11
+ {% endif %}
12
+ {% else %}
13
+ <img src="{{ site.hero_image }}" alt="what is this">
14
+ {% endif %}
15
+ </figure>
16
+ </div>
17
+ <div class="column">
18
+ <h2><a class="is-9" href="{{ site.baseurl }}{{ post.url }}">{{post.title}}</a></h2>
19
+ </div>
20
+ </div>
21
+ <div class="columns">
22
+ <div class="column is-3">
23
+ <ul class="fa-ul">
24
+ <li><span class="fa-li"><i class="fas fa-calendar"></i></span>Published: {{ post.date | date: "%b %-d, %Y" }}</li>
25
+ {% if post.tags.size > 0 %}
26
+ <li><span class="fa-li"><i class="fas fa-tags"></i></span>
27
+ {% for tag in post.tags%}
28
+ <a class="" href="/archive/tag/#{{ include.tag }}">
29
+ {{ tag }}
30
+ </a>
31
+ {% endfor %}
32
+ </li>
33
+ {% endif %}
34
+ </ul>
35
+ </div>
36
+ <div class="column">
37
+ <div class="content">
38
+ {% if post.summary %}
39
+ {{ post.summary | markdownify }}
40
+ {% else %}
41
+ {{ post.excerpt }}
42
+ <p class="has-text-right">
43
+ <a href="{{ site.baseurl }}{{ post.url }}">
44
+ <span>Read more</span>
45
+ <span class="icon">
46
+ <i class="fas fa-angle-double-right"></i>
47
+ </span>
48
+ </a>
49
+ </p>
50
+
51
+ {% endif %}
52
+ </div>
53
+ </div>
54
+ </div>
55
+ <div class="has-text-centered">
56
+ <span class="has-text-link is-large">
57
+ <span class="icon">
58
+ <i class="fas fa-leaf"></i>
59
+ </span>
60
+ </span>
61
+ </div>
62
+ </div>
63
+ {% else %}
64
+ <div class="post-short">
65
+ <h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
66
+ <small>{{ post.date | date: '%F' }}</small>
67
+ <p>{{ post.description }}</p>
68
+ </div>
69
+ {% endif %}
data/_includes/tag.html CHANGED
@@ -1,3 +1,5 @@
1
- <span class="tag {% if include.style %} {{ include.style }} {% else %} is-primary {% endif %}">
1
+ <button class="button {% if include.style %} {{ include.style }} {% else %} is-outlined is-link {% endif %}">
2
+ <a class="" href="/archive/tag/#{{ include.tag }}">
2
3
  {{ include.tag }}
3
- </span>
4
+ </a>
5
+ </button>
data/_includes/toc.html CHANGED
File without changes
@@ -23,7 +23,7 @@
23
23
  {% endunless %}
24
24
  {% include callouts.html %}
25
25
  <section class="section">
26
- <div class="container">
26
+ <div class="container is-max-desktop">
27
27
  <div class="columns is-multiline">
28
28
  {% if page.menubar_toc %}
29
29
  <div class="column is-4-desktop is-4-tablet">
@@ -37,8 +37,6 @@
37
37
  {% endif %}
38
38
  <div class="column {{ content_width }}">
39
39
  {% include tabs.html %}
40
- {% include showcase.html %}
41
- {% include sponsors.html %}
42
40
  {% include gallery.html %}
43
41
  {{ content }}
44
42
  </div>
data/_layouts/page.html CHANGED
@@ -8,4 +8,4 @@ layout: default
8
8
  {% endif %}
9
9
  <div class="content">
10
10
  {{ content }}
11
- </div>
11
+ </div>
data/_layouts/post.html CHANGED
@@ -13,7 +13,7 @@ layout: default
13
13
  {{ content }}
14
14
  </div>
15
15
 
16
- <div class="tags">
16
+ <div class="tags buttons are-small are-light">
17
17
  {% for tag in page.tags %}
18
18
  {% include tag.html tag=tag %}
19
19
  {% endfor %}