Embedding Widget Integration
Embedding Widget Integration
This site uses the embedding visualization widget from the embedding-visualization repository.
Files used in tus-ist-nlp.github.io
_includes/embedding-hero-widget.htmlassets/widgets/embedding-hero-widget.cssassets/widgets/embedding-hero-widget.jsassets/widgets/data/en_wiki2vec.jsonassets/widgets/data/ja_wiki2vec.json
_includes/embedding-hero-widget.html is managed in this tus-ist-nlp.github.io repository.
Activation on a page
Set front matter on a layout: top page:
layout: top
page_css:
- /assets/widgets/embedding-hero-widget.css
page_js:
- path: /assets/widgets/embedding-hero-widget.js
module: true
Widget language is detected from page.lang.
Widget height is fixed at 200px by default.
Placement
The widget is mounted in _layouts/top.html and appears directly below the navigation bar on top pages.