structrdfal 0.1.2 → 0.1.5

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: 149cf2d8b433414823d011e1b17946f6ac7772af9992f518f1c81891d5141997
4
- data.tar.gz: 046ff79c2287708898843462d14ae1052e3a490218367828b1f74d21c59fa823
3
+ metadata.gz: 7b3a2388895ec9d0eba3da5ea440fcda4b7ca863cb543117e6147bdbd73108e5
4
+ data.tar.gz: 0fc74d55322ae63ccbf1aed6f55c1e7568ba114689cd7fcef5e774cb667a2bcb
5
5
  SHA512:
6
- metadata.gz: f79f73576a96d118c832294d6d7e9ecf96d5a1e6df6471cfb354366d7e02fe4661dff05b26032a021186dfcce4d06c2afba7db90dd3c27cb73f3649c29416ae6
7
- data.tar.gz: ef6d9effd7a7f6462329db269c65741c427f8579199163edcfaf006860282d4cfaea14dfbc51bb289e4bccccf4f3d2bd463fc900efc41a707de5773fb2076cd1
6
+ metadata.gz: 58c1b6691af833cb805ca3eeb5cf646b76cfdf50a72fe0cdcce92b612b036d8b274bce5cf19a039f5fee2ea908e3a270d291dc261c918aca0ff421d17e63a509
7
+ data.tar.gz: d767a4b4eb29e04e7d3f0229a7b7f6cde165c2e8666fb25ac1a040bef5c134795204e6dfe7d1f41ca2dc284911427b9f7f5ec463eebb2a9a5798ea9addfd5087
data/README.md CHANGED
@@ -81,6 +81,16 @@ I'm just learning Sass, so the only thing in `_sass` directory is the pieces for
81
81
  * `stPath`: the path to your CSS, I recommend `/styles/`
82
82
 
83
83
  The `jekyll-paginate-v2` plugin is expected
84
+ * in the configuring of paginate, to handle multi-word tags and categories, use
85
+ ```
86
+ autopages:
87
+ categories:
88
+ slugify:
89
+ mode: pretty
90
+ tags:
91
+ slugify:
92
+ mode: pretty
93
+ ```
84
94
 
85
95
  ### These are OPTIONAL
86
96
  * `specialty`: used in `WebPage` Schema: "One of the domain specialities to which this web page's content applies."
@@ -94,6 +104,7 @@ The `jekyll-paginate-v2` plugin is expected
94
104
  * `keywords`: `keywords` for HTML metadata and Dublin Core, maybe later for one or another Schema (note that blogpost `tags` and `categories` are added to `keywords` for metadata purposes).
95
105
  * `subject`: similar but different from `keywords`. ([Dublin Core usage guide](http://www.dublincore.org/documents/2001/04/12/usageguide/sectb/#subject), [Dublin Core qualifer options](http://www.dublincore.org/documents/dcmes-qualifiers/#subject))
96
106
  * `creation-date`: [Dublin Core date qualifier options](http://www.dublincore.org/documents/dcmes-qualifiers/#date) (will be integrated into the schema metadata at some point.)
107
+ * `excss`: an EXtra CSS array for more .css files in the styles directory to include
97
108
 
98
109
  Read the comments in the `default.html` layout for more options.
99
110
 
@@ -30,6 +30,9 @@
30
30
  {% include catag.html list=post -%}
31
31
  </header>
32
32
  <span property="description">{{ post.excerpt }}</span>
33
+ {% if post.excerpt != post.content -%}
34
+ <a href="{{ post.url | relative_url }}">Read more</a>
35
+ {%- endif %}
33
36
  </article>
34
37
  {%- endfor -%}
35
38
  </section>
@@ -39,44 +42,29 @@
39
42
  -->
40
43
  {% if paginator.total_pages > 1 -%}
41
44
  <nav class="blog-pager">
42
- <ul>
43
-
44
45
  {% if paginator.previous_page -%}
45
46
  {% if paginator.first_page -%}
46
- <li class="previous">
47
- <a href="{{ paginator.first_page_path | prepend: site.baseurl | replace: '//', '/' }}">First</a>
48
- </li>
47
+ <a class="previous" href="{{ paginator.first_page_path | prepend: site.baseurl | replace: '//', '/' }}">First</a>
49
48
  {%- endif %}
50
- <li class="previous">
51
- <a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&larr; Newer Posts</a>
52
- </li>
49
+ <a class="previous" href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&larr; Newer Posts</a>
53
50
  {%- endif %}
54
51
 
55
52
  {% if paginator.page_trail -%}
56
53
  {% for trail in paginator.page_trail -%}
57
54
  {%- if page.url == trail.path %}
58
- <li class="selected">
59
- <a rel="self" title="{{trail.title}}">{{ trail.num }}</a>
55
+ <a rel="self" class="selected" title="{{trail.title}}">{{ trail.num }}</a>
60
56
  {%- else %}
61
- <li>
62
57
  <a href="{{ trail.path | prepend: site.baseurl | replace: '//', '/' }}" title="{{trail.title}}">{{ trail.num }}</a>
63
58
  {%- endif %}
64
- </li>
65
59
  {%- endfor -%}
66
60
  {%- endif %}
67
61
 
68
62
  {% if paginator.next_page -%}
69
- <li class="next">
70
- <a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Older Posts &rarr;</a>
71
- </li>
63
+ <a class="next" href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Older Posts &rarr;</a>
72
64
  {% if paginator.last_page -%}
73
- <li class="previous">
74
- <a href="{{ paginator.last_page_path | prepend: site.baseurl | replace: '//', '/' }}">Last</a>
75
- </li>
65
+ <a class="previous" href="{{ paginator.last_page_path | prepend: site.baseurl | replace: '//', '/' }}">Last</a>
76
66
  {%- endif %}
77
67
  {%- endif %}
78
-
79
- </ul>
80
68
  {%- endif %}
81
69
  </nav>
82
- <p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | relative_url }}">via RSS</a></p>
70
+ <p class="rss-subscribe"><img src="{{ "/feed-icon-28x28.png" | relative_url }}" alt=""> subscribe <a href="{{ "/feed.xml" | relative_url }}">via RSS</a></p>
data/_includes/catag.html CHANGED
@@ -3,13 +3,13 @@
3
3
  <div class="catag">
4
4
  {% for category in include.list.categories -%}
5
5
  {%- unless category=="blog" -%}
6
- <a class="categories" href="{{ site.blogPath }}categories/{{ category | slugify }}"
6
+ <a class="categories" href="{{ site.blogPath }}categories/{{ category | slugify: 'pretty' }}"
7
7
  title="List of posts in the '{{ category }}' category"
8
8
  property="articleSection" content="{{ category }}">{{ category }}</a>
9
9
  {% endunless -%}
10
10
  {% endfor -%}
11
11
  {% for tag in include.list.tags -%}
12
- <a class="tags" href="{{ site.blogPath }}tags/{{ tag | slugify }}"
12
+ <a class="tags" href="{{ site.blogPath }}tags/{{ tag | slugify: 'pretty' }}"
13
13
  title="List of posts with the '{{ tag }}' tag"
14
14
  property="keywords" content="{{ tag }}">{{ tag }}</a>
15
15
  {% endfor -%}
@@ -1,18 +1,20 @@
1
- <footer>
2
- <address property="author" typeof="Person">Contact <a href="mailto:{{ site.email }}" property="name" content="{{ site.author }}">{{ site.author }}</a></address>
3
- <p {% unless page.description %}property="description"{% endunless %}>{{ site.description }}</p>
4
- {% if javascriptON -%}
5
- <script src="{{ scPath }}vendor/modernizr-3.6.0.min.js"></script>
6
- <script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
7
- <script>window.jQuery || document.write('<script src="{{ scPath }}vendor/jquery-3.3.1.min.js"><\/script>')</script>
8
- <script src="{{ scPath }}plugins.js"></script>
9
- <script src="{{ scPath }}main.js"></script>
1
+ <div id="footer-box">
2
+ <footer id="page-footer">
3
+ <address property="author" typeof="Person">Contact <a href="mailto:{{ site.email }}" property="name" content="{{ site.author }}">{{ site.author }}</a></address>
4
+ <p {% unless page.description %}property="description"{% endunless %}>{{ site.description }}</p>
5
+ {% if javascriptON -%}
6
+ <script src="{{ scPath }}vendor/modernizr-3.6.0.min.js"></script>
7
+ <script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
8
+ <script>window.jQuery || document.write('<script src="{{ scPath }}vendor/jquery-3.3.1.min.js"><\/script>')</script>
9
+ <script src="{{ scPath }}plugins.js"></script>
10
+ <script src="{{ scPath }}main.js"></script>
10
11
  {%- endif -%}
11
12
  {% if site.google_analytics -%}
12
13
  <script>
13
14
  window.ga = function () { ga.q.push(arguments) }; ga.q = []; ga.l = +new Date;
14
- ga('create', '{{ site.google_analytics }}, 'auto'); ga('send', 'pageview')
15
+ ga('create', '{{ site.google_analytics }}', 'auto'); ga('send', 'pageview')
15
16
  </script>
16
17
  <script src="https://www.google-analytics.com/analytics.js" async defer></script>
17
18
  {%- endif -%}
18
- </footer>
19
+ </footer>
20
+ </div>
data/_includes/nav.html CHANGED
@@ -1,14 +1,11 @@
1
- {%- assign menuURLs = "/blog/|/about.html|/contact.html" | split: "|" -%}
2
- {%- assign menuAnchors = "Blog|About|Contact" | split: "|" -%}
3
- {%- assign menuTitles = "My blog about stuff.|About this here website.|Contact us." | split: "|" -%}
4
1
  <nav id="site-nav">
5
- {% for link in menuURLs -%}
6
- {% capture idx %}{{ link | append: "index.html" }}{% endcapture -%}
2
+ {% for link in site.data.site-nav -%}
3
+ {% capture idx %}{{ link.url | append: "index.html" }}{% endcapture -%}
7
4
  <a
8
- {%- if page.url==link %} class="nav-self"
9
- {%- elsif page.url contains link and page.url == idx %} class="nav-self"
5
+ {%- if page.url==link.url %} class="nav-self"
6
+ {%- elsif page.url contains link.url and page.url == idx %} class="nav-self"
10
7
  {%- else %}
11
- {%- if page.url contains link and page.url != link %} class="nav-sub"{% endif %} href="{{ link }}"
12
- {%- endif %} title="{{ menuTitles[forloop.index0] }}">{{ menuAnchors[forloop.index0] }}</a>
8
+ {%- if page.url contains link.url and page.url != link.url %} class="nav-sub"{% endif %} href="{{ link.url }}"
9
+ {%- endif %} title="{{ link.title }}">{{ link.anchor }}</a>
13
10
  {% endfor -%}
14
11
  </nav>
@@ -6,6 +6,7 @@ pagination:
6
6
  enabled: true
7
7
  ---
8
8
  <h1 property="name">AutoPage Category <b>{% if page.autopages %}{{page.autopage.display_name}}{% endif %}</b> Page {{page.pagination_info.curr_page}} of {{page.pagination_info.total_pages}}</h1>
9
+ <p class="auto-notice">This page is automagically created and paginated for each category available in the posts on this site</p>
9
10
  {{ content | markdownify }}
10
11
 
11
12
  {%- include blogList.html -%}
@@ -6,7 +6,7 @@ pagination:
6
6
  enabled: true
7
7
  ---
8
8
  <h1 property="title">AutoPage for Tag <b>{% if page.autopages %}{{page.autopages.display_name}}{% endif %}</b> Page {{page.pagination_info.curr_page}} of {{page.pagination_info.total_pages}}</h1>
9
- <p>This page is automagically created and paginated for each tag available in the posts on this site</p>
9
+ <p class="auto-notice">This page is automagically created and paginated for each tag available in the posts on this site</p>
10
10
  {{ content | markdownify }}
11
11
 
12
12
  {%- include blogList.html -%}
@@ -21,7 +21,7 @@
21
21
  ------------------------------------------------------------------ -->
22
22
  {%- endcomment %}
23
23
  <title property="dc:title">{{ preTitle }}{{ page.title }}{{ postTitle }}</title>
24
- <meta name="description" property="dc:description" content="{{ page.description | default: site.description }}">
24
+ <meta name="description" property="dc:description" content="{{ page.description | strip_html | default: site.description }}">
25
25
  {% if page.tags or page.categories or page.keywords -%}
26
26
  {%- assign nothing = "" | split: ", " %}
27
27
  {%- assign ptags = page.tags | default: nothing %}
@@ -64,6 +64,11 @@
64
64
  <link rel="stylesheet" href="{{ site.stPath }}HTML5BP-main.css">
65
65
  <link rel="stylesheet" href="{{ site.stPath }}structRDFaL.css">
66
66
  {% if page.isform -%}<link rel="stylesheet" href="{{ site.stPath }}form.css">{%- endif %}
67
+ {% if page.excss -%}
68
+ {%- for css in page.excss -%}
69
+ <link rel="stylesheet" href="{{ site.stPath }}{{css}}.css">
70
+ {% endfor -%}
71
+ {%- endif -%}
67
72
 
68
73
  <meta name="theme-color" content="#fafafa">
69
74
  </head>
@@ -105,13 +110,13 @@
105
110
  <!--[if lte IE 9]>
106
111
  <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
107
112
  <![endif]-->
113
+ {% include header.html -%}
108
114
  {%- if mainType %}
109
115
  <main tabindex="-1" id="main-thing" property="mainEntity" typeof="{{ mainType }}">
110
116
  {%- else %}
111
117
  <main tabindex="-1" id="main-thing">
112
- <h1 property="name">{{ page.title }}</h1>
118
+ <h1 id="page-title" property="name">{{ page.title }}</h1>
113
119
  {%- endif %}
114
- <a href="/" title="Home"><img id="top-corner-logo" src="/icon.png" alt="logo"></a>
115
120
  <!-- <p>default: pageType={{pageType}}, spt:{{site.pgtype}}, lpt:{{layout.pgtype}}<br />
116
121
  mainType={{mainType}}, smt:{{site.mntype}}, lmt:{{layout.mntype}}</p> -->
117
122
  {{ content }}
@@ -135,9 +135,4 @@ layout: post
135
135
  </li>
136
136
  </ul></dd> -->
137
137
  </dl>
138
- <!-- <p property="description">
139
- yatta yatta event
140
- </p> -->
141
- </section>
142
- </main>
143
138
  </section>
@@ -2,9 +2,11 @@
2
2
  <html class="no-js" lang="en" prefix="dc: http://purl.org/dc/terms/">
3
3
  <head profile="http://www.w3.org/2005/10/profile">
4
4
  <meta charset="utf-8">
5
- {% if site.title -%}
6
- {%- capture preTitle %}{{ site.title }} - {% endcapture -%}
7
- {% endif -%}
5
+ {% unless site.title == page.title -%}
6
+ {%- if site.title -%}
7
+ {%- capture preTitle %}{{ site.title }} - {% endcapture -%}
8
+ {%- endif -%}
9
+ {%- endunless %}
8
10
 
9
11
  <title property="dc:title">{{ preTitle }}{{ page.title }}</title>
10
12
  <meta name="description" property="dc:description" content="{{ page.description | default: site.description }}">
@@ -47,13 +49,13 @@
47
49
  <!--[if lte IE 9]>
48
50
  <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
49
51
  <![endif]-->
52
+ {% include header.html -%}
50
53
  {%- if page.mntype -%}
51
54
  <main tabindex="-1" id="main-thing" property="mainEntity" typeof="{{ page.mntype }}">
52
55
  {%- else -%}
53
56
  <main tabindex="-1" id="main-thing">
54
57
  <h1 property="name">{{ page.title }}</h1>
55
58
  {%- endif %}
56
- <img id="top-corner-logo" src="/icon.png" alt="logo" title="Home">
57
59
  {{ content }}
58
60
  </main>
59
61
  {% include nav.html -%}
Binary file
Binary file
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: structrdfal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carol Wang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-10 00:00:00.000000000 Z
11
+ date: 2022-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -114,6 +114,8 @@ files:
114
114
  - assets/contactform.html
115
115
  - assets/eventform.html
116
116
  - assets/favicon.ico
117
+ - assets/feed-icon-14x14.png
118
+ - assets/feed-icon-28x28.png
117
119
  - assets/humans.txt
118
120
  - assets/icon.png
119
121
  - assets/robots.txt
@@ -149,8 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
151
  - !ruby/object:Gem::Version
150
152
  version: '0'
151
153
  requirements: []
152
- rubyforge_project:
153
- rubygems_version: 2.7.6
154
+ rubygems_version: 3.0.3.1
154
155
  signing_key:
155
156
  specification_version: 4
156
157
  summary: Structured Data using RDFa Lite.