@ohm-js/wasm 0.1.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.
@@ -0,0 +1,257 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ {% assign year = page.started | date: '%Y' %}
5
+ {% assign tags = page.tags | join: '' %}
6
+ {% assign categories = page.categories | join: '' %}
7
+
8
+ {% if page._styles %}
9
+ <!-- Page/Post style -->
10
+ <style type="text/css">
11
+ {{ page._styles }}
12
+ </style>
13
+ {% endif %}
14
+
15
+ <div class="post">
16
+ <header class="post-header">
17
+ <h1 class="post-title">{{ page.title }}</h1>
18
+ {% if page.author or page.released %}
19
+ <p class="post-meta">
20
+ {% if page.author %}
21
+ {{ page.author }}
22
+ {% endif %}
23
+ {% if page.author and page.released %} &nbsp;&middot;&nbsp; {% endif %}
24
+ {% if page.released %}
25
+ {{ page.released }}
26
+ {% endif %}
27
+ </p>
28
+ {% endif %}
29
+
30
+ {% if page.started or page.finished or page.stars %}
31
+ <p class="post-meta">
32
+ {% if page.started %}
33
+ <i class="fa-solid fa-play fa-sm" style="color: var(--global-tip-block) !important"></i> <em>{{ page.started }}</em>
34
+ {% endif %}
35
+ {% if page.finished %}
36
+ {% if page.started %}
37
+ &nbsp;&middot;&nbsp;
38
+ {% endif %}
39
+ <i class="fa-solid fa-stop fa-sm" style="color: #e56565 !important"></i> <em>{{ page.finished }}</em>
40
+ {% endif %}
41
+ {% if page.stars %}
42
+ {% if page.started or page.finished %}
43
+ &nbsp;&middot;&nbsp;
44
+ {% endif %}
45
+ {% if page.goodreads_review %}
46
+ <a target="_blank" href="https://www.goodreads.com/review/show/{{ page.goodreads_review }}"><i class="fa-brands fa-goodreads-g"></i>
47
+ {% endif %}
48
+ {% assign full_stars = page.stars | floor %}
49
+ {% assign half_star = page.stars | minus: full_stars %}
50
+ {% assign empty_stars = 5 | minus: full_stars %}
51
+ {% if half_star > 0 %}
52
+ {% assign empty_stars = empty_stars | minus: 1 %}
53
+ {% endif %}
54
+ {% for i in (1..full_stars) -%}
55
+ <i class="fa-solid fa-star fa-sm"></i>
56
+ {%- endfor -%}
57
+ {%- if half_star > 0 %}<i class="fa-solid fa-star-half-stroke fa-sm"></i>{% endif -%}
58
+ {%- for i in (1..empty_stars) -%}
59
+ <i class="fa-regular fa-star fa-sm"></i>
60
+ {%- endfor -%}
61
+ {% if page.goodreads_review %}
62
+ </a>
63
+ {% endif %}
64
+ {% endif %}
65
+ {% if page.buy_link %}
66
+ {% if page.started or page.finished or page.stars %}
67
+ &nbsp;&middot;&nbsp;
68
+ {% endif %}
69
+ <a target="_blank" href="{{ page.buy_link }}"
70
+ ><i class="fa-solid fa-cart-shopping"></i>
71
+ {% assign is_amazon_link = page.buy_link | slice: 0, 19 %}
72
+ {% if is_amazon_link == 'https://www.amazon.' %}
73
+ <i class="fa-brands fa-amazon"></i>
74
+ {% endif %}
75
+ </a>
76
+ {% endif %}
77
+ </p>
78
+ {% endif %}
79
+ <p class="post-tags">
80
+ <a href="{{ year | prepend: '/books/' | relative_url }}"> <i class="fa-solid fa-calendar fa-sm"></i> {{ year }}</a>
81
+ {% if tags != '' %}
82
+ &nbsp;&middot;&nbsp;
83
+ {% for tag in page.tags %}
84
+ <a href="{{ tag | slugify | prepend: '/books/tag/' | relative_url }}"> <i class="fa-solid fa-hashtag fa-sm"></i> {{ tag }}</a>
85
+ {% unless forloop.last %}
86
+ &nbsp;
87
+ {% endunless %}
88
+ {% endfor %}
89
+ {% endif %}
90
+
91
+ {% if categories != '' %}
92
+ &nbsp;&middot;&nbsp;
93
+ {% for category in page.categories %}
94
+ <a href="{{ category | slugify | prepend: '/books/category/' | relative_url }}"> <i class="fa-solid fa-tag fa-sm"></i> {{ category }}</a>
95
+ {% unless forloop.last %}
96
+ &nbsp;
97
+ {% endunless %}
98
+ {% endfor %}
99
+ {% endif %}
100
+ </p>
101
+ <hr>
102
+ </header>
103
+
104
+ <article>
105
+ {% if content == '' %}
106
+ <figure class="empty-review">
107
+ {% if page.cover %}
108
+ <img class="empty-review-cover" alt="{{ page.title }} cover" src="{{ site.baseurl }}/{{ page.cover }}">
109
+ <figcaption class="empty-review-caption">
110
+ Cover of <em>{{ page.title }}</em>
111
+ </figcaption>
112
+ {% elsif page.olid %}
113
+ <img class="empty-review-cover" alt="{{ page.title }} cover" src="http://covers.openlibrary.org/b/olid/{{ page.olid }}-L.jpg?default=false">
114
+ <figcaption class="empty-review-caption">
115
+ Cover of <em>{{ page.title }}</em> on the <a href="https://openlibrary.org/olid/{{ page.olid }}">Open Library</a>.
116
+ </figcaption>
117
+ {% elsif page.isbn %}
118
+ <img class="empty-review-cover" alt="{{ page.title }} cover" src="http://covers.openlibrary.org/b/isbn/{{ page.isbn }}-L.jpg?default=false">
119
+ <figcaption class="empty-review-caption">
120
+ Cover of <em>{{ page.title }}</em> on the <a href="https://openlibrary.org/isbn/{{ page.isbn }}">Open Library</a>.
121
+ </figcaption>
122
+ {% endif %}
123
+ </figure>
124
+ {% assign status = page.status | upcase %}
125
+ <div class="clearfix">
126
+ <h4>{{ status }}</h4>
127
+ </div>
128
+ {% else %}
129
+ <figure>
130
+ {% if page.cover %}
131
+ <img alt="{{ page.title }} cover" src="{{ site.baseurl }}/{{ page.cover }}">
132
+ <figcaption>
133
+ Cover of <em>{{ page.title }}</em>
134
+ </figcaption>
135
+ {% elsif page.olid %}
136
+ <img alt="{{ page.title }} cover" src="http://covers.openlibrary.org/b/olid/{{ page.olid }}-L.jpg?default=false">
137
+ <figcaption>
138
+ Cover of <em>{{ page.title }}</em> on the <a href="https://openlibrary.org/olid/{{ page.olid }}">Open Library</a>.
139
+ </figcaption>
140
+ {% elsif page.isbn %}
141
+ <img alt="{{ page.title }} cover" src="http://covers.openlibrary.org/b/isbn/{{ page.isbn }}-L.jpg?default=false">
142
+ <figcaption>
143
+ Cover of <em>{{ page.title }}</em> on the <a href="https://openlibrary.org/isbn/{{ page.isbn }}">Open Library</a>.
144
+ </figcaption>
145
+ {% endif %}
146
+ </figure>
147
+ <br class="mobile-break" clear="right">
148
+ <h4>
149
+ {% if page.start %} Start Date: {{ page.start | date: '%-d %B %Y' }}. {% endif %}
150
+ {% if page.end %} End Date: {{ page.end | date: '%-d %B %Y' }}. {% endif %}
151
+ </h4>
152
+ {{ content }}
153
+ {% endif %}
154
+ </article>
155
+
156
+ {% if site.giscus and page.giscus_comments %}
157
+ {% include giscus.liquid %}
158
+ {% endif %}
159
+ </div>
160
+
161
+ <style>
162
+ figure {
163
+ float: none;
164
+ width: auto;
165
+ display: block;
166
+ margin-right: auto;
167
+ margin-left: auto;
168
+
169
+ }
170
+ figure > img {
171
+
172
+ vertical-align: top;
173
+ display: block;
174
+ margin-right: 0px;
175
+ margin-left: 0px;
176
+ padding: 0px;
177
+
178
+ }
179
+ figure figcaption {
180
+
181
+ display: block;
182
+ caption-side: bottom;
183
+ text-align: center;
184
+ }
185
+
186
+ @media screen and (min-width: 600px) {
187
+
188
+ .empty-review{
189
+ float: left;
190
+ display: block; /* in-line block; */
191
+ margin: 0px 0px 0px 0px; /* adjust as needed */
192
+ padding: 0px 0px 0px 20px;
193
+ /* top right bottom left */
194
+ }
195
+
196
+ .empty-review-caption {
197
+ caption-side: left;
198
+ text-align: left;
199
+
200
+
201
+ }
202
+
203
+ .empty-review-cover {
204
+ width:250px;
205
+ vertical-align: top;
206
+ padding-right: 40px;
207
+ }
208
+
209
+ figure {
210
+
211
+ float: right;
212
+ display: in-line block; /* in-line block; */
213
+ margin: 0px 0px 0px 0px; /* adjust as needed */
214
+ padding: 0px 0px 0px 20px;
215
+ /* top right bottom left */
216
+ }
217
+
218
+ figure img {
219
+ width:300px;
220
+ vertical-align: top;
221
+
222
+ }
223
+
224
+ figure figcaption {
225
+ caption-side: bottom;
226
+ text-align: left;
227
+
228
+ }
229
+
230
+ .mobile-break { display: none; }
231
+
232
+ /* =Blockquote
233
+ -------------------------------------------------------------- */
234
+ blockquote {
235
+
236
+ position: relative;
237
+ marign: 0px;
238
+ display: table;
239
+
240
+ }
241
+ blockquote:before, blockquote:after {
242
+
243
+ /* properties to format the block quotes /*
244
+
245
+ }
246
+ blockquote:before {
247
+ top: 0;
248
+ left: 0;
249
+
250
+
251
+ }
252
+ blockquote:after {
253
+ top: 0;
254
+ right: 0;
255
+
256
+ }
257
+ </style>