structrdfal 0.1.2 → 0.1.3

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: 9dc05082817aceae872a464e5f3d37e09879c0a35b1c19caece2efc316321189
4
+ data.tar.gz: 4811c5912a3a9d68a67b094bca10930ee7b72155699ff8c670f3ce62a7e98301
5
5
  SHA512:
6
- metadata.gz: f79f73576a96d118c832294d6d7e9ecf96d5a1e6df6471cfb354366d7e02fe4661dff05b26032a021186dfcce4d06c2afba7db90dd3c27cb73f3649c29416ae6
7
- data.tar.gz: ef6d9effd7a7f6462329db269c65741c427f8579199163edcfaf006860282d4cfaea14dfbc51bb289e4bccccf4f3d2bd463fc900efc41a707de5773fb2076cd1
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
 
@@ -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
70
  <p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | relative_url }}">via RSS</a></p>
@@ -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 -%}
@@ -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>
@@ -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 }}">
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.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-03-10 00:00:00.000000000 Z
11
+ date: 2019-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll