* Add link linter script * Add build commands for linting links * Add linting to start of serve script * Add tracking ids to links * Add tracking id to links * Finish adding tracking ids to remaining html links * Add front labels to lint results * Add some checks to function inputs; address feedback * Add checks that the element exists before sending tracking event * Add urlize to dynamically created tracking ids * Switch to generating ids instead of hardcoding * Do not encode strings when generating link tracking ids * Convert to use data-track attribute instead of data-tracking-id * Remove link linter * Fix duplicate read more tag * Revert breadcrumb html to be one line to eliminate extra space * Remove unused package * Update g suite name convention on tracking id Co-Authored-By: Christian Nunciato <c@nunciato.org> Co-authored-by: Christian Nunciato <christian@pulumi.com>
10 lines
282 B
HTML
10 lines
282 B
HTML
<nav class="nav-section-sticky">
|
|
<div class="container mx-auto uppercase">
|
|
<ul>
|
|
{{ range .sections }}
|
|
<li><a data-track="nav-{{ .label | urlize }}" href="#{{ .id }}">{{ .label }}</a></li>
|
|
{{ end }}
|
|
</ul>
|
|
</div>
|
|
</nav>
|