structrdfal 0.1.5 → 0.2.0
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 +4 -4
- data/README.md +14 -6
- data/_data/lang.yml +126 -0
- data/_data/site-nav.yml +15 -0
- data/_includes/blogList.html +7 -1
- data/_includes/book.html +89 -0
- data/_includes/catag.html +1 -0
- data/_includes/comment-form.html +43 -0
- data/_includes/comment-holiday-message.html +1 -0
- data/_includes/comment-section.html +7 -0
- data/_includes/comment.html +34 -0
- data/{_layouts → _includes}/event.html +39 -34
- data/_includes/footer.html +15 -6
- data/_includes/google-analytics.html +11 -0
- data/_includes/header.html +9 -0
- data/_includes/keywords.html +18 -0
- data/_includes/mailto-explainer.html +4 -0
- data/_includes/nav.html +3 -1
- data/_includes/page-nav.html +6 -0
- data/_includes/page-title.html +3 -0
- data/_includes/search.html +16 -0
- data/_includes/styleScriptPath.html +10 -0
- data/_layouts/autopage_category.html +2 -2
- data/_layouts/autopage_tags.html +1 -1
- data/_layouts/bloghome.html +3 -1
- data/_layouts/default.html +25 -19
- data/_layouts/eformContactPage.html +24 -0
- data/_layouts/eventFormPage.html +126 -0
- data/_layouts/eventpost.html +2 -135
- data/_layouts/post.html +33 -0
- data/_layouts/refresh.html +8 -0
- data/_layouts/review.html +314 -0
- data/_layouts/sitehome.html +20 -10
- data/_plugins/asset_filter.rb +9 -0
- data/_plugins/comments.rb +133 -0
- data/_plugins/hex_filter.rb +12 -0
- data/_sass/structrdfal.scss +444 -0
- data/assets/{styles → css}/form.css +15 -8
- data/assets/css/style.scss +6 -0
- data/lib/structrdfal-jekyll-plugins +1 -0
- data/lib/structrdfal-jekyll-plugins.rb +2 -0
- metadata +41 -47
- data/assets/styles/structRDFaL.css +0 -177
- /data/assets/{styles → css}/HTML5BP-main.css +0 -0
- /data/assets/{styles → css}/normalize.css +0 -0
data/_includes/nav.html
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
<!-- process the site navigation data expected from _data/site-nav.yml into links -->
|
2
|
+
<nav id="site-nav" class="menu">
|
2
3
|
{% for link in site.data.site-nav -%}
|
3
4
|
{% capture idx %}{{ link.url | append: "index.html" }}{% endcapture -%}
|
4
5
|
<a
|
@@ -8,4 +9,5 @@
|
|
8
9
|
{%- if page.url contains link.url and page.url != link.url %} class="nav-sub"{% endif %} href="{{ link.url }}"
|
9
10
|
{%- endif %} title="{{ link.title }}">{{ link.anchor }}</a>
|
10
11
|
{% endfor -%}
|
12
|
+
{% include search.html -%}
|
11
13
|
</nav>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<!-- add a site search box -->
|
2
|
+
{% if site.GoogleSearchCX -%}<noscript>{% endif %}
|
3
|
+
<search id="searchform">
|
4
|
+
<form action="https://google.com/search" method="get">
|
5
|
+
<input type="hidden" name="sitesearch" value="{{ site.url }}" />
|
6
|
+
<input type="search" title="site search powered by Google" aria-label="Search" name="q" placeholder="search"/>
|
7
|
+
<button type="submit">🔍</button>
|
8
|
+
</form>
|
9
|
+
</search>
|
10
|
+
{% if site.GoogleSearchCX -%}</noscript>
|
11
|
+
<search id="cse">
|
12
|
+
<script async src="https://cse.google.com/cse.js?cx={{ site.GoogleSearchCX }}:koloj_syovi">
|
13
|
+
</script>
|
14
|
+
<div class="gcse-search"></div>
|
15
|
+
</search>
|
16
|
+
{%- endif %}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<!-- default the css/style path to /assets/css/ and ditto the scripts -->
|
2
|
+
{%- assign stylePath = site.stPath -%}
|
3
|
+
{%- unless stylePath %}
|
4
|
+
{%- capture stylePath %}/assets/css/{% endcapture -%}
|
5
|
+
{%- endunless -%}
|
6
|
+
{%- assign scriptPath = site.scPath -%}
|
7
|
+
{%- unless scriptPath %}
|
8
|
+
{%- capture scriptPath %}/assets/scripts/{% endcapture -%}
|
9
|
+
{%- endunless -%}
|
10
|
+
|
@@ -6,7 +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
|
9
|
+
<p id="auto-notice">This page is automagically created and paginated for each category available in the posts on this site</p>
|
10
10
|
{{ content | markdownify }}
|
11
11
|
|
12
|
-
{%- include blogList.html -%}
|
12
|
+
{%- include blogList.html catname=page.autopage.display_name -%}
|
data/_layouts/autopage_tags.html
CHANGED
@@ -9,4 +9,4 @@ pagination:
|
|
9
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
|
-
{%- include blogList.html -%}
|
12
|
+
{%- include blogList.html tagname=page.autopage.display_name -%}
|
data/_layouts/bloghome.html
CHANGED
@@ -4,7 +4,9 @@ mntype: Blog
|
|
4
4
|
pagination:
|
5
5
|
enabled: true
|
6
6
|
---
|
7
|
-
|
7
|
+
<!-- h1 here is redundant, currently -->
|
8
|
+
<!-- <h1 property="name">{{ page.title }}</h1> -->
|
9
|
+
<!-- {% include page-title.html property="name" %} -->
|
8
10
|
{{ content }}
|
9
11
|
|
10
12
|
{%- include blogList.html -%}
|
data/_layouts/default.html
CHANGED
@@ -1,12 +1,14 @@
|
|
1
1
|
<!doctype html>
|
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
|
+
{% include google-analytics.html %}
|
4
5
|
<meta charset="utf-8">
|
5
6
|
{% if site.sitemark %}
|
6
7
|
{%- capture preTitle %}{{ site.sitemark }} - {% endcapture -%}
|
7
8
|
{%- else %}
|
8
9
|
{%- capture postTitle %} - {{ site.title }}{% endcapture -%}
|
9
10
|
{%- endif -%}
|
11
|
+
{%- include styleScriptPath.html -%}
|
10
12
|
|
11
13
|
{% comment -%}
|
12
14
|
<!-- -----------------------------------------------------------------
|
@@ -22,15 +24,7 @@
|
|
22
24
|
{%- endcomment %}
|
23
25
|
<title property="dc:title">{{ preTitle }}{{ page.title }}{{ postTitle }}</title>
|
24
26
|
<meta name="description" property="dc:description" content="{{ page.description | strip_html | default: site.description }}">
|
25
|
-
{%
|
26
|
-
{%- assign nothing = "" | split: ", " %}
|
27
|
-
{%- assign ptags = page.tags | default: nothing %}
|
28
|
-
{%- assign pcats = page.categories | default: nothing %}
|
29
|
-
{%- assign pkeys = page.keywords | default: nothing %}
|
30
|
-
{%- assign keys = ptags | concat: pcats | concat: pkeys | uniq | join: "," %}
|
31
|
-
{%- assign keys = keys | remove_first: "blog," | remove_first: ",blog" -%}
|
32
|
-
<meta name="keywords" property="dc:keywords" content="{{ keys }}" />
|
33
|
-
{%- endif -%}
|
27
|
+
{% include keywords.html -%}
|
34
28
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
35
29
|
|
36
30
|
{% if page.meta-creator or site.author -%}
|
@@ -50,7 +44,7 @@
|
|
50
44
|
{% if site.copynotice -%}
|
51
45
|
<meta property="dc:rights" content="{{ site.copynotice }}" />
|
52
46
|
{%- endif -%}
|
53
|
-
|
47
|
+
|
54
48
|
<link rel="manifest" href="site.webmanifest">
|
55
49
|
<link rel="apple-touch-icon" href="icon.png">
|
56
50
|
{%- comment -%}
|
@@ -60,13 +54,18 @@
|
|
60
54
|
{%- endcomment %}
|
61
55
|
<link rel="icon" href="{{ site.baseurl }}favicon.ico">
|
62
56
|
|
63
|
-
<link rel="stylesheet" href="{{
|
64
|
-
<link rel="stylesheet" href="{{
|
65
|
-
<link rel="stylesheet" href="{{
|
66
|
-
{% if page.isform -%}<link rel="stylesheet" href="{{
|
67
|
-
|
57
|
+
<link rel="stylesheet" href="{{ stylePath }}normalize.css">
|
58
|
+
<link rel="stylesheet" href="{{ stylePath }}HTML5BP-main.css">
|
59
|
+
<link rel="stylesheet" href="{{ stylePath }}style.css">
|
60
|
+
{% if page.isform -%}<link rel="stylesheet" href="{{ stylePath }}form.css">{%- endif %}
|
61
|
+
<!-- ------------------------------------------------------------------
|
62
|
+
a hook to add an EXtra CSS stylesheet for a special page, or
|
63
|
+
you can style the pages in entire subdirectories by specifying
|
64
|
+
the excss value via scoping a path in your _config.yml
|
65
|
+
------------------------------------------------------------------ -->
|
66
|
+
{% if page.excss -%}
|
68
67
|
{%- for css in page.excss -%}
|
69
|
-
<link rel="stylesheet" href="{{
|
68
|
+
<link rel="stylesheet" href="{{ stylePath }}{{css}}.css">
|
70
69
|
{% endfor -%}
|
71
70
|
{%- endif -%}
|
72
71
|
|
@@ -110,19 +109,26 @@
|
|
110
109
|
<!--[if lte IE 9]>
|
111
110
|
<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>
|
112
111
|
<![endif]-->
|
113
|
-
|
112
|
+
<nav id="nav-set">
|
113
|
+
{% include header.html -%}
|
114
|
+
{% include nav.html -%}
|
115
|
+
{% if page.page-nav %}{% include page-nav.html -%}{% endif -%}
|
116
|
+
</nav>
|
117
|
+
<div id="window">
|
114
118
|
{%- if mainType %}
|
115
119
|
<main tabindex="-1" id="main-thing" property="mainEntity" typeof="{{ mainType }}">
|
116
120
|
{%- else %}
|
117
121
|
<main tabindex="-1" id="main-thing">
|
118
|
-
|
122
|
+
<!-- <h1 style="font-size: clamp(1rem, calc(140vw/{{ page.title | size }}), 2rem);" -->
|
123
|
+
<!-- id="page-title">{{ page.title }}</h1> -->
|
119
124
|
{%- endif %}
|
125
|
+
{% include page-title.html property="name" %}
|
120
126
|
<!-- <p>default: pageType={{pageType}}, spt:{{site.pgtype}}, lpt:{{layout.pgtype}}<br />
|
121
127
|
mainType={{mainType}}, smt:{{site.mntype}}, lmt:{{layout.mntype}}</p> -->
|
122
128
|
{{ content }}
|
123
129
|
</main>
|
124
|
-
{% include nav.html -%}
|
125
130
|
{% include footer.html -%}
|
131
|
+
</div> <!-- window -->
|
126
132
|
{%- comment -%}
|
127
133
|
Since it is the <main> element that is scrolling, focus must be
|
128
134
|
moved from the overall document to the <main> element for the
|
@@ -0,0 +1,24 @@
|
|
1
|
+
---
|
2
|
+
pgtype: ContactPage
|
3
|
+
layout: default
|
4
|
+
---
|
5
|
+
<!-- since all of my sites use this contact form, I've put this here for my convenience -->
|
6
|
+
{%- include mailto-explainer.html -%}
|
7
|
+
|
8
|
+
<form action="mailto:{{ site.email }}?subject=Contact from {{ site.title | escape }}" method="post"
|
9
|
+
enctype="text/plain" onSubmit="alert('Thanks for your submission. Your mailer will now activate and the message will be manually processed.');">
|
10
|
+
|
11
|
+
<!-- if the following is filled in, you know it was a bot -->
|
12
|
+
<span style="display:none !important">
|
13
|
+
<label for="contact_me_by_fax_only">Contact me by fax only:</label>
|
14
|
+
<input type="checkbox" name="contact_me_by_fax_only" value="1" tabindex="-1" autocomplete="off">
|
15
|
+
</span>
|
16
|
+
|
17
|
+
<label for="name">Name:</label>
|
18
|
+
<input type="text" id="name" autofocus required name="Name" /><br />
|
19
|
+
<label for="msg">Message:</label>
|
20
|
+
<textarea id="msg" name="Message" required rows="15"></textarea><br />
|
21
|
+
|
22
|
+
<input type="reset" value="Reset" />
|
23
|
+
<input type="submit" value="Submit" />
|
24
|
+
</form>
|
@@ -0,0 +1,126 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
title: Submit an Event
|
4
|
+
isform: yes
|
5
|
+
---
|
6
|
+
<!-- optional things to be added?: eventAttendanceMode, eventStatus, performer -->
|
7
|
+
{%- include mailto-explainer.html -%}
|
8
|
+
|
9
|
+
<form action="mailto:{{ site.email }}?subject=New Event Submission from knot-conference" method="post"
|
10
|
+
enctype="text/plain" onSubmit="alert('Thanks for your submission. Your mailer will now activate and the message will be manually processed.');">
|
11
|
+
<input type="hidden" name="Each submission is processed by hand " value=" so please be patient. If you read the below and are confused, there are a few note fields here and there to remind the moderators about some things needed when converting from email to web page. While it will be human-edited, it is not really meant to be human-readable. Don't worry about it! ">
|
12
|
+
<!-- if the following is filled in, you know it was a bot -->
|
13
|
+
<span style="display:none !important">
|
14
|
+
<label for="contact_me_by_fax_only">Contact me by fax only:</label>
|
15
|
+
<input type="checkbox" name="contact_me_by_fax_only" value="1" tabindex="-1" autocomplete="off">
|
16
|
+
</span>
|
17
|
+
|
18
|
+
<label for="ev-type">Event Type</label>
|
19
|
+
<select id="ev-type" name="type" required>
|
20
|
+
<option value="">Please chose an event type</option>
|
21
|
+
<option value="ExhibitionEvent">Exhibition (at a museum, gallery, or the like)</option>
|
22
|
+
<option value="EducationEvent">Academic Conference (let's include guild AGMs here, too)</option>
|
23
|
+
<option value="Festival">Festival (jamboree, SCA, new year celebrations, etc</option>
|
24
|
+
<option value="BusinessEvent">Commercial Conference or craft show</option>
|
25
|
+
<option value="SocialEvent">Meetings (to which the public is invited or why bother mentioning it here, right?)</option>
|
26
|
+
</select><br />
|
27
|
+
|
28
|
+
<label for="ev-mode">Mode</label>
|
29
|
+
<select id="ev-mode" name="mode" required>
|
30
|
+
<option value="">Please chose an event mode</option>
|
31
|
+
<option value="OfflineEventAttendanceMode">In Person</option>
|
32
|
+
<option value="OnlineEventAttendanceMode">Online</option>
|
33
|
+
<option value="MixedEventAttendanceMode">Mixed in Person and Online</option>
|
34
|
+
</select><br />
|
35
|
+
|
36
|
+
<label for="ev-name">Name:</label>
|
37
|
+
<input type="text" id="ev-name" autofocus required
|
38
|
+
placeholder="Name of your Event" name="title" /><br />
|
39
|
+
|
40
|
+
<input type="hidden" name="descNote" value="|- use for multi-line descriptions, don't forget to indent">
|
41
|
+
<label for="ev-desc">Description:</label>
|
42
|
+
<textarea id="ev-desc" name="description"
|
43
|
+
placeholder="Description of your Event"></textarea><br />
|
44
|
+
|
45
|
+
<label for="ev-age">Intended Audience:</label>
|
46
|
+
<input type="text" id="ev-age" name="age"
|
47
|
+
placeholder="Recommended Age Range" list="ages"/>
|
48
|
+
<datalist id="ages">
|
49
|
+
<option>Type what you like, these are just suggestions</option>
|
50
|
+
<option>All Ages</option>
|
51
|
+
<option>Adults Only</option>
|
52
|
+
<option>Youth</option>
|
53
|
+
<option>8-12</option>
|
54
|
+
</datalist>
|
55
|
+
<br />
|
56
|
+
|
57
|
+
<label for="ev-url">Website:</label>
|
58
|
+
<input type="url" id="ev-url" name="website"
|
59
|
+
placeholder="https://my.event.website.net/"/><br />
|
60
|
+
|
61
|
+
<label for="ev-host">Host:</label>
|
62
|
+
<input type="text" id="ev-host" name="organizer" required
|
63
|
+
placeholder="Organization or person organizing the event" /><br />
|
64
|
+
|
65
|
+
<label for="ev-host-url">Host Web:</label>
|
66
|
+
<input type="text" id="ev-host-url" name="orgURL"
|
67
|
+
placeholder="https://my.event.organizer.org/" /><br />
|
68
|
+
|
69
|
+
<label for="ev-startdate">Date:</label>
|
70
|
+
<input type="date" id="ev-startdate" name="startdate" required />
|
71
|
+
-
|
72
|
+
<input type="date" id="ev-enddate" name="enddate" />
|
73
|
+
<small>(optional end date)</small><br />
|
74
|
+
|
75
|
+
<label for="ev-venue-url">Venue Web:</label>
|
76
|
+
<input type="text" id="ev-venue-url" name="venueURL"
|
77
|
+
placeholder="https://my.event.venue.com/" /><br />
|
78
|
+
|
79
|
+
<fieldset>
|
80
|
+
<legend>Location</legend>
|
81
|
+
<input type="hidden" name="venue" value="if they've included a venue name in the address">
|
82
|
+
<input type="hidden" name="addrNote" value="|- use for multi-line addresses, don't forget to indent">
|
83
|
+
<label for="ev-addr">Address:</label>
|
84
|
+
<textarea id="ev-addr" name="stAddress" required
|
85
|
+
placeholder="Venue 123 Address Street"></textarea><br />
|
86
|
+
<label for="ev-city">City:</label>
|
87
|
+
<input type="text" id="ev-city" name="locality" required /><br />
|
88
|
+
|
89
|
+
<label for="ev-prov">Province/State:</label>
|
90
|
+
<input type="text" id="ev-prov" name="region" required /><br />
|
91
|
+
|
92
|
+
<label for="ev-postal">Postal/Zip Code:</label>
|
93
|
+
<input type="text" id="ev-postal" name="postal" /><br />
|
94
|
+
|
95
|
+
<label for="ev-country">Country:</label>
|
96
|
+
<input type="text" id="ev-country" name="country" required /><br />
|
97
|
+
|
98
|
+
<label for="ev-mappic">Map Image:</label>
|
99
|
+
<input type="url" id="ev-mappic" name="mappic"
|
100
|
+
placeholder="https://link.to/map-picture.jpg"/><br />
|
101
|
+
<label for="ev-maplink">Map link:</label>
|
102
|
+
<input type="url" id="ev-maplink" name="maplink"
|
103
|
+
placeholder="https://link.to.map.com/"/><br />
|
104
|
+
</fieldset>
|
105
|
+
|
106
|
+
<input type="hidden" name="langNote" value="if multiple selected, then [l1,l2,...]">
|
107
|
+
<label for="ev-lang">Language(s):</label>
|
108
|
+
<select id= "ev-lang" multiple size="2"
|
109
|
+
title="To select more: CTL-click (Windows) or Command-click (Mac)"
|
110
|
+
name="language">
|
111
|
+
<option>Select Language</option>
|
112
|
+
{%- for lang in site.data.lang %}
|
113
|
+
<option value="{{ lang[0] }}">{{ lang[1] }}</option>
|
114
|
+
{%- endfor -%}
|
115
|
+
</select><br />
|
116
|
+
|
117
|
+
<label for="ev-price">Price/Fee:</label>
|
118
|
+
<textarea id="ev-price" name="offers"
|
119
|
+
placeholder="Free Adult/Child prices Cost before/after particular dates etc."></textarea><br />
|
120
|
+
<input type="hidden" name="currencyCode" value="JPY or whatever">
|
121
|
+
<input type="hidden" name="currency" value="¥ or the like">
|
122
|
+
|
123
|
+
<input type="reset" value="Reset" />
|
124
|
+
<input type="submit" value="Submit" />
|
125
|
+
</form>
|
126
|
+
<!-- -*- coding: utf-8; -*- -->
|
data/_layouts/eventpost.html
CHANGED
@@ -1,138 +1,5 @@
|
|
1
1
|
---
|
2
2
|
layout: post
|
3
|
+
#mntype: BlogPosting
|
3
4
|
---
|
4
|
-
{%
|
5
|
-
<!-- some debug stuff -->
|
6
|
-
<!-- event: spt:{{site.pgtype}}, lpt:{{layout.pgtype}}<br />
|
7
|
-
smt:{{site.mntype}}, lmt:{{layout.mntype}}<br />
|
8
|
-
evtype: let:{{layout.evtype}}, pet:{{page.evtype}}<br /> -->
|
9
|
-
{%- endcomment -%}
|
10
|
-
{%- if page.image %}<meta property="image" href="{{ page.image }}" /></a>{%- endif %}
|
11
|
-
|
12
|
-
<section property="mainEntity" typeof="{{ layout.evtype | default: page.evtype | default: 'Event' }}">
|
13
|
-
{%- if page.image %}
|
14
|
-
<a property="image" href="{{ page.image }}" title="bigger"><img src="{{ page.image }}" align="right" alt="" title="Poster for {{ page.title }}" style="max-width: 33%;" /></a>
|
15
|
-
{%- endif %}
|
16
|
-
{%- if page.description %}
|
17
|
-
{%- if page.age %}
|
18
|
-
{% capture ageStmt %} Recommended for <span property="typicalAgeRange">{{ page.age }}</span>.{% endcapture %}
|
19
|
-
{%- endif %}
|
20
|
-
<p property="description">{{ page.description | newline_to_br }}{{ ageStmt }}</p>
|
21
|
-
{%- endif %}
|
22
|
-
<!-- only if needed
|
23
|
-
<meta property="eventStatus" content="http://schema.org/EventRescheduled">
|
24
|
-
<meta property="eventStatus" content="http://schema.org/EventCancelled">
|
25
|
-
<meta property="eventStatus" content="http://schema.org/EventPostponed">
|
26
|
-
<span property="previousStartDate" content="2013-09-14T21:30">(previously scheduled for Sept 14th)</span>
|
27
|
-
-->
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
<dl>
|
32
|
-
{%- if page.website %}
|
33
|
-
<dt>Website</dt>
|
34
|
-
<dd><a property="url" href="{{ page.website }}" title="{{ page.title}}">{{ page.website }}</a></dd>
|
35
|
-
{%- endif %}
|
36
|
-
<dt>Host</dt>
|
37
|
-
{%- if page.orgURL %}
|
38
|
-
<dd property="organizer" typeof="Organization"><a property="url" title="{{ page.organizer }}" href="{{ page.orgURL }}"><span property="name">{{ page.organizer }}</span></a></dd>
|
39
|
-
{%- else %}
|
40
|
-
<dd property="organizer" typeof="Organization"><span property="name">{{ page.organizer }}</span></dd>
|
41
|
-
{%- endif %}
|
42
|
-
{%- if page.sponsor %}
|
43
|
-
<dt>Sponsor(s)</dt>
|
44
|
-
<dd>
|
45
|
-
<ul style="padding: 0; list-style: none;"
|
46
|
-
{%- assign sponsors = page.sponsor | split: ", " %}
|
47
|
-
{%- for spons in sponsors %}
|
48
|
-
<li property="sponsor" typeof="Organization"> <span property="name">{{ spons }}</span></li>
|
49
|
-
{%- endfor %}
|
50
|
-
</ul>
|
51
|
-
</dd>
|
52
|
-
{%- endif %}
|
53
|
-
|
54
|
-
<!-- if doing dates with times, need the date/time to be in ISO_8601 format
|
55
|
-
<dd property="startDate" content="2019-01-26T08:10:36-08:00">January 26, 2019 at 8:10am PST</dd>
|
56
|
-
-->
|
57
|
-
{%- if page.endDate -%}
|
58
|
-
<dt>Dates</dt>
|
59
|
-
{%- capture endday %} to <span property="endDate" content="{{ page.endDate }}">{{ page.endDate | date: "%b %d, %Y" }}</span>{%- endcapture -%}
|
60
|
-
{%- else %}
|
61
|
-
<dt>Date</dt>
|
62
|
-
{%- endif %}
|
63
|
-
<dd><span property="startDate" content="{{ page.startDate }}">{{ page.startDate | date: "%b %d, %Y" }}</span>{{ endday }}</dd>
|
64
|
-
<dt>Where</dt>
|
65
|
-
<dd property="location" typeof="Place">
|
66
|
-
{%- if page.venue -%}
|
67
|
-
{%- if page.venueURL %}
|
68
|
-
<span property="name" content="{{ page.venue }}"><a property="url" href="{{ page.venueURL }}">{{ page.venue }}</a></span>
|
69
|
-
{%- else %}
|
70
|
-
<span property="name">{{ page.venue }}</span>
|
71
|
-
{%- endif -%}
|
72
|
-
{%- endif %}
|
73
|
-
<div property="address" typeof="PostalAddress">
|
74
|
-
<span property="streetAddress">{{ page.stAddress | newline_to_br }}</span><br>
|
75
|
-
<span property="addressLocality">{{ page.locality }}</span>,
|
76
|
-
<span property="addressRegion">{{ page.region }}</span>,
|
77
|
-
{%- if page.postal %}
|
78
|
-
<span property="postalCode">{{ page.postal }}</span>,
|
79
|
-
{%- endif %}
|
80
|
-
<span property="addressCountry">{{ page.country }}</span>
|
81
|
-
</div>
|
82
|
-
{%- if page.mappic or page.maplink %}
|
83
|
-
<span property="hasMap">
|
84
|
-
{%- if page.mappic %}
|
85
|
-
<link itemprop="mapType" href="http://schema.org/VenueMap" />
|
86
|
-
<a property="map" href="{{ page.mappic }}">Map</a><br>
|
87
|
-
{%- endif %}
|
88
|
-
{%- if page.maplink %}
|
89
|
-
<a property="url" href="{{ page.maplink }}">click here for directions</a>
|
90
|
-
{%- endif %}
|
91
|
-
</span>
|
92
|
-
{%- endif %}
|
93
|
-
</dd>
|
94
|
-
{%- if page.langs %}
|
95
|
-
<dt>Language(s)</dt>
|
96
|
-
<dd property="inLanguage">
|
97
|
-
{%- assign languages = page.langs | split: ", " %}
|
98
|
-
{%- for lang in languages %}
|
99
|
-
{%- unless forloop.first == true %}, {% endunless -%}
|
100
|
-
<span property="name">{{ lang }}</span>
|
101
|
-
{%- endfor -%}
|
102
|
-
</dd>
|
103
|
-
{%- endif %}
|
104
|
-
{%- if page.offers %}
|
105
|
-
<dt>Price</dt>
|
106
|
-
<dd property="offers" typeof="http://schema.org/Offer">
|
107
|
-
<span property="price" content="{{ page.price }}">
|
108
|
-
{%- if page.currency %}
|
109
|
-
<span property="priceCurrency" content="{{ page.currencyCode }}">{{ page.currency }}</span>
|
110
|
-
{%- endif %}
|
111
|
-
{%- if page.price %}
|
112
|
-
{{ page.price }}
|
113
|
-
{%- else %}
|
114
|
-
{{ page.offers }}
|
115
|
-
{%- endif %}
|
116
|
-
</span>
|
117
|
-
</dd>
|
118
|
-
{%- endif %}
|
119
|
-
<!--
|
120
|
-
<dd><ul>
|
121
|
-
<li property="offers" typeof="http://schema.org/Offer">
|
122
|
-
<a property="url" href="example.com/registration.html" title="registration form">Register here</a>
|
123
|
-
<span property="validFrom" content="2015-10-01T00:01">Oct 1, 2015</span> –
|
124
|
-
<span property="validThrough" content="2016-01-31T23:59">Jan 31, 2016</span> –
|
125
|
-
<div class="event-price">
|
126
|
-
<meta property="priceCurrency" content="USD" />$
|
127
|
-
<meta property="price" content="13.00" />13.00
|
128
|
-
</div>
|
129
|
-
</li>
|
130
|
-
<li property="offers" typeof="http://schema.org/Offer">
|
131
|
-
<a property="url" href="example.com/registration.html" title="registration form">Register here</a>
|
132
|
-
<span property="validFrom" content="2016-02-01T00:01">Feb 1, 2016</span> –
|
133
|
-
<span property="validThrough" content="2016-06-14T23:59">June 14, 2016</span> –
|
134
|
-
<span property="priceCurrency" content="USD">$</span><span property="price" content="1000.00">1,000.00</span>
|
135
|
-
</li>
|
136
|
-
</ul></dd> -->
|
137
|
-
</dl>
|
138
|
-
</section>
|
5
|
+
{% include event.html -%}
|
data/_layouts/post.html
CHANGED
@@ -10,6 +10,7 @@ mntype: BlogPosting
|
|
10
10
|
<article class="post">
|
11
11
|
<header>
|
12
12
|
<h1 property="headline">{{ page.title }}</h1>
|
13
|
+
<!-- {% include page-title.html property="headline" %} -->
|
13
14
|
<time property="datePublished"
|
14
15
|
content="{{ page.date | date_to_xmlschema }}"
|
15
16
|
class="post-date">{{ page.date | date_to_string }}</time>
|
@@ -20,6 +21,26 @@ mntype: BlogPosting
|
|
20
21
|
<section property="articleBody">
|
21
22
|
{{ content }}
|
22
23
|
</section>
|
24
|
+
{% if page.commentary != "hide" -%}
|
25
|
+
{% if page.has-comments -%}
|
26
|
+
<section id="comments">
|
27
|
+
<h2>Comments</h2>
|
28
|
+
{% for cmnt in page.comments -%}
|
29
|
+
{% include comment.html info=cmnt %}
|
30
|
+
{% endfor -%}
|
31
|
+
{%- if site.commentary == "holiday" -%}
|
32
|
+
{% include comment-holiday-message.html %}
|
33
|
+
{%- endif %}
|
34
|
+
{%- endif %}
|
35
|
+
{%- unless page.commentary == "closed" -%}
|
36
|
+
{%- if site.commentary == "on" or page.commentary == "open" -%}
|
37
|
+
{% include comment-form.html pid=page.nid psubj=page.title %}
|
38
|
+
{%- endif -%}
|
39
|
+
{%- endunless %}
|
40
|
+
{% if page.has-comments -%}
|
41
|
+
</section>
|
42
|
+
{%- endif %}
|
43
|
+
{%- endif %}
|
23
44
|
</article>
|
24
45
|
<section class="related">
|
25
46
|
<h2>Related Posts</h2>
|
@@ -31,4 +52,16 @@ mntype: BlogPosting
|
|
31
52
|
</li>
|
32
53
|
{% endfor -%}
|
33
54
|
</ul>
|
55
|
+
<nav id="blog-prevnext" class="blog-pager">
|
56
|
+
{% if page.previous.url -%}
|
57
|
+
<a href="{{page.previous.url}}">← {{page.previous.title}}</a>
|
58
|
+
{%- else -%}
|
59
|
+
<span> </span>
|
60
|
+
{%- endif %}
|
61
|
+
{% if page.next.url -%}
|
62
|
+
<a href="{{page.next.url}}">{{page.next.title}} →</a>
|
63
|
+
{%- else -%}
|
64
|
+
<span> </span>
|
65
|
+
{%- endif %}
|
66
|
+
</nav>
|
34
67
|
</section>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
5
|
+
<meta http-equiv="refresh" content="0;url={{ page.refresh_to_post_id }}.html" />
|
6
|
+
<link rel="canonical" href="{{ page.refresh_to_post_id }}.html" />
|
7
|
+
</head>
|
8
|
+
</html>
|