tecitheme 0.11.12 → 0.11.14

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.
@@ -36,6 +36,8 @@
36
36
  <div class="inline-flex w-full max-w-xs shadow-sm">
37
37
  <a
38
38
  href={link.url}
39
+ rel={link.rel}
40
+ target={link.target}
39
41
  class="btn inline-flex w-full items-center px-5 py-3 text-base
40
42
  {getColorStyles('button', link.color)}"
41
43
  >{link.text}</a
@@ -66,7 +66,7 @@ import Button from './Button.svelte'
66
66
  </div>
67
67
  <div class="w-32">
68
68
  <Button
69
- url="https://www.thunderheadeng.com/subscribe"
69
+ url="https://www.thunderheadeng.com/subscribe/"
70
70
  text="Subscribe"
71
71
  color="teci"
72
72
  justify="right"
@@ -103,13 +103,13 @@ import Button from './Button.svelte'
103
103
  })}</time
104
104
  >
105
105
  <h2 class="mb-2 text-xl font-semibold text-gray-900">
106
- <a href={post.slug}>
106
+ <a href="{post.slug}/">
107
107
  {post.title}
108
108
  </a>
109
109
  </h2>
110
110
  {#if post.summary}
111
111
  <p class="mb-2 flex-1 text-base text-gray-500">
112
- <a href={post.slug}>
112
+ <a href="{post.slug}/">
113
113
  {post.summary.length > 190
114
114
  ? post.summary.substring(0, 190) + " ..."
115
115
  : post.summary}
@@ -125,7 +125,7 @@ import Button from './Button.svelte'
125
125
  {#each post.categories.sort() as term}
126
126
  <a
127
127
  class="mr-2 mb-2 inline-block"
128
- href="/news/filter/{term}"
128
+ href="/news/filter/{term}/"
129
129
  target="_self"
130
130
  >
131
131
  <span
@@ -139,7 +139,7 @@ import Button from './Button.svelte'
139
139
  <p
140
140
  class="text-sm font-semibold text-teci-blue-light hover:text-teci-blue-dark"
141
141
  >
142
- <a href={post.slug}>
142
+ <a href="{post.slug}/">
143
143
  Read full article<span aria-hidden="true">&nbsp;→</span>
144
144
  </a>
145
145
  </p>
@@ -175,7 +175,7 @@ import Button from './Button.svelte'
175
175
  <ul>
176
176
  {#each posts as post}
177
177
  <li>
178
- <a href={post.slug}>{post.title}</a>
178
+ <a href="{post.slug}/">{post.title}</a>
179
179
  </li>
180
180
  {/each}
181
181
  </ul>
package/dist/utils.js CHANGED
@@ -297,7 +297,8 @@ export function buildToC() {
297
297
  // Takes a string and transforms it to something usable as an anchor tag in HTML
298
298
  export function makeIdString(text) {
299
299
  if (text) {
300
- return encodeURIComponent(text).toLowerCase();
300
+ //Stripping question marks and replacing spaces with hyphens.
301
+ return encodeURIComponent(text).toLowerCase().replaceAll('%20','-',).replaceAll('%3f','');
301
302
  }
302
303
  return null; //Null because most of our components use a null id as a default
303
304
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tecitheme",
3
- "version": "0.11.12",
3
+ "version": "0.11.14",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "dev": "vite dev",