@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 +15 -1
- package/package.json +1 -1
- package/src/components/stalux/layout/head.astro +1 -1
- package/src/pages/index.astro +9 -19
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
|
[](https://vercel.com/new/clone?repository-url=https://github.com/xingwangzhe/stalux)
|
|
214
214
|
[](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
|
@@ -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.
|
|
79
|
+
const staluxVersion = "1.25.5";
|
|
80
80
|
|
|
81
81
|
const openGraphConfig: Record<string, unknown> = {
|
|
82
82
|
basic: {
|
package/src/pages/index.astro
CHANGED
|
@@ -46,24 +46,14 @@ import { getSiteData, getAuthorData, getHeadData, getNavsData, getLinksData, get
|
|
|
46
46
|
|
|
47
47
|
<style>
|
|
48
48
|
.agent-home-summary {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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>
|