Repository navigation
fix(site): give every page a description for link previews - #445
Merged
Merged
Conversation
Pages without a description of their own (all the synced docs) all
previewed with the site's tagline, 'Next generation C++ tooling', so a
shared link said nothing about its page. A page now takes its home hero
('text. tagline') or its first paragraph of prose, markdown off, clipped
to about 200 characters (110 in Chinese) at a sentence or a word.
The portal page's description names the four projects; a project home
previews as 'clice | clice.io' rather than 'clice.io', and the portal no
longer as 'clice.io | clice.io'.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After #444 a shared docs.clice.io link previewed as one line: every page without a description of its own (all the synced docs) carried the site's tagline, "Next generation C++ tooling".
.vitepress/excerpt.ts: a page without a frontmatterdescriptiontakes its home hero (text. tagline) or its first paragraph of prose (no heading, list, table, quote, fence, container, HTML or image), markdown off, clipped to ~200 characters (110 for Chinese) at a sentence or a word; a paragraph that leads into a list ends with "…". It feeds<meta name="description">andog:description.en/index.md,zh/index.md, the site's own) gets a description naming the four projects, worded after the latest posts and clice's 1.0 README.og:title: a project home is "clice | clice.io" (its hero name) instead of "clice.io"; the portal is "clice.io", not "clice.io | clice.io".Checked: all 183 built pages have a description, each different;
npm run buildpasses.