jekyll-theme-open-project 1.0.6 → 1.0.7

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
  SHA256:
3
- metadata.gz: 91467e2da34587bc85c3566d0fc28398a73a23d23639c13e40720dd6e9bf6773
4
- data.tar.gz: 32869f0c9d3c70295fcf8ae349daf229ce4da37ca1d16b405f52b9668beb65af
3
+ metadata.gz: c40140289c0ec2310cbe872577217d035ea81f4c71abec0780c2de08c8d9a2c7
4
+ data.tar.gz: c42852bd98debb6960ccad661021287e6e912f851ebd5c5e3dff685952de94ea
5
5
  SHA512:
6
- metadata.gz: 563d09f8cb78eaa5cdffb2f0469bb937212fe762ef456bf8ccde46950f2c03af83c45865c0197f9f4744c7ed44c008d3d598af11fcce12a1c50d117181a2469c
7
- data.tar.gz: 933e887454fbbfba6ae85ade7e6d44986cc4bf2d18fe028a4bc2c63647eac0a4f1e0b1981a753356971fc25c92479b41de314a6545a93edc1808b328e120ee56
6
+ metadata.gz: 38e10161d0f12edc3135c062711398f19455d8895a680a9419f809f768db0c5e81af14d65a8c5fbc8c34c35e4090043afc55779a821bf191b915392f783d92b1
7
+ data.tar.gz: '09a8dd8717f0def5ac3579fa3d53c97ba21d5ee212ff7dd40f57eb67e46c13d4a15ffaa56f3651b0f0fd9ce5f6237a71a8124bb1ec98eb9585378f319a7680a6'
data/README.md CHANGED
@@ -628,16 +628,45 @@ need to be included in the gem, edit regexp in the gemspec.
628
628
 
629
629
  ### Building and releasing
630
630
 
631
- To check your theme, run:
631
+ #### Manual test during development
632
632
 
633
- ./develop/build
633
+ While working on a site using this Jekyll theme, you can use local theme copy,
634
+ and thus test the theme before release. The sequence would be as follows:
634
635
 
635
- It’ll build Jekyll site and run some checks, like HTML markup validation.
636
+ 1. Change Gemfile to point to local theme copy.
637
+
638
+ For example, change from `gem "jekyll-theme-open-project", "~> 1.0.6"`
639
+ to `gem "jekyll-theme-open-project", :path => "../jekyll-theme-open-project"`
640
+
641
+ 2. Run `bundle exec jekyll serve`.
642
+
643
+ 3. Make changes to theme and reload site (it may not reload automatically).
644
+
645
+ 4. Release theme — see below.
646
+
647
+ 5. (To bump the site to this latest version, change Gemfile back,
648
+ bump theme dependency version to the one just released,
649
+ run `bundle --full-index` to update lockfile properly,
650
+ and your site is ready to go.)
651
+
652
+ #### Releasing
636
653
 
637
- To build new gem and push it to rubygems.org, run:
654
+ Update .gemspec file with the new version and commit the change.
655
+
656
+ Build new gem version and push it to rubygems.org with:
638
657
 
639
658
  ./develop/release
640
659
 
660
+ #### Testing with build script (TBD)
661
+
662
+ May not work at the moment — see #26. Please use the other test option.
663
+
664
+ To check your theme, run:
665
+
666
+ ./develop/build
667
+
668
+ It’ll build Jekyll site and run some checks, like HTML markup validation.
669
+
641
670
 
642
671
  ## License
643
672
 
@@ -1,4 +1,6 @@
1
1
  {% assign projects = site.projects | where_exp: "item", "item.home_url != nil" %}
2
+ {% assign posts = site.posts_combined %}
3
+ {% assign num_posts = site.num_posts_combined %}
2
4
 
3
5
  <div class="underlay top-background" role="presentation">
4
6
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none">
@@ -37,14 +39,13 @@
37
39
  </section>
38
40
  {% endif %}
39
41
 
40
- {% assign num_featured_posts = site.posts | size %}
41
- {% if num_featured_posts > 0 %}
42
+ {% if num_posts > 0 %}
42
43
  <section class="featured-posts">
43
44
  <div role="presentation" class="puny-label">Latest news</div>
44
45
  <h2 class="title">From the Blog</h2>
45
46
 
46
47
  <div class="items" role="presentation">
47
- {% for item in site.posts limit:3 %}
48
+ {% for item in posts limit:3 %}
48
49
  {% include post-card.html post=item %}
49
50
  {% endfor %}
50
51
  </div>
@@ -31,7 +31,7 @@
31
31
  </header>
32
32
 
33
33
  <p class="body">
34
- {{ include.post.excerpt | remove: '<p>' | remove: '</p>' }}
34
+ {{ include.post.excerpt | remove: '<p>' | remove: '</p>' | remove: '<div class="presentation">' | remove: '</div>' }}
35
35
  </p>
36
36
 
37
37
  <footer class="meta">
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-open-project
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-23 00:00:00.000000000 Z
11
+ date: 2018-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll