@xingwangzhe/stalux 1.25.3 → 1.25.5

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.
package/README.md CHANGED
@@ -126,7 +126,7 @@ stalux({
126
126
  stalux/
127
127
  ├── config/ # YAML configuration
128
128
  │ ├── site.yml # Site metadata
129
- │ ├── author.yml # Author info
129
+ │ ├── author.yml # Author info (name/avatar/bio/jobTitle)
130
130
  │ ├── navs.yml # Navigation menu
131
131
  │ ├── footer.yml # Footer badges & copyright
132
132
  │ ├── links.yml # Friend links
@@ -212,3 +212,17 @@ MIT License — see [LICENSE](./LICENSE).
212
212
 
213
213
  [![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/xingwangzhe/stalux)
214
214
  [![Deploy with EdgeOne Pages](https://cdnstatic.tencentcs.com/edgeone/pages/deploy.svg)](https://edgeone.ai/pages/new?repository-url=https://github.com/xingwangzhe/stalux)
215
+
216
+ ### Author JSON-LD configuration
217
+
218
+ `stalux/config/author.yml` accepts the optional `jobTitle` field. When present, Stalux includes it in the homepage and article JSON-LD `Person` entity so agents can identify the author's role without changing the visual author card:
219
+
220
+ ```yaml title="stalux/config/author.yml"
221
+ id: author
222
+ name: xingwangzhe
223
+ avatar: /avatar.png
224
+ bio: Blog Theme Stalux
225
+ jobTitle: Software Engineer # Optional; emitted as JSON-LD Person.jobTitle
226
+ ```
227
+
228
+ This is a build-time metadata field. It does not create a contact endpoint or expose private information; only publish a role that is already intended to be public.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xingwangzhe/stalux",
3
- "version": "1.25.3",
3
+ "version": "1.25.5",
4
4
  "description": "A powerful, modern Astro blog theme — use as template or install as plugin",
5
5
  "keywords": [
6
6
  "astro",
@@ -76,7 +76,7 @@ const contentTitle =
76
76
  : effectiveTitle;
77
77
  const resolvedNoindex = Boolean(siteConfig.noindex) || isNotFoundPage || Boolean(props.noindex);
78
78
  const resolvedNofollow = Boolean(siteConfig.nofollow) || isNotFoundPage;
79
- const staluxVersion = "1.25.3";
79
+ const staluxVersion = "1.25.5";
80
80
 
81
81
  const openGraphConfig: Record<string, unknown> = {
82
82
  basic: {
@@ -46,24 +46,14 @@ import { getSiteData, getAuthorData, getHeadData, getNavsData, getLinksData, get
46
46
 
47
47
  <style>
48
48
  .agent-home-summary {
49
- max-width: 52rem;
50
- margin: 1rem auto 0;
51
- padding: 0 1rem;
52
- text-align: left;
53
- }
54
-
55
- .agent-home-summary h2 {
56
- font-size: 1.25rem;
57
- margin: 0 0 0.5rem;
58
- }
59
-
60
- .agent-home-summary p {
61
- line-height: 1.7;
62
- margin: 0;
63
- }
64
-
65
- .agent-home-summary a {
66
- color: inherit;
67
- text-decoration: underline;
49
+ position: absolute;
50
+ width: 1px;
51
+ height: 1px;
52
+ padding: 0;
53
+ margin: -1px;
54
+ overflow: hidden;
55
+ clip: rect(0, 0, 0, 0);
56
+ white-space: normal;
57
+ border: 0;
68
58
  }
69
59
  </style>