structrdfal 0.1.4 → 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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3cce232c53378268a67bfa9a88ace9c9fe62c7f8c442f6944c416c6060c3b18
|
4
|
+
data.tar.gz: 5c0605f367126ac2e5f3665cc93d0d8b6a450c662b573596f65b7ed3eb39d90e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b1e1793c3ee0f0ff3440c425fabbef7923eb9ad37ff0f9db63f876453f1e50226743cdb62194189e397d1d7ead906613441be8189cb4836505cf39823bf5e19
|
7
|
+
data.tar.gz: 377dc97748a6e6a5586c21a72329bf3f55b75db120a5e92b913da45c6f8a2f277ce1c50c2581b1428349375b1008ae518e12162488f12a50788aa904b181e73b
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
[](https://jekyllrb.com/)
|
4
4
|
[](https://badge.fury.io/rb/structrdfal)
|
5
5
|
|
6
|
-
This Jekyll theme ([live demo](http://struct.arghc.ca/)) provides structured data markup in the form of [RDFa Lite](https://www.w3.org/TR/rdfa-lite/) for maximum human readability and smaller files (less repetition than [JSON-LD](https://json-ld.org/), [microdata](https://www.w3.org/TR/microdata/), or full [RDFa](https://rdfa.info/). Additionally, for best practices purposes it is based on [HTML5 Boilerplate](https://html5boilerplate.com/) (v7.0.1), hence some additional directories (styles, scripts, html5-boilerplate-docs, .colophon) and files (.editorconfig, .htaccess, 404.html, site.webmanifest, robots.txt, humans.txt, browserconfig.xml).
|
6
|
+
This responsive Jekyll theme ([live demo](http://struct.arghc.ca/)) provides structured data markup in the form of [RDFa Lite](https://www.w3.org/TR/rdfa-lite/) for maximum human readability and smaller files (less repetition than [JSON-LD](https://json-ld.org/), [microdata](https://www.w3.org/TR/microdata/), or full [RDFa](https://rdfa.info/). Additionally, for best practices purposes it is based on [HTML5 Boilerplate](https://html5boilerplate.com/) (v7.0.1), hence some additional directories (styles, scripts, html5-boilerplate-docs, .colophon) and files (.editorconfig, .htaccess, 404.html, site.webmanifest, robots.txt, humans.txt, browserconfig.xml).
|
7
7
|
|
8
8
|
The favicon.ico, icon.png, tile.png, and tile-wide.png files are images provided by HTML5 Boilerplate and left as-is so that you can get an idea for the sizes involved. They should, of course, be replaced ASAP with images appropriate to YOUR site.
|
9
9
|
|
@@ -11,7 +11,6 @@ The structured data [schemas](https://schema.org/) currently implemented are Web
|
|
11
11
|
|
12
12
|
In future, I plan to
|
13
13
|
- implement schemas: Review, Book, HowTo, and CollectionPage (ImageGallery).
|
14
|
-
- integrate responsiveness
|
15
14
|
- better (actually) utilize SASS.
|
16
15
|
- implement breadcrumbs
|
17
16
|
|
@@ -61,7 +60,14 @@ Or install it yourself as:
|
|
61
60
|
* `catag.html` where the list of linked categories and tags are generated
|
62
61
|
* `catag-old.html` before autopages, a single page list of categories, and another for tags were generated. These links go there.
|
63
62
|
* `footer.html` contact info for you, javascript library inclusion, google analytics
|
64
|
-
* `nav.html` site navigation included on each page.
|
63
|
+
* `nav.html` site navigation included on each page. The current page link is disabled for proper usability. This fragment is populated from _data
|
64
|
+
|
65
|
+
### `_data`
|
66
|
+
* `site-nav.yml` list the information for the links in your site navigation
|
67
|
+
|
68
|
+
- url: /blog/
|
69
|
+
anchor: Blog
|
70
|
+
title: My blog about stuff.
|
65
71
|
|
66
72
|
### `assets`
|
67
73
|
Everything in the assets directory should be moved out to the root directory of your site where they are EXPECTED (.colophon is optional and just for your information). The images are there mostly for your sizing reference when you create your own. Obviously, customize away, nothing needs to remain as-is.
|
@@ -71,14 +77,14 @@ There is only a slight (real) difference between HTML5 Boilerplate's `404.html`
|
|
71
77
|
Actually, `eventform.html` and `contactform.html` are forms that I use on my sites to capture data from the public, feel free to mod and use if you're incorporating Events or don't have any other contact type plans. Also tag.html and category.html are used in conjunction with catag-old.html
|
72
78
|
|
73
79
|
### `_sass`
|
74
|
-
I'm just learning Sass, so the only thing in `_sass` directory is the pieces for `normalize-scss`, read about it in the `.colophon`
|
80
|
+
I'm just learning Sass, so the only thing in `_sass` directory is the basic site style and pieces for `normalize-scss`, read about it in the `.colophon`
|
75
81
|
|
76
82
|
### `_config.yml`
|
77
83
|
* `title`/`sitemark`: Page titles will be created from either "sitemark - page.title" or "page.title - site.title", so config `sitemark` if so desired.
|
78
84
|
* `email`: is used in several places with nothing to prevent spammers from scraping it, you have been warned.
|
79
85
|
* `author`: is used in multiple places in the metadata.
|
80
|
-
* `scPath`: the path to your (java)scripts, I recommend `/scripts/`
|
81
|
-
* `stPath`: the path to your CSS, I recommend `/styles/`
|
86
|
+
* `scPath`: the path to your (java)scripts, I recommend `/scripts/` (defaults to /assets/scripts/)
|
87
|
+
* `stPath`: the path to your CSS, I recommend `/styles/` (defaults to /assets/css/)
|
82
88
|
|
83
89
|
The `jekyll-paginate-v2` plugin is expected
|
84
90
|
* in the configuring of paginate, to handle multi-word tags and categories, use
|
@@ -95,6 +101,8 @@ autopages:
|
|
95
101
|
### These are OPTIONAL
|
96
102
|
* `specialty`: used in `WebPage` Schema: "One of the domain specialities to which this web page's content applies."
|
97
103
|
* `google_analytics`: your Google Analytics code
|
104
|
+
* `GoogleSearchCX`: your Google Custom Search code
|
105
|
+
|
98
106
|
* `javascriptON`: set if you want the HTML5 Boilerplate JS recommended libraries (`main.js`, `plugins.js`, `jquery-3.3.1.min.js`, `modernizr-3.6.0.min.js`) included at the bottom of *each* page
|
99
107
|
* `copynotice`: something like "Copyright Acme 1999 - All rights reserved." or a link to creative commons pages is fine. ([Dublin Core usage guide](http://www.dublincore.org/documents/2001/04/12/usageguide/sectc/#rights), [Dublin Core example code](http://www.dublincore.org/documents/2001/04/12/usageguide/simple-html/#rights)). Currently only used in metadata, I'll get around to putting it in the footer at some point.
|
100
108
|
|
data/_data/lang.yml
ADDED
@@ -0,0 +1,126 @@
|
|
1
|
+
#--------------------------------------------------------------------#
|
2
|
+
# language list modified from
|
3
|
+
# https://www.html-code-generator.com/html/drop-down/languages-name
|
4
|
+
# longer list here
|
5
|
+
# https://gist.github.com/tayvano/8bac189b40b1457455b26e210d36e18a
|
6
|
+
#--------------------------------------------------------------------#
|
7
|
+
# This is for emacs
|
8
|
+
# -*- coding: utf-8; -*-
|
9
|
+
#--------------------------------------------------------------------#
|
10
|
+
af: Afrikaans
|
11
|
+
sq: shqip - Albanian
|
12
|
+
am: አማርኛ - Amharic
|
13
|
+
ar: العربية - Arabic
|
14
|
+
an: aragonés - Aragonese
|
15
|
+
hy: հայերեն - Armenian
|
16
|
+
ast: asturianu - Asturian
|
17
|
+
az: azərbaycan dili - Azerbaijani
|
18
|
+
eu: euskara - Basque
|
19
|
+
be: беларуская - Belarusian
|
20
|
+
bn: বাংলা - Bengali
|
21
|
+
bs: bosanski - Bosnian
|
22
|
+
br: brezhoneg - Breton
|
23
|
+
bg: български - Bulgarian
|
24
|
+
ca: català - Catalan
|
25
|
+
ckb: کوردی (دەستنوسی عەرەبی) - Central Kurdish
|
26
|
+
zh: 中文 - Chinese
|
27
|
+
co: Corsican
|
28
|
+
hr: hrvatski - Croatian
|
29
|
+
cs: čeština - Czech
|
30
|
+
da: dansk - Danish
|
31
|
+
nl: Nederlands - Dutch
|
32
|
+
en: English
|
33
|
+
eo: esperanto - Esperanto
|
34
|
+
et: eesti - Estonian
|
35
|
+
fo: føroyskt - Faroese
|
36
|
+
fil: Filipino
|
37
|
+
fi: suomi - Finnish
|
38
|
+
fr: français - French
|
39
|
+
gl: galego - Galician
|
40
|
+
ka: ქართული - Georgian
|
41
|
+
de: Deutsch - German
|
42
|
+
el: Ελληνικά - Greek
|
43
|
+
gn: Guarani
|
44
|
+
gu: ગુજરાતી - Gujarati
|
45
|
+
ha: Hausa
|
46
|
+
haw: ʻŌlelo Hawaiʻi - Hawaiian
|
47
|
+
he: עברית - Hebrew
|
48
|
+
hi: हिन्दी - Hindi
|
49
|
+
hu: magyar - Hungarian
|
50
|
+
is: íslenska - Icelandic
|
51
|
+
id: Indonesia - Indonesian
|
52
|
+
ia: Interlingua
|
53
|
+
ga: Gaeilge - Irish
|
54
|
+
it: italiano - Italian
|
55
|
+
ja: 日本語 - Japanese
|
56
|
+
kn: ಕನ್ನಡ - Kannada
|
57
|
+
kk: қазақ тілі - Kazakh
|
58
|
+
km: ខ្មែរ - Khmer
|
59
|
+
ko: 한국어 - Korean
|
60
|
+
ku: Kurdî - Kurdish
|
61
|
+
ky: кыргызча - Kyrgyz
|
62
|
+
lo: ລາວ - Lao
|
63
|
+
la: Latin
|
64
|
+
lv: latviešu - Latvian
|
65
|
+
ln: lingála - Lingala
|
66
|
+
lt: lietuvių - Lithuanian
|
67
|
+
mk: македонски - Macedonian
|
68
|
+
ms: Bahasa Melayu - Malay
|
69
|
+
ml: മലയാളം - Malayalam
|
70
|
+
mt: Malti - Maltese
|
71
|
+
mr: मराठी - Marathi
|
72
|
+
mn: монгол - Mongolian
|
73
|
+
ne: नेपाली - Nepali
|
74
|
+
no: norsk - Norwegian
|
75
|
+
nb: norsk bokmål - Norwegian Bokmål
|
76
|
+
nn: nynorsk - Norwegian Nynorsk
|
77
|
+
oc: Occitan
|
78
|
+
or: ଓଡ଼ିଆ - Oriya
|
79
|
+
om: Oromoo - Oromo
|
80
|
+
ps: پښتو - Pashto
|
81
|
+
fa: فارسی - Persian
|
82
|
+
pl: polski - Polish
|
83
|
+
pt: português - Portuguese
|
84
|
+
pa: ਪੰਜਾਬੀ - Punjabi
|
85
|
+
qu: Quechua
|
86
|
+
ro: română - Romanian
|
87
|
+
mo: română (Moldova) - Romanian (Moldova)
|
88
|
+
rm: rumantsch - Romansh
|
89
|
+
ru: русский - Russian
|
90
|
+
gd: Scottish Gaelic
|
91
|
+
sr: српски - Serbian
|
92
|
+
sh: Croatian - Serbo
|
93
|
+
sn: chiShona - Shona
|
94
|
+
sd: Sindhi
|
95
|
+
si: සිංහල - Sinhala
|
96
|
+
sk: slovenčina - Slovak
|
97
|
+
sl: slovenščina - Slovenian
|
98
|
+
so: Soomaali - Somali
|
99
|
+
st: Southern Sotho
|
100
|
+
es: español - Spanish
|
101
|
+
su: Sundanese
|
102
|
+
sw: Kiswahili - Swahili
|
103
|
+
sv: svenska - Swedish
|
104
|
+
tl: Tagalog - tl
|
105
|
+
tg: тоҷикӣ - Tajik
|
106
|
+
ta: தமிழ் - Tamil
|
107
|
+
tt: Tatar
|
108
|
+
te: తెలుగు - Telugu
|
109
|
+
th: ไทย - Thai
|
110
|
+
ti: ትግርኛ - Tigrinya
|
111
|
+
to: lea fakatonga - Tongan
|
112
|
+
tr: Türkçe - Turkish
|
113
|
+
tk: Turkmen
|
114
|
+
tw: Twi
|
115
|
+
uk: українська - Ukrainian
|
116
|
+
ur: اردو - Urdu
|
117
|
+
ug: Uyghur
|
118
|
+
uz: o‘zbek - Uzbek
|
119
|
+
vi: Tiếng Việt - Vietnamese
|
120
|
+
wa: wa - Walloon
|
121
|
+
cy: Cymraeg - Welsh
|
122
|
+
fy: Western Frisian
|
123
|
+
xh: Xhosa
|
124
|
+
yi: Yiddish
|
125
|
+
yo: Èdè Yorùbá - Yoruba
|
126
|
+
zu: isiZulu - Zulu
|
data/_data/site-nav.yml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
- url: /blog/
|
2
|
+
anchor: Blog
|
3
|
+
title: My blog about stuff.
|
4
|
+
- url: /pageWnav.html
|
5
|
+
anchor: Page Nav Demo
|
6
|
+
title: Page navigation demonstration.
|
7
|
+
- url: /eventform.html
|
8
|
+
anchor: Event Form
|
9
|
+
title: Event Submission demonstration.
|
10
|
+
- url: /about.html
|
11
|
+
anchor: About
|
12
|
+
title: About this here website.
|
13
|
+
- url: /contact.html
|
14
|
+
anchor: Contact
|
15
|
+
title: Contact us.
|
data/_includes/blogList.html
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
<!-- list blog posts and provide navigation -->
|
1
2
|
{%- if layout.blog-list-title or page.blog-list-title -%}
|
2
3
|
{%- assign blTitle = layout.blog-list-title | default: page.blog-list-title -%}
|
3
4
|
{%- endif -%}
|
@@ -35,6 +36,12 @@
|
|
35
36
|
{%- endif %}
|
36
37
|
</article>
|
37
38
|
{%- endfor -%}
|
39
|
+
{% if include.tagname -%}
|
40
|
+
<p class="rss-subscribe"><a href="/feed/tag/{{ include.tagname | slugify: 'pretty' }}.xml"><img src="{{ "/feed-icon-28x28.png" | relative_url }}" alt=""> Subscribe to the {{ include.tagname }} tag</a></p>
|
41
|
+
{%- elsif include.catname -%}
|
42
|
+
<p class="rss-subscribe"><a href="/feed/category/{{ include.catname | slugify: 'pretty' }}.xml"><img src="{{ "/feed-icon-28x28.png" | relative_url }}" alt=""> Subscribe to the {{ include.catname }} category</a></p>
|
43
|
+
{%- endif -%}
|
44
|
+
<p class="rss-subscribe"><a href="{{ "/feed.xml" | relative_url }}"><img src="{{ "/feed-icon-28x28.png" | relative_url }}" alt=""> Subscribe to this blog</a></p>
|
38
45
|
</section>
|
39
46
|
|
40
47
|
<!--
|
@@ -67,4 +74,3 @@
|
|
67
74
|
{%- endif %}
|
68
75
|
{%- endif %}
|
69
76
|
</nav>
|
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/book.html
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
{% comment -%}
|
2
|
+
include.title (property="name")
|
3
|
+
altTitle (property="alternativeHeadline", Text)
|
4
|
+
altTitleLang: (Language)
|
5
|
+
include.abridged (boolean)
|
6
|
+
include.edition (bookEdition, Text)
|
7
|
+
include.format (bookFormat)
|
8
|
+
bookFormatType:
|
9
|
+
AudiobookFormat
|
10
|
+
EBook
|
11
|
+
GraphicNovel
|
12
|
+
Hardcover
|
13
|
+
Paperback
|
14
|
+
include.illustrator (Person)
|
15
|
+
include.isbn (Text)
|
16
|
+
include.pages (numberOfPages, Integer)
|
17
|
+
include.author (Person)
|
18
|
+
include.publisher (Organization)
|
19
|
+
pubURL
|
20
|
+
include.pubdate (datePublished)
|
21
|
+
include.language (inLanguage Language)
|
22
|
+
include.transOf (translationOfWork, CreativeWork)
|
23
|
+
include.transURL
|
24
|
+
include.transLang (inLanguage Language)
|
25
|
+
include.transor (translator, Person)
|
26
|
+
include.isReview (Boolean)
|
27
|
+
include.affiliate (Boolean)
|
28
|
+
----------------------------------------------------------------------
|
29
|
+
book with review
|
30
|
+
|
31
|
+
<body vocab="https://schema.org/" typeof="WebPage">
|
32
|
+
...
|
33
|
+
<div property="breadcrumb">
|
34
|
+
<a href="category/books.html">Books</a> >
|
35
|
+
<a href="category/books-literature.html">Literature & Fiction</a> >
|
36
|
+
<a href="category/books-classics">Classics</a>
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<div property="mainEntity" typeof="Book">
|
40
|
+
|
41
|
+
<img property="image" src="catcher-in-the-rye-book-cover.jpg"
|
42
|
+
alt="cover art: red horse, city in background"/>
|
43
|
+
<span property="name">The Catcher in the Rye</span> -
|
44
|
+
<link property="bookFormat" href="https://schema.org/Paperback">Mass Market Paperback
|
45
|
+
by <a property="author" href="/author/jd_salinger.html">J.D. Salinger</a>
|
46
|
+
|
47
|
+
<div property="aggregateRating" typeof="AggregateRating">
|
48
|
+
<span property="ratingValue">4</span> stars -
|
49
|
+
<span property="reviewCount">3077</span> reviews
|
50
|
+
</div>
|
51
|
+
|
52
|
+
<div property="offers" typeof="Offer">
|
53
|
+
Price: $<span property="price">6.99</span>
|
54
|
+
<meta property="priceCurrency" content="USD" />
|
55
|
+
<link property="availability" href="https://schema.org/InStock">In Stock
|
56
|
+
</div>
|
57
|
+
|
58
|
+
Product details
|
59
|
+
<span property="numberOfPages">224</span> pages
|
60
|
+
Publisher: <span property="publisher">Little, Brown, and Company</span> -
|
61
|
+
<meta property="datePublished" content="1991-05-01">May 1, 1991
|
62
|
+
Language: <span property="inLanguage">English</span>
|
63
|
+
ISBN-10: <span property="isbn">0316769487</span>
|
64
|
+
|
65
|
+
Reviews:
|
66
|
+
|
67
|
+
<div property="review" typeof="Review">
|
68
|
+
<span property="reviewRating">5</span> stars -
|
69
|
+
<b>"<span property="name">A masterpiece of literature</span>"</b>
|
70
|
+
by <span property="author">John Doe</span>,
|
71
|
+
Written on <meta property="datePublished" content="2006-05-04">May 4, 2006
|
72
|
+
<span property="reviewBody">I really enjoyed this book. It captures the essential
|
73
|
+
challenge people face as they try make sense of their lives and grow to adulthood.</span>
|
74
|
+
</div>
|
75
|
+
|
76
|
+
<div property="review" typeof="Review">
|
77
|
+
<span property="reviewRating">4</span> stars -
|
78
|
+
<b>"<span property="name">A good read.</span>" </b>
|
79
|
+
by <span property="author">Bob Smith</span>,
|
80
|
+
Written on <meta property="datePublished" content="2006-06-15">June 15, 2006
|
81
|
+
<span property="reviewBody">Catcher in the Rye is a fun book. It's a good book to read.</span>
|
82
|
+
</div>
|
83
|
+
|
84
|
+
</div>
|
85
|
+
...
|
86
|
+
</body>
|
87
|
+
----------------------------------------------------------------------
|
88
|
+
|
89
|
+
{%- endcomment -%}
|
data/_includes/catag.html
CHANGED
@@ -0,0 +1,43 @@
|
|
1
|
+
<!-- a basic form for collecting static comments via email that can be added to any page -->
|
2
|
+
<form action="mailto:{{ site.email }}?subject='Comment on {{ include.psubj | escape }}'" method="post"
|
3
|
+
enctype="text/plain" onSubmit="alert('Thanks for your submission. Your mailer will now activate and the message will be manually processed.');">
|
4
|
+
<h3>Post a New Comment</h3>
|
5
|
+
<label for="poster_name">Name:</label>
|
6
|
+
<input type="text" id="poster_name" autofocus required name="poster_name" /><br />
|
7
|
+
<label for="comment-title">Subject:</label>
|
8
|
+
<input type="text" id="comment-title" name="title" /><br />
|
9
|
+
<label for="msg">Comment:</label>
|
10
|
+
<textarea id="msg" name="comment" required rows="4"></textarea><br />
|
11
|
+
|
12
|
+
<span style="display:none !important">
|
13
|
+
<label for="notworry">.</label>
|
14
|
+
<input type="text" id="notworry" name=" Note" value=" ---- The following is for moderator use only, please ignore. 8-) ---- ">
|
15
|
+
<label for="">pid:</label>
|
16
|
+
{%- if include.pid -%}
|
17
|
+
<input type="text" id="pid" name="pid" value="{{ include.pid }}" /><br />
|
18
|
+
{%- else -%}
|
19
|
+
{%- capture postID %}{{ 'now' | date: '%s' | dec2base62 }}{% endcapture -%}
|
20
|
+
<label for="warning">.</label>
|
21
|
+
<input type="text" id="warning" name=" WARNING" value=" There is no post ID on this post, add this to the post front matter "nid: {{ postID }}"">
|
22
|
+
<input type="text" id="pid" name="pid" value="{{ postID }}" /><br />
|
23
|
+
{%- endif -%}
|
24
|
+
<label for="posteremail">poster_email:</label>
|
25
|
+
<input type="text" id="posteremail" name="poster_email" value="your email address will NOT be posted" /><br />
|
26
|
+
<label for="createdreminder">created:</label>
|
27
|
+
<input type="text" id="createdreminder" name="created" value="{{ 'now' | date: '%s' }}" />
|
28
|
+
<label for="commentID">created:</label>
|
29
|
+
<input type="text" id="commentID" name="nid" value="{{ 'now' | date: '%s' | dec2base62 }}" />
|
30
|
+
<label for="fax">Contact me by fax only:</label>
|
31
|
+
<input type="checkbox" id="fax" name="contact_me_by_fax_only" value="1" tabindex="-1" autocomplete="off" />
|
32
|
+
</span>
|
33
|
+
<input type="reset" value="Reset" />
|
34
|
+
<input type="submit" value="Submit" />
|
35
|
+
|
36
|
+
<span id="helpnote">
|
37
|
+
<span id="helpmark">?</span>
|
38
|
+
<div id="helpmsg">
|
39
|
+
<p><strong>Note:</strong> for security reasons, a <strong><tt>mailto</tt></strong> link is being used. If configured on your end, this is the safest way for both parties. This activates <em>your</em> mailer to send the data entered. <a href="https://www.chainsawonatireswing.com/2015/05/03/a-guide-to-getting-webmail-services-to-work-with-mailto-links/">See here</a> or <a href="https://www.chainsawonatireswing.com/2015/05/03/a-guide-to-getting-webmail-services-to-work-with-mailto-links/">here</a> for why that might not work and what to do about it.</p>
|
40
|
+
<noscript><p><strong>You don't appear to have Javascript enabled</strong>. On this page, the only Javascript used is to indicate when the form has been submitted. If your browser and mail are configured to allow <tt>mailto</tt> links to work, then a mail composition window popping up will be your indication that everything is working. If you are <strong>not</strong> configured for <tt>mailto</tt> <strong>and</strong> your Javascript is disabled, you will see... nothing. There will be no way to tell if something else is wrong or if you just missed actually clicking on the <tt>Submit</tt> button. Sorry.</p></noscript>
|
41
|
+
</div>
|
42
|
+
</span>
|
43
|
+
</form>
|
@@ -0,0 +1 @@
|
|
1
|
+
<p id="holidaynote">We are currently not accepting new comments due to reasons. This functionality will be resumed ... someday.</p>
|
@@ -0,0 +1,34 @@
|
|
1
|
+
<!-- each comment in a little box -->
|
2
|
+
{%- comment %} ------------------------------------------------------
|
3
|
+
data from importing from drupal, plus my addition of Node ID and
|
4
|
+
Post ID. I created these by base 62 of the Unix epoch dates
|
5
|
+
(created), but they can be anything you like. Whatever numbers or
|
6
|
+
strings you want to use to match up your posts to comments.
|
7
|
+
|
8
|
+
data: {
|
9
|
+
"comment_num"=>11
|
10
|
+
"post_num"=>21
|
11
|
+
"title"=>"Comment Title"
|
12
|
+
"poster_ip"=>"nnn.nnn.nnn.nnn"
|
13
|
+
"poster_name"=>"Name of Comment Author"
|
14
|
+
"poster_email"=>"author@example.com"
|
15
|
+
"poster_url"=>"http://example.com"
|
16
|
+
"created"=>1233943168
|
17
|
+
"nid"=>"ID token for the comment"
|
18
|
+
"post_subject"=>"Title of post being commented on"
|
19
|
+
"comment_date"=>"2009.02.06 . 17:59"
|
20
|
+
"pid"=>"ID token for the post being commented on"
|
21
|
+
}
|
22
|
+
------------------------------------------------------ {%- endcomment -%}
|
23
|
+
<article property="comment" typeof="Comment">
|
24
|
+
<header>
|
25
|
+
<h3 property="headline">{{ include.info.title}}</h3>
|
26
|
+
<time datetime="{{ include.info.created | date_to_xmlschema }}" property="dateCreated">{{ include.info.created | date: '%A %B %d %t %Y' }}</time>
|
27
|
+
</header>
|
28
|
+
<div property="text">
|
29
|
+
{{ include.info.content }}
|
30
|
+
</div>
|
31
|
+
<footer property="author" typeof="Person">
|
32
|
+
<span property="name">{{ include.info.poster_name }}</span>
|
33
|
+
</footer>
|
34
|
+
</article>
|
@@ -1,36 +1,34 @@
|
|
1
|
-
---
|
2
|
-
layout: default
|
3
|
-
---
|
4
1
|
{% comment -%}
|
5
2
|
<!-- some debug stuff -->
|
6
3
|
<!-- event: spt:{{site.pgtype}}, lpt:{{layout.pgtype}}<br />
|
7
4
|
smt:{{site.mntype}}, lmt:{{layout.mntype}}<br />
|
8
5
|
evtype: let:{{layout.evtype}}, pet:{{page.evtype}}<br /> -->
|
9
6
|
{%- endcomment -%}
|
7
|
+
{%- assign evType = site.data.schema.eventType -%}
|
10
8
|
{%- if page.image %}<meta property="image" href="{{ page.image }}" /></a>{%- endif %}
|
11
|
-
|
12
|
-
<section property="mainEntity" typeof="{{
|
9
|
+
{%- assign eventType = layout.type | default: page.type | default: 'Event' -%}
|
10
|
+
<section property="mainEntity" typeof="{{ eventType }}">
|
11
|
+
<meta property="name" content="{{ page.title }}" />
|
13
12
|
{%- if page.image %}
|
14
13
|
<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
14
|
{%- endif %}
|
16
|
-
{%- if page.
|
17
|
-
{
|
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>
|
15
|
+
{%- if page.content %}
|
16
|
+
<p property="description">{{ page.content | newline_to_br }}</p>
|
21
17
|
{%- endif %}
|
22
|
-
|
23
|
-
|
24
18
|
<!-- only if needed
|
25
19
|
<meta property="eventStatus" content="http://schema.org/EventRescheduled">
|
20
|
+
<meta property="eventStatus" content="http://schema.org/EventMovedOnline">
|
26
21
|
<meta property="eventStatus" content="http://schema.org/EventCancelled">
|
27
22
|
<meta property="eventStatus" content="http://schema.org/EventPostponed">
|
28
23
|
<span property="previousStartDate" content="2013-09-14T21:30">(previously scheduled for Sept 14th)</span>
|
29
24
|
-->
|
30
|
-
|
31
|
-
|
32
|
-
|
25
|
+
{%- if page.age %}
|
26
|
+
{% capture ageStmt %} Recommended for <span property="typicalAgeRange">{{ page.age }}</span>.{% endcapture %}
|
27
|
+
<p>{{ ageStmt }}</p>
|
28
|
+
{%- endif %}
|
33
29
|
<dl>
|
30
|
+
<dt>Event Type</dt>
|
31
|
+
<dd>{{ evType[eventType] }}</dd>
|
34
32
|
{%- if page.website %}
|
35
33
|
<dt>Website</dt>
|
36
34
|
<dd><a property="url" href="{{ page.website }}" title="{{ page.title}}">{{ page.website }}</a></dd>
|
@@ -56,13 +54,13 @@ layout: default
|
|
56
54
|
<!-- if doing dates with times, need the date/time to be in ISO_8601 format
|
57
55
|
<dd property="startDate" content="2019-01-26T08:10:36-08:00">January 26, 2019 at 8:10am PST</dd>
|
58
56
|
-->
|
59
|
-
{%- if page.
|
57
|
+
{%- if page.enddate -%}
|
60
58
|
<dt>Dates</dt>
|
61
|
-
{%- capture endday %} to <span property="endDate" content="{{ page.
|
59
|
+
{%- capture endday %} to <span property="endDate" content="{{ page.enddate }}">{{ page.enddate | date: "%b %d, %Y" }}</span>{%- endcapture -%}
|
62
60
|
{%- else %}
|
63
61
|
<dt>Date</dt>
|
64
62
|
{%- endif %}
|
65
|
-
<dd><span property="startDate" content="{{ page.
|
63
|
+
<dd><span property="startDate" content="{{ page.startdate }}">{{ page.startdate | date: "%b %d, %Y" }}</span>{{ endday }}</dd>
|
66
64
|
<dt>Where</dt>
|
67
65
|
<dd property="location" typeof="Place">
|
68
66
|
{%- if page.venue -%}
|
@@ -82,9 +80,9 @@ layout: default
|
|
82
80
|
<span property="addressCountry">{{ page.country }}</span>
|
83
81
|
</div>
|
84
82
|
{%- if page.mappic or page.maplink %}
|
85
|
-
<span property="hasMap">
|
83
|
+
<span property="hasMap" typeof="Map">
|
86
84
|
{%- if page.mappic %}
|
87
|
-
<link itemprop="mapType" href="
|
85
|
+
<link itemprop="mapType" href="https://schema.org/VenueMap" />
|
88
86
|
<a property="map" href="{{ page.mappic }}">Map</a><br>
|
89
87
|
{%- endif %}
|
90
88
|
{%- if page.maplink %}
|
@@ -93,15 +91,23 @@ layout: default
|
|
93
91
|
</span>
|
94
92
|
{%- endif %}
|
95
93
|
</dd>
|
96
|
-
{%- if page.
|
97
|
-
|
98
|
-
<dd property="
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
94
|
+
{%- if page.mode %}
|
95
|
+
<dt>Attendance Mode</dt>
|
96
|
+
<dd property="eventAttendanceMode" content="{{ page.mode }}">{{ site.data.schema.eventMode[page.mode] }}</dd>
|
97
|
+
{%- endif %}
|
98
|
+
{%- if page.language -%}
|
99
|
+
<dt>Language
|
100
|
+
{%- if page.language.first -%}
|
101
|
+
s</dt><dd>
|
102
|
+
{%- for l in page.language %}
|
103
|
+
<span property="inLanguage" content="{{ l }}">{{ site.data.lang[l] }}</span>
|
104
|
+
{%- unless l == page.language.last %}, {% endunless -%}
|
105
|
+
{%- endfor -%}
|
106
|
+
</dd>
|
107
|
+
{%- else -%}
|
108
|
+
</dt><dd>
|
109
|
+
<span property="inLanguage" content="{{ page.language }}">{{ site.data.lang[page.language] }}</span></dd>
|
110
|
+
{%- endif -%}
|
105
111
|
{%- endif %}
|
106
112
|
{%- if page.offers %}
|
107
113
|
<dt>Price</dt>
|
@@ -137,9 +143,8 @@ layout: default
|
|
137
143
|
</li>
|
138
144
|
</ul></dd> -->
|
139
145
|
</dl>
|
140
|
-
<!-- <p property="description">
|
141
|
-
yatta yatta event
|
142
|
-
</p> -->
|
143
|
-
</section>
|
144
|
-
</main>
|
145
146
|
</section>
|
147
|
+
{% comment -%}
|
148
|
+
{%- if embedin == "post" %}{% include post-post.html %}
|
149
|
+
{%- elsif embedin == "page" %}{% include page-post.html %}{% endif -%}
|
150
|
+
{%- endcomment -%}
|
data/_includes/footer.html
CHANGED
@@ -1,13 +1,22 @@
|
|
1
|
-
|
1
|
+
<!-- site signature as it were, javascript stuff from HTML5 Boilerplate, google analytics -->
|
2
|
+
<!-- <div id="footer-box"> -->
|
2
3
|
<footer id="page-footer">
|
3
4
|
<address property="author" typeof="Person">Contact <a href="mailto:{{ site.email }}" property="name" content="{{ site.author }}">{{ site.author }}</a></address>
|
4
5
|
<p {% unless page.description %}property="description"{% endunless %}>{{ site.description }}</p>
|
6
|
+
{% if page.creation-date -%}
|
7
|
+
<span property="dateCreated" typeof="Date"
|
8
|
+
content="{{ page.creation-date | date_to_xmlschema }}"><strong>Created:</strong> {{ page.creation-date | date_to_rfc822 }} </span>
|
9
|
+
{%- endif -%}
|
10
|
+
{% if page.Time-stamp -%}
|
11
|
+
<span property="dateModified" typeof="Date"
|
12
|
+
content="{{ page.Time-stamp | date_to_xmlschema}}"><strong>Modified:</strong> {{ page.Time-stamp | date_to_rfc822 }}</span>
|
13
|
+
{%- endif -%}
|
5
14
|
{% if javascriptON -%}
|
6
|
-
<script src="{{
|
15
|
+
<script src="{{ scriptPath }}vendor/modernizr-3.6.0.min.js"></script>
|
7
16
|
<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="{{
|
9
|
-
<script src="{{
|
10
|
-
<script src="{{
|
17
|
+
<script>window.jQuery || document.write('<script src="{{ scriptPath }}vendor/jquery-3.3.1.min.js"><\/script>')</script>
|
18
|
+
<script src="{{ scriptPath }}plugins.js"></script>
|
19
|
+
<script src="{{ scriptPath }}main.js"></script>
|
11
20
|
{%- endif -%}
|
12
21
|
{% if site.google_analytics -%}
|
13
22
|
<script>
|
@@ -17,4 +26,4 @@
|
|
17
26
|
<script src="https://www.google-analytics.com/analytics.js" async defer></script>
|
18
27
|
{%- endif -%}
|
19
28
|
</footer>
|
20
|
-
</div>
|
29
|
+
<!-- </div> -->
|
@@ -0,0 +1,11 @@
|
|
1
|
+
{% if site.google_analytics -%}
|
2
|
+
<!-- Google tag (gtag.js) -->
|
3
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
|
4
|
+
<script>
|
5
|
+
window.dataLayer = window.dataLayer || [];
|
6
|
+
function gtag(){dataLayer.push(arguments);}
|
7
|
+
gtag('js', new Date());
|
8
|
+
|
9
|
+
gtag('config', '{{ site.google_analytics }}');
|
10
|
+
</script>
|
11
|
+
{%- endif -%}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<nav id="logo-nav">
|
2
|
+
<a id="home-logo-link" href="/" title="Home"><img id="top-corner-logo" srcset="/favicon-32x32.png 32w, /icon.png 160w, /icon.png 160w"
|
3
|
+
sizes="(max-width: 40em) 2.25em,
|
4
|
+
(max-height: 30rlh) 2.25em,
|
5
|
+
9.5rem"
|
6
|
+
src="/favicon-32x32.png"
|
7
|
+
alt="Logo" /></a>
|
8
|
+
</nav>
|
9
|
+
<!-- <h1 style="font-size: clamp(1rem, calc(140vw/{{ site.title | size }}), 2rem);" id="title-bar">{{ site.title }}</h1> -->
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<!-- processing tags, categories, and keywords for header metadata -->
|
2
|
+
{% if page.tags or page.categories or page.keywords -%}
|
3
|
+
{%- assign nothing = "" | split: ',' %}
|
4
|
+
{%- assign ptags = page.tags | default: nothing | split: ',' %}
|
5
|
+
{%- assign pcats = page.categories | default: nothing | split: ',' %}
|
6
|
+
{%- assign pkeys = page.keywords | default: nothing | split: ',' %}
|
7
|
+
{%- assign keyarray = ptags | concat: pcats | concat: pkeys | uniq %}
|
8
|
+
|
9
|
+
{%- assign strippedkeys = '' | split: '' %}
|
10
|
+
{%- for key in keyarray -%}
|
11
|
+
{% assign skey = key | strip %}
|
12
|
+
{% assign strippedkeys = strippedkeys | push: skey %}
|
13
|
+
{% endfor -%}
|
14
|
+
{%- assign keys = strippedkeys | join: ", " %}
|
15
|
+
{%- assign keys = keys | remove_first: "blog, " | remove_first: ", blog" -%}
|
16
|
+
{%- assign keys = keys | remove_first: "[], " | remove_first: ", []" -%}
|
17
|
+
<meta name="keywords" property="dc:keywords" content="{{ keys }}" />
|
18
|
+
{% endif -%}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
<!-- explaining why mailto is being used to collect data on this site -->
|
2
|
+
<p><strong>Note:</strong> for security reasons, a <strong><tt>mailto</tt></strong> link is being used. If configured on your end, this is the safest way for both parties. This activates <em>your</em> mailer to send the data entered. <a href="https://www.chainsawonatireswing.com/2015/05/03/a-guide-to-getting-webmail-services-to-work-with-mailto-links/">See here</a> or <a href="https://www.chainsawonatireswing.com/2015/05/03/a-guide-to-getting-webmail-services-to-work-with-mailto-links/">here</a> for why that might not work and what to do about it.</p>
|
3
|
+
<noscript><p><strong>You don't appear to have Javascript enabled</strong>. On this page, the only Javascript used is to indicate when the form has been submitted. If your browser and mail are configured to allow <tt>mailto</tt> links to work, then a mail composition window popping up will be your indication that everything is working. If you are <strong>not</strong> configured for <tt>mailto</tt> <strong>and</strong> your Javascript is disabled, you will see... nothing. There will be no way to tell if something else is wrong or if you just missed actually clicking on the <tt>Submit</tt> button. Sorry.</p></noscript>
|
4
|
+
|