quartz/layouts/partials/graph.html
yshalsager 657985aacf
feat: Add internationalization (i18n) support
* Extract all strings into data/locale.toml files.
* Use data/config values from correct language file.
* Fix wrong lang attribute in some html layouts.
* Fix header direction in rtl.
* Fix footer text align in rtl.

Signed-off-by: yshalsager <ysh-alsager@hotmail.com>
2022-08-22 09:48:13 +02:00

19 lines
563 B
HTML

<script
src="https://cdn.jsdelivr.net/npm/d3@6.7.0/dist/d3.min.js"
integrity="sha256-+7jaYCp29O1JusNWHaYtgUn6EhuP0VaFuswhNV06MyI="
crossorigin="anonymous"
></script>
<h3>{{ i18n "interactive_graph" }}</h3>
<div id="graph-container"></div>
<style>
:root {
--g-node: var(--secondary);
--g-node-active: var(--primary);
--g-node-inactive: var(--visited);
--g-link: var(--outlinegray);
--g-link-active: #5a7282;
}
</style>
{{ $js := resources.Get "js/graph.js" | resources.Fingerprint "md5" }}
<script src="{{ $js.Permalink }}"></script>