j1_template_mde 2018.4.19 → 2018.4.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/layouts/content_generator_blog_archive.html +15 -15
  3. data/_includes/themes/j1/modules/navigator/generator.html +1 -1
  4. data/_includes/themes/j1/procedures/global/create_word_cloud.proc +35 -59
  5. data/_includes/themes/j1/procedures/global/set_env_entry_document.proc +6 -0
  6. data/_includes/themes/j1/procedures/posts/collate_timeline.proc +34 -24
  7. data/_layouts/blog_archive.html +1 -1
  8. data/lib/j1/version.rb +1 -1
  9. data/lib/starter_web/Gemfile +1 -1
  10. data/lib/starter_web/_config.yml +1 -1
  11. data/lib/starter_web/_data/modules/j1_navigator_menu.yml +4 -4
  12. data/lib/starter_web/assets/data/panel.html +1 -1
  13. data/lib/starter_web/assets/themes/j1/core/css/theme_extensions.css +11 -72
  14. data/lib/starter_web/assets/themes/j1/core/css/theme_extensions.min.css +1 -1
  15. data/lib/starter_web/assets/themes/j1/core/css/uno.css +11 -72
  16. data/lib/starter_web/assets/themes/j1/core/css/uno.min.css +1 -1
  17. data/lib/starter_web/assets/themes/j1/core/js/adapter/algolia.js +5 -1
  18. data/lib/starter_web/collections/posts/premium/series/_posts/000_includes/documents/100-docker-using-shared-folders.asciidoc +3 -0
  19. data/lib/starter_web/collections/posts/premium/series/_posts/2018-11-01-docker-using-shared-folders.adoc +8 -9
  20. data/lib/starter_web/collections/posts/private/wikipedia/_posts/000_includes/attributes.asciidoc +46 -0
  21. data/lib/starter_web/collections/posts/private/wikipedia/_posts/000_includes/tables/debug_variables.asciidoc +48 -0
  22. data/lib/starter_web/collections/posts/private/wikipedia/_posts/2016-11-20-minneapolis.adoc +11 -8
  23. data/lib/starter_web/collections/posts/private/wikipedia/_posts/{2016-11-24-narcisse-snake-pits.adoc → 2016-11-24-narcisse-snake-dens.adoc} +10 -15
  24. data/lib/starter_web/collections/posts/private/wikipedia/_posts/2016-11-26-columbia-river.adoc +13 -9
  25. data/lib/starter_web/collections/posts/public/featured/_posts/0000-00-00-welcome-to-j1-template.adoc.erb +29 -15
  26. data/lib/starter_web/collections/posts/public/featured/_posts/000_includes/attributes.asciidoc +2 -1
  27. data/lib/starter_web/collections/posts/public/featured/_posts/{2017-05-01-confusion-about-base-url.adoc → 2018-05-01-confusion-about-base-url.adoc} +5 -28
  28. data/lib/starter_web/collections/posts/public/featured/_posts/{2017-06-01-top-open-source-static-site-generators.adoc → 2018-06-01-top-open-source-static-site-generators.adoc} +7 -28
  29. data/lib/starter_web/collections/posts/public/featured/_posts/{2017-07-01-what-is-a-static-site.adoc → 2018-07-01-what-is-a-static-site.adoc} +5 -27
  30. data/lib/starter_web/package.json +17 -1
  31. data/lib/starter_web/pages/public/blog/navigator/archive.html +26 -40
  32. data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +38 -48
  33. data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +21 -31
  34. data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +113 -115
  35. data/lib/starter_web/pages/public/blog/navigator/index.html +2 -2
  36. data/lib/starter_web/pages/public/instant_search_media.adoc +438 -0
  37. data/lib/starter_web/pages/public/start/roundtrip/100_present_images.adoc +1 -2
  38. data/lib/starter_web/pages/public/start/roundtrip/800_search_engine.adoc +34 -17
  39. metadata +9 -9
  40. data/_includes/themes/j1/modules/navigator/procedures/_unused/authclient.proc +0 -139
  41. data/_includes/themes/j1/modules/navigator/procedures/_unused/authclient.proc.org +0 -217
  42. data/lib/starter_web/collections/posts/premium/series/_posts/2018-11-01-docker-using-shared-folders.asciidoc +0 -86
@@ -11,19 +11,43 @@ image: /assets/images/blog/featured/welcome-to-
11
11
  regenerate: false
12
12
  ---
13
13
 
14
- // Enable the Liquid Preprocessor
14
+ // TODO: For POSTS, cuurently the include:: macro does NOT work.
15
+ // Path calculation needes to be fixec (includes the document file name)
16
+ // -----------------------------------------------------------------------------
17
+
18
+ // NOTE: General Asciidoc page attributes settings
15
19
  // -----------------------------------------------------------------------------
16
20
  :page-liquid:
17
21
 
18
- // Set other global page attributes here
22
+ // Additional Asciidoc page attributes goes here
19
23
  // -----------------------------------------------------------------------------
20
- :page-imagesdir: {{page.images.dir}}
24
+ :page-imagesdir: {{page.images.dir}}
25
+ :wikipedia-article: https://en.wikipedia.org/wiki/Geography_of_Minneapolis
21
26
 
22
- // Load Liquid procedures
27
+ // Liquid procedures
23
28
  // -----------------------------------------------------------------------------
24
29
  {% capture set_env_entry_document %}themes/{{site.template.name}}/procedures/global/set_env_entry_document.proc{%endcapture%}
25
30
 
26
- // Place an excerpt at the most top position
31
+ // Initialize entry document paths
32
+ // -----------------------------------------------------------------------------
33
+ {% include {{set_env_entry_document}} init_folders=all %}
34
+
35
+ // Place the page OR category image (if configured)
36
+ // -----------------------------------------------------------------------------
37
+ {% unless page.image %}
38
+ {% if page.images.category-image.size > 0 %}
39
+ {% assign page.image = page.images.category-image %}
40
+ {% endif %}
41
+ {% endunless %}
42
+
43
+ // Load tags and urls
44
+ // -----------------------------------------------------------------------------
45
+ // include::{includedir}/attributes.asciidoc[tag=tags]
46
+ // include::{includedir}/attributes.asciidoc[tag=urls]
47
+ // include::{includedir}/attributes.asciidoc[tag=data]
48
+
49
+
50
+ // NOTE: Place an excerpt at the most top position
27
51
  // -----------------------------------------------------------------------------
28
52
  Welcome to Jekyll and J1 Template!
29
53
 
@@ -40,19 +64,9 @@ lorem:sentences[5]
40
64
  [role="clearfix mb-3"]
41
65
  excerpt__end
42
66
 
43
- // Initialize entry document paths
44
- // -----------------------------------------------------------------------------
45
- {% include {{set_env_entry_document}} init_folders=all %}
46
-
47
- // Load tag, url and data attributes
48
- // -----------------------------------------------------------------------------
49
- include::{includedir}/attributes.asciidoc[tag=tags]
50
- include::{includedir}/attributes.asciidoc[tag=urls]
51
-
52
67
 
53
68
  // Page content
54
69
  // -----------------------------------------------------------------------------
55
-
56
70
  [[readmore]]
57
71
  == Add new posts
58
72
 
@@ -10,6 +10,7 @@ tag::urls[]
10
10
 
11
11
  end::urls[]
12
12
 
13
+
13
14
  // Tags - Asciidoc attributes used internally
14
15
  // -----------------------------------------------------------------------------
15
16
  tag::tags[]
@@ -18,6 +19,7 @@ tag::tags[]
18
19
 
19
20
  end::tags[]
20
21
 
22
+
21
23
  // Data - Data elements for Asciidoctor extensions
22
24
  // -----------------------------------------------------------------------------
23
25
  tag::data[]
@@ -27,7 +29,6 @@ tag::data[]
27
29
  end::data[]
28
30
 
29
31
 
30
-
31
32
  // Product|Author - Document (e.g release) and Author information
32
33
  // -----------------------------------------------------------------------------
33
34
  tag::product_info[]
@@ -2,7 +2,7 @@
2
2
  title: Jekyll URL Configuration
3
3
  tagline: What is a baseurl
4
4
  description: Jekyll URL Configuration
5
- date: 2017-05-01 00:00:00
5
+ date: 2018-05-01 00:00:00
6
6
 
7
7
  tags: [ Jekyll, Configuration, URL, base_url ]
8
8
  categories: featured
@@ -10,15 +10,14 @@ image: /assets/images/blog/featured/what-is-a-b
10
10
 
11
11
  regenerate: false
12
12
  ---
13
-
14
13
  // NOTE: General Asciidoc page attributes settings
15
- //
14
+ // -----------------------------------------------------------------------------
16
15
  :page-liquid:
17
16
 
18
17
  // Additional Asciidoc page attributes goes here
19
- //
18
+ // -----------------------------------------------------------------------------
20
19
  :page-imagesdir: {{page.images.dir}}
21
-
20
+ :wikipedia-article: https://en.wikipedia.org/wiki/Geography_of_Minneapolis
22
21
 
23
22
  // Place an excerpt at the most top position
24
23
  // -----------------------------------------------------------------------------
@@ -31,33 +30,11 @@ and how to use it.
31
30
  [role="clearfix mb-3"]
32
31
  excerpt__end
33
32
 
34
-
35
- // Liquid procedures
33
+ // Page content
36
34
  // -----------------------------------------------------------------------------
37
- {% capture set_env_entry_document %}themes/{{site.template.name}}/procedures/global/set_env_entry_document.proc{%endcapture%}
38
-
39
- // Initialize entry document paths
40
- //
41
- {% include {{set_env_entry_document}} init_folders=all %}
42
-
43
- // Load tags and urls
44
- //
45
- include::{includedir}/attributes.asciidoc[tag=tags]
46
- include::{includedir}/attributes.asciidoc[tag=urls]
47
- include::{includedir}/attributes.asciidoc[tag=data]
48
-
49
-
50
35
  [[readmore]]
51
36
  == Mimic GitHub Pages
52
37
 
53
- // Place the page OR category image (if configured)
54
- //
55
- {% unless page.image %}
56
- {% if page.images.category-image.size > 0 %}
57
- {% assign page.image = page.images.category-image %}
58
- {% endif %}
59
- {% endunless %}
60
-
61
38
  [role="mb-3"]
62
39
  image::{{page.image}}[{{page.title}}]
63
40
 
@@ -2,7 +2,7 @@
2
2
  title: Static Site Generators
3
3
  tagline: Top Open-Source Static Site Generators
4
4
  description: Static Site Generators
5
- date: 2017-06-01 00:00:00
5
+ date: 2018-06-01 00:00:00
6
6
 
7
7
  tags: [ Open Source, Static, Site Generators ]
8
8
  categories: featured
@@ -11,14 +11,14 @@ image: /assets/images/blog/featured/staticgen.j
11
11
  regenerate: false
12
12
  ---
13
13
 
14
- // Enable the Liquid Preprocessor
15
- //
14
+ // NOTE: General Asciidoc page attributes settings
15
+ // -----------------------------------------------------------------------------
16
16
  :page-liquid:
17
17
 
18
- // Set other global page attributes here
18
+ // Additional Asciidoc page attributes goes here
19
19
  // -----------------------------------------------------------------------------
20
- :page-imagesdir: {{page.images.dir}}
21
-
20
+ :page-imagesdir: {{page.images.dir}}
21
+ :wikipedia-article: https://en.wikipedia.org/wiki/Geography_of_Minneapolis
22
22
 
23
23
  // Place an excerpt at the most top position
24
24
  // -----------------------------------------------------------------------------
@@ -30,32 +30,11 @@ for creating sophisticated websites!
30
30
  [role="clearfix mb-3"]
31
31
  excerpt__end
32
32
 
33
-
34
- // Liquid procedures
33
+ // Page content
35
34
  // -----------------------------------------------------------------------------
36
- {% capture set_env_entry_document %}themes/{{site.template.name}}/procedures/global/set_env_entry_document.proc{%endcapture%}
37
-
38
- // Initialize entry document paths
39
- //
40
- {% include {{set_env_entry_document}} init_folders=all %}
41
-
42
- // Load tags and urls
43
- //
44
- include::{includedir}/attributes.asciidoc[tag=tags]
45
- include::{includedir}/attributes.asciidoc[tag=urls]
46
-
47
-
48
35
  [[readmore]]
49
36
  == Static Site Generators
50
37
 
51
- // Place the category image if configured
52
- //
53
- {% if page.images.category-image.size > 0 %}
54
- .{{page.tagline}}
55
- [role="mb-3"]
56
- image::{page-imagesdir}/{{page.images.category-image}}[{{page.title}}]
57
- {% endif %}
58
-
59
38
  [role="mb-3"]
60
39
  image::{{page.image}}[{{page.title}}]
61
40
 
@@ -2,7 +2,7 @@
2
2
  title: What is a Static Site?
3
3
  tagline: About Jekyll and Static Webs
4
4
  description: Jekyll and Static Webs
5
- date: 2017-07-01 00:00:00
5
+ date: 2018-07-01 00:00:00
6
6
 
7
7
  tags: [ Jekyll, Static, Web, Site, Security, Hosting ]
8
8
  categories: featured
@@ -11,13 +11,14 @@ image: /assets/images/blog/featured/jekyll.1200
11
11
  regenerate: false
12
12
  ---
13
13
 
14
- // Enable the Liquid Preprocessor
14
+ // NOTE: General Asciidoc page attributes settings
15
15
  // -----------------------------------------------------------------------------
16
16
  :page-liquid:
17
17
 
18
- // Set other global page attributes here
18
+ // Additional Asciidoc page attributes goes here
19
19
  // -----------------------------------------------------------------------------
20
20
  :page-imagesdir: {{page.images.dir}}
21
+ :wikipedia-article: https://en.wikipedia.org/wiki/Geography_of_Minneapolis
21
22
 
22
23
  // NOTE: Place an excerpt at the most top position
23
24
  // -----------------------------------------------------------------------------
@@ -34,36 +35,13 @@ by Jekyll, and allows you to concentrate on what truly matters: your content.
34
35
  [role="clearfix mb-3"]
35
36
  excerpt__end
36
37
 
37
- // Liquid procedures
38
- // -----------------------------------------------------------------------------
39
- {% capture set_env_entry_document %}themes/{{site.template.name}}/procedures/global/set_env_entry_document.proc{%endcapture%}
40
-
41
- // Initialize entry document paths
42
- // -----------------------------------------------------------------------------
43
- {% include {{set_env_entry_document}} init_folders=all %}
44
-
45
- // Load tag, url and data attributes
46
- // -----------------------------------------------------------------------------
47
- include::{includedir}/attributes.asciidoc[tag=tags]
48
- include::{includedir}/attributes.asciidoc[tag=urls]
49
-
50
-
51
38
  // Page content
52
39
  // -----------------------------------------------------------------------------
53
-
54
40
  [[readmore]]
55
41
  == What is a static site?
56
42
 
57
- // Place the page OR category image (if configured)
58
- //
59
- {% unless page.image %}
60
- {% if page.images.category-image.size > 0 %}
61
- {% assign page.image = page.images.category-image %}
62
- {% endif %}
63
- {% endunless %}
64
-
65
43
  [role="mb-3"]
66
- image::{{page.image}}[{{page.title}}]
44
+ image::{{page.image}}[{{page.title}}]
67
45
 
68
46
  All you’re doing at the end of the day is writing your content and Jekyll does
69
47
  all the tricky things needed for a web site: putting out HTML, Javascript
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": true,
3
3
  "name": "j1_starter",
4
- "version": "2018.4.19",
4
+ "version": "2018.4.20",
5
5
  "description": "Starter site for J1 Template",
6
6
  "homepage": "https://your.site",
7
7
  "author": {
@@ -31,6 +31,19 @@
31
31
  "Web",
32
32
  "Site"
33
33
  ],
34
+ "jekyll": {
35
+ "configfile": "_config.yml",
36
+ "gemfile": "Gemfile",
37
+ "metadata": ".jekyll-metadata",
38
+ "opt_incremental": "--incremental",
39
+ "opt_host": "0.0.0.0",
40
+ "opt_port": "4000",
41
+ "opt_profile": "",
42
+ "opt_watch": "--watch",
43
+ "opt_livereload": "--livereload",
44
+ "vendor_path": "vendor/bundle",
45
+ "vendorize": "false"
46
+ },
34
47
  "algolia": {
35
48
  "admin_key": "my_admin_key"
36
49
  },
@@ -59,6 +72,9 @@
59
72
  "built": "run-p -s built:*",
60
73
  "built:info": "echo Built the site for incremental mode ..",
61
74
  "built:do": "bundle exec jekyll b --incremental",
75
+ "bundle": "shx rm -f Gemfile.lock && cross-env if-env BUNDLE_VENDORIZE=true && run-s bundle_vendor || run-s bundle_global",
76
+ "bundle_global": "cross-env BUNDLE_GEMFILE=$npm_package_jekyll_gemfile bundle install",
77
+ "bundle_vendor": "cross-env BUNDLE_GEMFILE=$npm_package_jekyll_gemfile bundle install --path $npm_package_jekyll_vendor_path",
62
78
  "rebuilt": "run-p -s rebuilt:*",
63
79
  "rebuilt:info": "echo Built the site from scratch ..",
64
80
  "rebuilt:clean": "shx rm -rf _site && shx rm -f Gemfile.lock && shx rm -f .jekyll-metadata",
@@ -2,9 +2,8 @@
2
2
  layout: page
3
3
 
4
4
  title: Posts Archive
5
- tagline: Check out all Articles from the Blog Archive
5
+ tagline: Check out all posts
6
6
 
7
- toc: true
8
7
  #permalink: /pages/private/blog/navigator/archive/
9
8
 
10
9
  resource_options:
@@ -15,18 +14,17 @@ resource_options:
15
14
  - url: /assets/images/master_header/chuttersnap-1280x800.png
16
15
  alt: chuttersnap-1200x800
17
16
 
18
- regenerate: false
17
+ regenerate: false
19
18
  ---
20
19
 
21
20
  {% comment %} Liquid procedures
22
- --------------------------------------------------------------- {% endcomment %}
21
+ -------------------------------------------------------------------------------- {% endcomment %}
23
22
  {% capture get_page_path %}themes/{{site.template.name}}/procedures/global/get_page_path.proc{% endcapture %}
24
23
  {% capture select_icon_size %}themes/{{site.template.name}}/procedures/global/select_icon_size.proc{% endcapture %}
25
24
  {% capture get_category_item %}themes/{{site.template.name}}/procedures/global/get_category_item.proc{% endcapture %}
26
25
 
27
-
28
26
  {% comment %} Variables
29
- --------------------------------------------------------------- {% endcomment %}
27
+ -------------------------------------------------------------------------------- {% endcomment %}
30
28
  {% assign view_config = site.data.builder.blog_navigator.archive_view %}
31
29
  {% assign view_description = view_config.description %}
32
30
 
@@ -46,19 +44,9 @@ regenerate: false
46
44
  {% capture all_view %}{{page_path}}/{% endcapture %}
47
45
 
48
46
  {% comment %} Main
49
- --------------------------------------------------------------- {% endcomment %}
50
- <!-- <script>
51
- // TODO: Fix last_page settings and logging
52
- var logger = log4javascript.getLogger('j1.BlogNavigator');
53
- var cookieUserState = 'j1.user.state'
54
- j1_user_state.last_page = "{{browser_page_url}}"
55
- j1.setUserStateCookie( j1_user_state );
56
- logger.info('Save the current Post Browser page to cookie: ' +cookieUserState);
57
- </script> -->
58
-
47
+ -------------------------------------------------------------------------------- {% endcomment %}
59
48
  <!-- [INFO ] [ {{page.url}} ] [Generate HTML}] -->
60
- <div class="post-headline"> <h2 id="post-headline" class="mt-2">All Posts</h2></div>
61
- <div class="paginator">
49
+ <div class="paginator ml-3">
62
50
  <ul class="pagination raised-z0">
63
51
  <li class="page-item"><a class="page-link" href="{{navigator | prepend: site.baseurl}}" title="Blog View">Navigator</a></li>
64
52
  <li class="page-item"><a class="page-link" href="{{category_view | prepend: site.baseurl}}" title="View by Category">By Category</a></li>
@@ -68,38 +56,36 @@ regenerate: false
68
56
  </div>
69
57
 
70
58
  <div id="index" class="post-archive-search-results col-md-10 col-sm-10 col-xs-11">
71
-
72
59
  <div class="view-description">{{view_description}}</div>
73
-
60
+ <div class="post-headline">
61
+ <h2 id="post-headline" class="mt-5">All Posts</h2>
62
+ </div>
74
63
  <!-- ul class="list-unstyled link-news" -->
75
- <ul class="list-unstyled link-news">
76
- {% for post in site.posts %}
77
- <li>
78
- <h3 id="{{ 100000 | rand }}" class="mt-5 mb-0"><a title="Read {{post.title|escape_once}}" href="{{site.baseurl}}{{post.url}}"><i class="fa fa-archive mr-3"></i>{{post.title}}</a></h3>
79
- <small><time datetime="{{post.date|date_to_xmlschema}}"><i class="fa fa-calendar mr-1"></i> {{post.date|date: "%B %d, %Y"}}</time></small>
80
- <h5 class="notoc mt-4"><i class="fa fa-quote-left mr-3"></i>{{post.tagline}}</h5>
81
- <div class="service">
82
- <div class="desc"> <p>{{ post.excerpt }}</p> </div>
64
+ {% for post in site.posts %}
65
+ {% assign excerpt = post.excerpt | truncatewords: 50 | strip_html | strip_newlines | strip %}
66
+ <div class="card card-flat mb-2">
67
+ <div class="card-body">
68
+ <!-- <span class="post-meta">{{post.date|date: "%B %d, %Y"}}</span> -->
69
+ <h3 id="{{ 100000 | rand }}" class="card-title">{{ post.title }}</h3>
70
+ <h5 class="notoc card-subtitle text-muted mb-2">{{ post.tagline }}</h5>
71
+ <div class="card-text"><p>{{ excerpt }}</p></div>
72
+ <div class="card-footer">
73
+ <a class="card-link" href="{{post.url}}#readmore" target="_blank">Read more ..</a>
74
+ </div>
83
75
  </div>
84
- </li>
85
- {% endfor %}
86
- </ul>
76
+ </div>
77
+ {% endfor %}
87
78
  </div>
88
79
 
89
80
  <!-- [INFO ] [j1.page.{{page.title}} ] [Save the current page to cookieUserState cookie: {{ browser_page_url }}] -->
81
+ {% comment %} Update cookie for lastpage
82
+ -------------------------------------------------------------------------------- {% endcomment %}
90
83
  <script type="text/javascript">
91
84
  function setLastPage() {
85
+ var logger = log4javascript.getLogger('j1.BlogNavigator');
92
86
  var user_state_last_page = "{{browser_page_url}}";
93
87
  j1.setUserStateCookie( {last_page:user_state_last_page} );
88
+ logger.info('Saved current Post Browser page to cookie: {{browser_page_url}}');
94
89
  }
95
90
  window.onload = setLastPage;
96
91
  </script>
97
- <!--
98
- <script>
99
- /* Manage the current page settings */
100
- $(document).ready(function() {
101
- var user_state_last_page = "{{browser_page_url}}";
102
- j1.setUserStateCookie( {last_page:user_state_last_page} );
103
- });
104
- </script>
105
- -->
@@ -1,13 +1,14 @@
1
1
  ---
2
2
  layout: page
3
3
 
4
- title: Blog Archive by Category
5
- tagline: Check out all blog posts grouped by category
4
+ title: Categories
5
+ tagline: Check posts by category
6
6
 
7
- toc: true
8
7
  sort: date
9
8
  #permalink: /pages/private/blog/navigator/archive/categoryview/
10
9
 
10
+ skip_words: [ posts, public, private, premium ]
11
+
11
12
  resource_options:
12
13
 
13
14
  - masthead:
@@ -20,19 +21,19 @@ regenerate: false
20
21
  ---
21
22
 
22
23
  {% comment %} Debugging|Helpers
23
- --------------------------------------------------------------- {% endcomment %}
24
+ -------------------------------------------------------------------------------- {% endcomment %}
24
25
  {% comment %} site_category_word_list: {{ site_category_word_list | debug }} {% endcomment %}
25
26
 
26
27
 
27
28
  {% comment %} Liquid procedures
28
- --------------------------------------------------------------- {% endcomment %}
29
+ -------------------------------------------------------------------------------- {% endcomment %}
29
30
  {% capture get_page_path %}themes/{{site.template.name}}/procedures/global/get_page_path.proc{% endcapture %}
30
31
  {% capture select_icon_size %}themes/{{site.template.name}}/procedures/global/select_icon_size.proc{% endcapture %}
31
32
  {% capture get_category_item %}themes/{{site.template.name}}/procedures/global/get_category_item.proc{% endcapture %}
32
33
  {% capture create_word_cloud %}themes/{{site.template.name}}/procedures/global/create_word_cloud.proc{% endcapture %}
33
34
 
34
35
  {% comment %} Variables
35
- --------------------------------------------------------------- {% endcomment %}
36
+ -------------------------------------------------------------------------------- {% endcomment %}
36
37
  {% assign view_config = site.data.builder.blog_navigator.category_view %}
37
38
  {% assign view_description = view_config.description %}
38
39
 
@@ -42,11 +43,6 @@ regenerate: false
42
43
  {% capture browser_page_url %}{{ page.url }}{% endcapture %}
43
44
  {% endif %}
44
45
 
45
- {% comment %} jadams: skip_words needs to be configured by yaml data file
46
- --------------------------------------------------------------- {% endcomment %}
47
- {% assign skip_words = "posts" %}
48
- {% assign skip_word_array = skip_words | split:',' | sort %}
49
-
50
46
  {% include {{get_page_path}} mode='absolute' %}
51
47
  {% assign navigator_path = page_path | remove_first:'archive' %}
52
48
 
@@ -64,26 +60,22 @@ regenerate: false
64
60
  {% assign sorted_posts = site.posts | sort: 'date' %}
65
61
  {% endif %}
66
62
 
67
- {% assign tags = site.categories | sort %}
63
+ {% comment %} TODO: skip_words configured by yaml data file?
64
+ -------------------------------------------------------------------------------- {% endcomment %}
68
65
  {% capture site_category_word_list %}{% for tag in site.categories %}{{ tag | first }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
66
+ {% assign categories = site_category_word_list | split:',' %}
69
67
 
68
+ {% for category in categories %}
69
+ {% if page.skip_words contains category %} {% continue %} {% endif %}
70
+ {% capture category_list %}{{ category_list | append: category }}{% unless forloop.last %},{% endunless %}{% endcapture %}
71
+ {% endfor %}
70
72
 
71
73
  {% comment %} Main
72
- --------------------------------------------------------------- {% endcomment %}
73
- <!-- <script>
74
- // TODO: Fix last_page settings and logging
75
- var cookieUserState = 'j1.user.state'
76
- var logger = log4javascript.getLogger('j1.BlogNavigator');
77
- j1_user_state.last_page = "{{browser_page_url}}"
78
- j1.setUserStateCookie( j1_user_state );
79
- logger.info('Save the current Post Browser page to cookie: ' +cookieUserState);
80
- </script> -->
81
-
74
+ -------------------------------------------------------------------------------- {% endcomment %}
82
75
  <!-- [INFO ] [ {{page.url}} ] [Generate HTML}] -->
83
- {% include {{create_word_cloud}} word_list=site_category_word_list source="categories" skip_words=skip_words %}
76
+ {% include {{create_word_cloud}} word_list=category_list source="categories" skip_words=skip_words %}
84
77
 
85
- <div class="post-headline"> <h2 id="post-headline" class="mt-2">Posts By Category</h2></div>
86
- <div class="paginator">
78
+ <div class="paginator ml-3">
87
79
  <ul class="pagination raised-z0">
88
80
  <li class="page-item"><a class="page-link" href="{{navigator | prepend: site.baseurl}}" title="Blog View">Navigator</a></li>
89
81
  <li class="page-item"><a class="page-link" href="{{date_view | prepend: site.baseurl}}" title="View by Date">By Date</a></li>
@@ -95,50 +87,48 @@ regenerate: false
95
87
  <div class="post-search-results col-md-10 col-sm-10 col-xs-11">
96
88
 
97
89
  <div class="view-description">{{view_description}}</div>
98
-
90
+ <div class="post-headline"> <h2 id="post-headline" class="mt-5">Categories</h2></div>
91
+ {% assign tags = site.categories | sort %}
99
92
  {% for tag in tags %}
100
93
  {% assign category = tag|first %}
101
- {% if category contains 'posts' %} {% continue %} {% endif %}
94
+ {% unless category_list contains category %} {% continue %} {% endunless %}
102
95
  <!-- h2 id="{{tag|first}}" class="toc-link mt-5 mb-4"><i class="fa fa-thumbtack mr-3"></i>{{tag|first|capitalize}} <i class="badge ml-1">{{tag|last|size}}</i></h2 -->
103
- <h2 id="{{tag|first}}" class="toc-link mt-5 mb-4"><i class="fa fa-thumbtack mr-3"></i>{{tag|first|capitalize}}</h2>
96
+ <h3 id="{{tag|first}}" class="toc-link mt-5 mb-4"><i class="fa fa-thumbtack mr-3"></i>{{tag|first|capitalize}}</h3>
104
97
 
105
- <ul class="list-unstyled link-news">
106
98
  {% for post in sorted_posts %}
107
99
  {%if post.categories contains tag[0]%}
108
- <li>
109
100
  {% assign category = tag | first %}
110
101
  {% include {{get_category_item}} category=category %}
111
102
  {% include {{select_icon_size}} family=icon_family size=icon_size %}
112
103
  {% assign icon_size = size %}
113
-
114
- <h3 id="{{ 100000 | rand }}" class="mt-3 mb-2"><a title="Read {{post.title|escape_once}}" href="{{site.baseurl}}{{post.url}}">{{post.title}}</a></h3>
115
- <small><time datetime="{{post.date|date_to_xmlschema}}"><i class="fa fa-calendar mr-2"></i>{{post.date|date: "%B %d, %Y"}}</time></small>
116
- <h5 class="notoc mt-4"><i class="fa fa-quote-left mr-3"></i>{{post.tagline}}</h5>
117
-
118
- <div class="service">
119
- <div class="desc"> <p>{{ post.excerpt }}</p> </div>
104
+ {% assign excerpt = post.excerpt | truncatewords: 50 | strip_html | strip_newlines | strip %}
105
+
106
+ <div class="card card-flat mb-2">
107
+ <div class="card-body">
108
+ <!-- <span class="post-meta">{{post.date|date: "%B %d, %Y"}}</span> -->
109
+ <h4 id="{{ 100000 | rand }}" class="card-title">{{ post.title }}</h4>
110
+ <h5 class="notoc card-subtitle text-muted mb-2">{{ post.tagline }}</h5>
111
+ <div class="card-text"><p>{{ excerpt }}</p></div>
112
+ <div class="card-footer">
113
+ <a class="card-link" href="{{post.url}}#readmore" target="_blank">Read more ..</a>
114
+ </div>
115
+ </div>
120
116
  </div>
121
- </li>
117
+
122
118
  {% endif %}
123
119
  {% endfor %}
124
- </ul>
125
120
  {% endfor %}
126
121
  </div>
127
122
 
128
123
  <!-- [INFO ] [j1.page.{{page.title}} ] [Save the current page to cookieUserState cookie: {{ browser_page_url }}] -->
124
+ {% comment %} Update cookie for lastpage
125
+ -------------------------------------------------------------------------------- {% endcomment %}
129
126
  <script type="text/javascript">
130
127
  function setLastPage() {
128
+ var logger = log4javascript.getLogger('j1.BlogNavigator');
131
129
  var user_state_last_page = "{{browser_page_url}}";
132
130
  j1.setUserStateCookie( {last_page:user_state_last_page} );
131
+ logger.info('Saved current Post Browser page to cookie: {{browser_page_url}}');
133
132
  }
134
133
  window.onload = setLastPage;
135
134
  </script>
136
- <!--
137
- <script>
138
- /* Manage the current page settings */
139
- $(document).ready(function() {
140
- var user_state_last_page = "{{browser_page_url}}";
141
- j1.setUserStateCookie( {last_page:user_state_last_page} );
142
- });
143
- </script>
144
- -->