structrdfal 0.1.2 → 0.1.3
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 +8 -20
- data/_includes/catag.html +2 -2
- data/_layouts/default.html +5 -0
- data/_layouts/sitehome.html +5 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9dc05082817aceae872a464e5f3d37e09879c0a35b1c19caece2efc316321189
|
4
|
+
data.tar.gz: 4811c5912a3a9d68a67b094bca10930ee7b72155699ff8c670f3ce62a7e98301
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10178e99e1bc6665de1de18cc5121162da4a063405e532e2cae1b566909251d7629bd98f31a6a14fa7840314646a1e8d0c6d17132444cb8110ecec5fea47917d
|
7
|
+
data.tar.gz: 3a231b68765b4eac2074755dacae9d4c24d62f2e16b72dbb8c81b6648cd40c7ea13e5446afa354aa04cd0199820e4ff39f3d599991f080bab571e19a2f3fe36e
|
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
70
|
<p class="rss-subscribe">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/_layouts/default.html
CHANGED
@@ -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>
|
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 }}">
|
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.3
|
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-
|
11
|
+
date: 2019-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|