structrdfal 0.1.2 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -0
- data/_includes/blogList.html +9 -21
- data/_includes/catag.html +2 -2
- data/_includes/footer.html +13 -11
- data/_includes/nav.html +6 -9
- data/_layouts/autopage_category.html +1 -0
- data/_layouts/autopage_tags.html +1 -1
- data/_layouts/default.html +8 -3
- data/_layouts/eventpost.html +0 -5
- data/_layouts/sitehome.html +6 -4
- data/assets/feed-icon-14x14.png +0 -0
- data/assets/feed-icon-28x28.png +0 -0
- data/assets/scripts/.DS_Store +0 -0
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b3a2388895ec9d0eba3da5ea440fcda4b7ca863cb543117e6147bdbd73108e5
|
4
|
+
data.tar.gz: 0fc74d55322ae63ccbf1aed6f55c1e7568ba114689cd7fcef5e774cb667a2bcb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/_includes/blogList.html
CHANGED
@@ -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
|
-
<
|
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
|
-
<
|
51
|
-
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">← Newer Posts</a>
|
52
|
-
</li>
|
49
|
+
<a class="previous" href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">← 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
|
-
|
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
|
-
|
70
|
-
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Older Posts →</a>
|
71
|
-
</li>
|
63
|
+
<a class="next" href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Older Posts →</a>
|
72
64
|
{% if paginator.last_page -%}
|
73
|
-
|
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 -%}
|
data/_includes/footer.html
CHANGED
@@ -1,18 +1,20 @@
|
|
1
|
-
<footer>
|
2
|
-
<
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
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
|
-
|
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
|
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="{{
|
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 -%}
|
data/_layouts/autopage_tags.html
CHANGED
@@ -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 -%}
|
data/_layouts/default.html
CHANGED
@@ -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 }}
|
data/_layouts/eventpost.html
CHANGED
data/_layouts/sitehome.html
CHANGED
@@ -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
|
-
{%
|
6
|
-
{%-
|
7
|
-
|
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
|
data/assets/scripts/.DS_Store
CHANGED
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.
|
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:
|
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
|
-
|
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.
|