@trimble-oss/modus-docs-hugo-theme 1.0.0-alpha1 → 1.0.0-alpha10
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 +2 -6
- package/assets/{styles → css}/_article.scss +13 -0
- package/assets/css/_navbar-search.scss +54 -0
- package/assets/{styles → css}/_navbar.scss +4 -0
- package/assets/{styles → css}/_skippy.scss +1 -1
- package/assets/css/_tables.scss +34 -0
- package/assets/{styles → css}/_was-this-page-helpful.scss +1 -1
- package/assets/js/theme-toggle.js +1 -0
- package/data/navbar_apps.yml +8 -4
- package/layouts/_default/_markup/render-link.html +3 -3
- package/layouts/_default/baseof.html +6 -3
- package/layouts/_default/redirect.html +1 -1
- package/layouts/_default/single.html +3 -3
- package/layouts/index.json +1 -1
- package/layouts/partials/analytics.html +6 -3
- package/layouts/partials/blog-brief.html +4 -4
- package/layouts/partials/blog-share.html +6 -6
- package/layouts/partials/btn-theme-toggle.html +3 -2
- package/layouts/partials/col-sidebar-menu.html +1 -1
- package/layouts/partials/col-sidebar.html +13 -10
- package/layouts/partials/icons/brands/codepen.svg +1 -1
- package/layouts/partials/icons/brands/facebook-square.svg +1 -1
- package/layouts/partials/icons/brands/github-alt.svg +1 -1
- package/layouts/partials/icons/brands/github.svg +1 -1
- package/layouts/partials/icons/brands/linkedin.svg +1 -1
- package/layouts/partials/icons/brands/vimeo-square.svg +1 -1
- package/layouts/partials/icons/modus-outlined/accessibility-circle.svg +1 -1
- package/layouts/partials/icons/modus-outlined/arrow-up.svg +1 -1
- package/layouts/partials/icons/modus-outlined/bar-graph-square.svg +1 -1
- package/layouts/partials/icons/modus-outlined/code.svg +3 -0
- package/layouts/partials/icons/modus-outlined/launch.svg +1 -1
- package/layouts/partials/icons/modus-outlined/menu.svg +1 -1
- package/layouts/partials/icons/modus-outlined/more-vertical.svg +1 -1
- package/layouts/partials/icons/modus-outlined/person-account.svg +1 -1
- package/layouts/partials/icons/modus-outlined/search.svg +1 -1
- package/layouts/partials/icons/modus-outlined/sync.svg +1 -1
- package/layouts/partials/icons/modus-outlined/thumbs-down.svg +1 -1
- package/layouts/partials/icons/modus-outlined/thumbs-up.svg +1 -1
- package/layouts/partials/icons/modus-outlined/web.svg +1 -1
- package/layouts/partials/icons/modus-solid/code.svg +3 -0
- package/layouts/partials/icons/modus-solid/email.svg +1 -1
- package/layouts/partials/icons/modus-solid/menu.svg +3 -0
- package/layouts/partials/icons/modus-solid/palette.svg +1 -1
- package/layouts/partials/icons/modus-solid/trimble-logo.svg +3 -0
- package/layouts/partials/icons/modus-solid/user-guide.svg +3 -0
- package/layouts/partials/icons/transportation/truck.svg +1 -1
- package/layouts/partials/logos/trimble.svg +1 -1
- package/layouts/partials/meta.html +19 -9
- package/layouts/partials/navbar-dropdown.html +4 -2
- package/layouts/partials/navbar-search.html +3 -3
- package/layouts/partials/navbar.html +14 -10
- package/layouts/partials/skippy.html +4 -4
- package/layouts/partials/was-this-page-helpful.html +5 -3
- package/layouts/shortcodes/example.html +2 -2
- package/package.json +20 -14
- package/static/img/icons/check-circle-outlined.svg +1 -0
- package/static/img/icons/code.svg +1 -0
- package/static/img/icons/github.svg +1 -0
- package/static/img/icons/trimble.svg +1 -0
- package/static/img/icons/web-components.svg +1 -0
- package/assets/styles/_navbar-search.scss +0 -53
- package/assets/styles/_tables.scss +0 -5
- package/layouts/index.rss.xml +0 -49
- package/layouts/partials/icons/trimble-logo.svg +0 -1
- package/static/js/theme-toggle.js +0 -48
- /package/assets/{styles → css}/_autocomplete.scss +0 -0
- /package/assets/{styles → css}/_cards.scss +0 -0
- /package/assets/{styles → css}/_codefences-dark.scss +0 -0
- /package/assets/{styles → css}/_codefences.scss +0 -0
- /package/assets/{styles → css}/_col-sidebar.scss +0 -0
- /package/assets/{styles → css}/_font-open-sans.scss +0 -0
- /package/assets/{styles → css}/_footer.scss +0 -0
- /package/assets/{styles → css}/_javascript-disabled.scss +0 -0
- /package/assets/{styles → css}/_list-js.scss +0 -0
- /package/assets/{styles → css}/_menu-right.scss +0 -0
- /package/assets/{styles → css}/_mobile.scss +0 -0
- /package/assets/{styles → css}/_news.scss +0 -0
- /package/assets/{styles → css}/_onetrust-cookie-banner.scss +0 -0
- /package/assets/{styles → css}/_posts.scss +0 -0
- /package/assets/{styles → css}/_print.scss +0 -0
- /package/assets/{styles → css}/_scroll-to-top-btn.scss +0 -0
- /package/assets/{styles → css}/_sidebar.scss +0 -0
- /package/assets/{styles → css}/_theme-dark.scss +0 -0
- /package/assets/{styles → css}/_theme-light.scss +0 -0
- /package/assets/{styles → css}/_theme-toggle.scss +0 -0
- /package/assets/{styles → css}/_utilities.scss +0 -0
- /package/assets/{styles → css}/_xxl.scss +0 -0
- /package/assets/{styles/styles.scss → css/modus-docs.scss} +0 -0
@@ -0,0 +1,3 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" {{ with .width }} width="{{- . -}}"{{ end }}{{ with .height }} height="{{- . -}}"{{ end }}{{ with .class }} class="{{- . -}}"{{ end }} fill="currentColor" viewBox="0 0 24 24">
|
2
|
+
<path d="M18.5 2H7C5.35 2 4 3.35 4 5v14c0 1.65 1.35 3 3 3v-2c-.55 0-1-.45-1-1s.45-1 1-1h1v5l1.5-2 1.5 2v-5h7v2h-6v2h6.5c.83 0 1.5-.67 1.5-1.5v-17c0-.83-.67-1.5-1.5-1.5Zm-10 3h4c.28 0 .5.22.5.5s-.22.5-.5.5h-4c-.28 0-.5-.22-.5-.5s.22-.5.5-.5Zm4 5h-4c-.28 0-.5-.22-.5-.5s.22-.5.5-.5h4c.28 0 .5.22.5.5s-.22.5-.5.5Zm2-2h-6c-.28 0-.5-.22-.5-.5s.22-.5.5-.5h6c.28 0 .5.22.5.5s-.22.5-.5.5Z"/>
|
3
|
+
</svg>
|
@@ -1,3 +1,3 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" {{ with .width }} width="{{ . }}"{{ end }}{{ with .height }} height="{{ . }}"{{ end }}{{ with .class }} class="{{- . -}}"{{ end }} fill="currentColor" viewBox="0 0 24 24">
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" {{ with .width }} width="{{- . -}}"{{ end }}{{ with .height }} height="{{- . -}}"{{ end }}{{ with .class }} class="{{- . -}}"{{ end }} fill="currentColor" viewBox="0 0 24 24">
|
2
2
|
<path d="M19 9h-2V5H3.818A1.79 1.79 0 0 0 2 6.75v9.625h1.818A2.674 2.674 0 0 0 6.545 19a2.674 2.674 0 0 0 2.728-2.625h5.454a2.73 2.73 0 0 0 5.455 0H22V12ZM6.545 17.688a1.313 1.313 0 1 1 1.364-1.313 1.337 1.337 0 0 1-1.364 1.313ZM19 10l2 2h-4v-2Zm-1.545 7.688a1.313 1.313 0 1 1 1.363-1.313 1.337 1.337 0 0 1-1.363 1.313Z"/>
|
3
3
|
</svg>
|
@@ -1 +1 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" {{ with .width }} width="{{ . }}"{{ end }}{{ with .height }} height="{{ . }}"{{ end }}{{ with .class }} class="{{- . -}}"{{ end }} viewBox="0 0 444.7 100"><path d="M115.85,87.13v-62H93V11.21h62.57v14h-23v62Z" fill="currentColor"/><path d="M141.9,87.13V32.74h16.52v8.84h.1c3-4.62,8.21-10.26,18.47-10.26h.51V46c-.61-.11-3.49-.31-4.51-.31a18.27,18.27,0,0,0-14.57,7.49v34Z" fill="currentColor"/><path d="M182.72,25V11.72h16.62V25Zm.11,62.17V32.44h16.41V87.13Z" fill="currentColor"/><path d="M205.7,87.13V32.44h16.51v8.62c3.29-4.31,9.34-9.74,18-9.74,9.13,0,13.44,3.79,15,9.74,3.28-4.2,9.44-9.74,18-9.74,11.08,0,16,7,16,16.72V87.13H272.69V52.45c0-4.92-1.13-7.49-5.95-7.49-4.1,0-7.39,2.26-11,5.44V87.13H239.25V52.45c0-4.92-1.13-7.49-6-7.49-4.1,0-7.38,2.26-11.08,5.44V87.13Z" fill="currentColor"/><path d="M312,80.66v6.47H295.45V11.21H312V40.86c3.59-5,8.72-9.54,16.82-9.54,12.42,0,21,9.54,21,28.41S341.11,88,328.59,88C321.2,88,316.07,85.28,312,80.66Zm21.34-20.82c0-9.13-3.18-14.88-10.57-14.88-4.21,0-8,2.57-10.77,5.34V70.51c3.59,3.38,6.56,5,11,5C329.82,75.53,333.31,69.79,333.31,59.84Z" fill="currentColor"/><path d="M354.94,87.13V11.21h16.41V87.13Z" fill="currentColor"/><path d="M376.47,59.84c0-21.24,16.21-28.52,27.49-28.52S429.1,37,429.1,61.79v2.46H392.88c.83,9,5.85,12.51,12.73,12.51a25.16,25.16,0,0,0,16.21-6.56l6.36,9.85c-6.36,5.44-14.26,8.21-23.8,8.21C390.11,88.26,376.47,81,376.47,59.84Zm37.86-5.34c-.82-7.69-4.31-11.39-10.47-11.39-5.13,0-9.54,3.39-10.77,11.39Z" fill="currentColor"/><path d="M432.22,81a6.19,6.19,0,0,1,6.26-6.26A6.26,6.26,0,1,1,432.22,81Zm11.38,0a5.14,5.14,0,1,0-5.12,5.23A5.12,5.12,0,0,0,443.6,81Zm-7.55-3.56h2.56c1.62,0,2.56.7,2.56,2.1a1.84,1.84,0,0,1-1.34,1.94l1.48,2.81h-1.43l-1.38-2.62h-1.08v2.62h-1.37Zm2.48,3.18c.84,0,1.3-.27,1.3-1s-.46-1-1.33-1h-1.08v2Z" fill="currentColor"/><path d="M6.19,76.41V100L26.71,88.16A39.1,39.1,0,0,1,6.19,76.41Z" fill="currentColor"/><path d="M26.56,11.74,6.19,0V23.45A39.33,39.33,0,0,1,26.56,11.74Z" fill="currentColor"/><path d="M92.8,50,72.29,38.16a39.27,39.27,0,0,1-.06,23.72Z" fill="currentColor"/><path d="M19.7,17.92c2.94-.65,9.05,0,12.28.89a18.68,18.68,0,0,1,10.37-3.45A41.12,41.12,0,0,0,19.7,17.92Z" fill="currentColor"/><path d="M58.79,60.84a53.07,53.07,0,0,0-3.21-13.13c-7,3.18-15.72,1.13-21.53-3.9A95.93,95.93,0,0,0,22.62,58.32C32.47,66.35,48.67,68.46,58.79,60.84Z" fill="currentColor"/><path d="M17.23,59.09C8.55,50.19,5.52,37.22,8.3,27.25a35,35,0,0,0,2,47.47A63.4,63.4,0,0,1,17.23,59.09Z" fill="currentColor"/><path d="M54,43.94a47.18,47.18,0,0,0-7-10.78A80.73,80.73,0,0,0,37,40.93C42.26,45.3,49.14,46.16,54,43.94Z" fill="currentColor"/><path d="M47.47,27.72a36.33,36.33,0,0,1,7.62-4.23c-5.56-5.62-14.5-5.47-18.39-3A37.17,37.17,0,0,1,47.47,27.72Z" fill="currentColor"/><path d="M20.4,62c-4.32,7.47-5.9,13-6.48,15.87A35,35,0,0,0,57.1,77a30,30,0,0,0,2-11.33C47.14,72.79,30.66,70.07,20.4,62Z" fill="currentColor"/><path d="M57.4,41.45c3.83-4,3.06-10.84.15-14.78a29.6,29.6,0,0,0-7.13,4.18A52.73,52.73,0,0,1,57.4,41.45Z" fill="currentColor"/><path d="M64,32.85a14.1,14.1,0,0,1-4.84,12.59A57.37,57.37,0,0,1,62.49,57.2C67.74,50.38,67.58,40.64,64,32.85Z" fill="currentColor"/><path d="M34.16,37.9A83.13,83.13,0,0,1,44,30.11a33.17,33.17,0,0,0-10.82-6.59C29.92,27.89,30.92,33.53,34.16,37.9Z" fill="currentColor"/><path d="M63.12,62.69a49.42,49.42,0,0,1-.43,8.88A35.37,35.37,0,0,0,70,47.07,26.82,26.82,0,0,1,63.12,62.69Z" fill="currentColor"/><path d="M29.1,22.28a28.42,28.42,0,0,0-13.9.09c-6.89,9.77-3.69,24.08,4.33,33A100.8,100.8,0,0,1,31.18,40.79C27.1,35.72,25.48,27.89,29.1,22.28Z" fill="currentColor"/></svg>
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" {{ with .width }} width="{{- . -}}"{{ end }}{{ with .height }} height="{{- . -}}"{{ end }}{{ with .class }} class="{{- . -}}"{{ end }} viewBox="0 0 444.7 100"><path d="M115.85,87.13v-62H93V11.21h62.57v14h-23v62Z" fill="currentColor"/><path d="M141.9,87.13V32.74h16.52v8.84h.1c3-4.62,8.21-10.26,18.47-10.26h.51V46c-.61-.11-3.49-.31-4.51-.31a18.27,18.27,0,0,0-14.57,7.49v34Z" fill="currentColor"/><path d="M182.72,25V11.72h16.62V25Zm.11,62.17V32.44h16.41V87.13Z" fill="currentColor"/><path d="M205.7,87.13V32.44h16.51v8.62c3.29-4.31,9.34-9.74,18-9.74,9.13,0,13.44,3.79,15,9.74,3.28-4.2,9.44-9.74,18-9.74,11.08,0,16,7,16,16.72V87.13H272.69V52.45c0-4.92-1.13-7.49-5.95-7.49-4.1,0-7.39,2.26-11,5.44V87.13H239.25V52.45c0-4.92-1.13-7.49-6-7.49-4.1,0-7.38,2.26-11.08,5.44V87.13Z" fill="currentColor"/><path d="M312,80.66v6.47H295.45V11.21H312V40.86c3.59-5,8.72-9.54,16.82-9.54,12.42,0,21,9.54,21,28.41S341.11,88,328.59,88C321.2,88,316.07,85.28,312,80.66Zm21.34-20.82c0-9.13-3.18-14.88-10.57-14.88-4.21,0-8,2.57-10.77,5.34V70.51c3.59,3.38,6.56,5,11,5C329.82,75.53,333.31,69.79,333.31,59.84Z" fill="currentColor"/><path d="M354.94,87.13V11.21h16.41V87.13Z" fill="currentColor"/><path d="M376.47,59.84c0-21.24,16.21-28.52,27.49-28.52S429.1,37,429.1,61.79v2.46H392.88c.83,9,5.85,12.51,12.73,12.51a25.16,25.16,0,0,0,16.21-6.56l6.36,9.85c-6.36,5.44-14.26,8.21-23.8,8.21C390.11,88.26,376.47,81,376.47,59.84Zm37.86-5.34c-.82-7.69-4.31-11.39-10.47-11.39-5.13,0-9.54,3.39-10.77,11.39Z" fill="currentColor"/><path d="M432.22,81a6.19,6.19,0,0,1,6.26-6.26A6.26,6.26,0,1,1,432.22,81Zm11.38,0a5.14,5.14,0,1,0-5.12,5.23A5.12,5.12,0,0,0,443.6,81Zm-7.55-3.56h2.56c1.62,0,2.56.7,2.56,2.1a1.84,1.84,0,0,1-1.34,1.94l1.48,2.81h-1.43l-1.38-2.62h-1.08v2.62h-1.37Zm2.48,3.18c.84,0,1.3-.27,1.3-1s-.46-1-1.33-1h-1.08v2Z" fill="currentColor"/><path d="M6.19,76.41V100L26.71,88.16A39.1,39.1,0,0,1,6.19,76.41Z" fill="currentColor"/><path d="M26.56,11.74,6.19,0V23.45A39.33,39.33,0,0,1,26.56,11.74Z" fill="currentColor"/><path d="M92.8,50,72.29,38.16a39.27,39.27,0,0,1-.06,23.72Z" fill="currentColor"/><path d="M19.7,17.92c2.94-.65,9.05,0,12.28.89a18.68,18.68,0,0,1,10.37-3.45A41.12,41.12,0,0,0,19.7,17.92Z" fill="currentColor"/><path d="M58.79,60.84a53.07,53.07,0,0,0-3.21-13.13c-7,3.18-15.72,1.13-21.53-3.9A95.93,95.93,0,0,0,22.62,58.32C32.47,66.35,48.67,68.46,58.79,60.84Z" fill="currentColor"/><path d="M17.23,59.09C8.55,50.19,5.52,37.22,8.3,27.25a35,35,0,0,0,2,47.47A63.4,63.4,0,0,1,17.23,59.09Z" fill="currentColor"/><path d="M54,43.94a47.18,47.18,0,0,0-7-10.78A80.73,80.73,0,0,0,37,40.93C42.26,45.3,49.14,46.16,54,43.94Z" fill="currentColor"/><path d="M47.47,27.72a36.33,36.33,0,0,1,7.62-4.23c-5.56-5.62-14.5-5.47-18.39-3A37.17,37.17,0,0,1,47.47,27.72Z" fill="currentColor"/><path d="M20.4,62c-4.32,7.47-5.9,13-6.48,15.87A35,35,0,0,0,57.1,77a30,30,0,0,0,2-11.33C47.14,72.79,30.66,70.07,20.4,62Z" fill="currentColor"/><path d="M57.4,41.45c3.83-4,3.06-10.84.15-14.78a29.6,29.6,0,0,0-7.13,4.18A52.73,52.73,0,0,1,57.4,41.45Z" fill="currentColor"/><path d="M64,32.85a14.1,14.1,0,0,1-4.84,12.59A57.37,57.37,0,0,1,62.49,57.2C67.74,50.38,67.58,40.64,64,32.85Z" fill="currentColor"/><path d="M34.16,37.9A83.13,83.13,0,0,1,44,30.11a33.17,33.17,0,0,0-10.82-6.59C29.92,27.89,30.92,33.53,34.16,37.9Z" fill="currentColor"/><path d="M63.12,62.69a49.42,49.42,0,0,1-.43,8.88A35.37,35.37,0,0,0,70,47.07,26.82,26.82,0,0,1,63.12,62.69Z" fill="currentColor"/><path d="M29.1,22.28a28.42,28.42,0,0,0-13.9.09c-6.89,9.77-3.69,24.08,4.33,33A100.8,100.8,0,0,1,31.18,40.79C27.1,35.72,25.48,27.89,29.1,22.28Z" fill="currentColor"/></svg>
|
@@ -5,21 +5,26 @@
|
|
5
5
|
<!-- Removes the .no-js class from the <html> element if JavaScript is enabled -->
|
6
6
|
<script>document.documentElement.classList.remove('no-js');</script>
|
7
7
|
|
8
|
+
{{- if not .Site.Params.disableModusBootstrapCSS -}}
|
8
9
|
<!-- Load Modus Bootstrap CSS from CDN -->
|
9
|
-
<link rel="stylesheet" href="
|
10
|
+
<link rel="stylesheet" href="{{- .Site.BaseURL -}}css/modus-bootstrap.min.css">
|
11
|
+
{{ end }}
|
10
12
|
|
11
13
|
<!-- Compiles and minifies the sites Sass files from /assets/css/ -->
|
12
14
|
{{- $sassOptions := (dict "enableSourceMap" true) -}}
|
13
|
-
{{ $styles := resources.Get "
|
15
|
+
{{ $styles := resources.Get "css/modus-docs.scss" | toCSS $sassOptions | postCSS | minify }}
|
14
16
|
<link rel="stylesheet" href="{{ $styles.RelPermalink }}?v{{ hugo.Version }}">
|
15
17
|
|
16
18
|
<!-- Load jQuery from CDN with fallback -->
|
17
|
-
<script src="https://cdn.jsdelivr.net/npm/jquery@3.7.
|
18
|
-
<script>window.jQuery || document.write('<script src="https://code.jquery.com/jquery-3.7.
|
19
|
+
<script src="https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js"></script>
|
20
|
+
<script>window.jQuery || document.write('<script src="https://code.jquery.com/jquery-3.7.1.min.js"><\/script>');</script>
|
19
21
|
<link rel="stylesheet" href="{{- .Site.BaseURL -}}fonts/modus-icons.css">
|
20
22
|
|
23
|
+
{{- if not .Site.Params.disableThemeToggle -}}
|
21
24
|
<!-- Loads Dark Mode Toggle JS -->
|
22
|
-
|
25
|
+
{{ $ThemeToggleJS := resources.Get "js/theme-toggle.js" | minify }}
|
26
|
+
<script src="{{- .Site.BaseURL -}}{{ $ThemeToggleJS.RelPermalink }}"></script>
|
27
|
+
{{ end }}
|
23
28
|
|
24
29
|
<meta name="description"
|
25
30
|
content="{{ with .Description }}{{ . }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{- end -}}{{- end -}}">
|
@@ -31,10 +36,11 @@
|
|
31
36
|
{{ end }}
|
32
37
|
|
33
38
|
<!-- no need to define additional Twitter card meta tags as fallback to Open Graph -->
|
34
|
-
<!-- https://developer.twitter.com/en/docs/
|
39
|
+
<!-- https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started#twitter-cards-and-open-graph -->
|
35
40
|
|
36
41
|
{{- if .Params.private -}}
|
37
42
|
<meta name="robots" content="noindex, nofollow">
|
43
|
+
<meta name="referrer" content="none">
|
38
44
|
{{ end }}
|
39
45
|
|
40
46
|
{{- with .Site.Params.themeColor -}}
|
@@ -43,11 +49,13 @@
|
|
43
49
|
<meta name="theme-color" content="{{- . | default "#005f9e" -}}">
|
44
50
|
{{ end }}
|
45
51
|
|
52
|
+
{{- if .IsHome -}}
|
46
53
|
{{- with .Site.Params.googleSiteVerification -}}
|
47
54
|
<!-- Google Site Verification -->
|
48
55
|
<!-- https://support.google.com/webmasters/answer/9008080?hl=en -->
|
49
56
|
<meta name="google-site-verification" content="{{- . -}}">
|
50
57
|
{{ end }}
|
58
|
+
{{ end }}
|
51
59
|
|
52
60
|
<!-- Loads the Trimble favicon and the SVG icon -->
|
53
61
|
<link rel="alternate icon" type="image/x-icon" href="{{- .Site.BaseURL -}}favicon.ico">
|
@@ -57,7 +65,7 @@
|
|
57
65
|
<script nomodule crossorigin="anonymous"
|
58
66
|
src="https://polyfill.io/v3/polyfill.min.js?features=default%2CNumber.parseInt%2CNumber.parseFloat%2CArray.prototype.find%2CArray.prototype.includes"></script>
|
59
67
|
<script
|
60
|
-
nomodule>window.MSInputMethodContext && document.documentMode && document.write('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-ie11@5
|
68
|
+
nomodule>window.MSInputMethodContext && document.documentMode && document.write('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-ie11@5/css/bootstrap-ie11.min.css"><script src="https://cdn.jsdelivr.net/combine/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.bundle.min.js,npm/ie11-custom-properties@4,npm/element-qsa-scope@1"><\/script>');</script>
|
61
69
|
|
62
70
|
{{- if not .Params.hideSearch -}}
|
63
71
|
<script>
|
@@ -76,6 +84,8 @@
|
|
76
84
|
{{ end }}
|
77
85
|
|
78
86
|
<!-- Loads Bootstrap 5 JS from CDN -->
|
79
|
-
<script src="
|
87
|
+
<script src="{{- .Site.BaseURL -}}js/bootstrap.bundle.min.js"></script>
|
88
|
+
|
89
|
+
{{ partial "analytics" . }}
|
80
90
|
|
81
|
-
{{ partial "custom-header" . }}
|
91
|
+
{{ partial "custom-header" . }}
|
@@ -10,8 +10,10 @@
|
|
10
10
|
{{ end }}
|
11
11
|
</div>
|
12
12
|
<div class="col-9 align-self-center">
|
13
|
-
{{- .title }}
|
14
|
-
|
13
|
+
{{- .title }}
|
14
|
+
<svg class="filter-greyscale opacity-50" width="14" height="14" fill="currentColor">
|
15
|
+
<use xlink:href="/modus-solid-icons.svg#external-link" />
|
16
|
+
</svg>
|
15
17
|
</div>
|
16
18
|
</div>
|
17
19
|
</a>
|
@@ -1,10 +1,10 @@
|
|
1
|
-
<
|
1
|
+
<search class="search-container d-inline-block position-relative" role="search">
|
2
2
|
<input class="form-control form-control-search position-absolute" aria-label="Search" id="search-by" type="search"
|
3
3
|
name="q" placeholder="Search..." autocomplete="off" title="" required>
|
4
4
|
<label class="btn btn-lg btn-icon-only border-0 btn-search position-absolute px-1" for="search-by">
|
5
5
|
<i class="modus-icons notranslate text-white" aria-hidden="true">search</i>
|
6
6
|
</label>
|
7
|
-
</
|
7
|
+
</search>
|
8
8
|
|
9
9
|
<script>
|
10
10
|
// Lose Focus on Input when user presses Escape only if no input
|
@@ -16,4 +16,4 @@
|
|
16
16
|
}
|
17
17
|
}
|
18
18
|
});
|
19
|
-
</script>
|
19
|
+
</script>
|
@@ -1,15 +1,19 @@
|
|
1
1
|
<nav class="navbar shadow-sm navbar-blue sticky-top" aria-label="Main Navigation">
|
2
2
|
<div class="container-fluid">
|
3
3
|
<div>
|
4
|
-
<button class="btn btn-lg btn-icon-only d-inline-block border-0" type="button"
|
5
|
-
data-bs-target="#sidebar" data-bs-toggle="collapse">
|
6
|
-
|
4
|
+
<button class="btn btn-lg btn-primary btn-icon-only bg-transparent d-inline-block border-0" type="button"
|
5
|
+
aria-label="Menu" data-bs-target="#sidebar" data-bs-toggle="collapse">
|
6
|
+
{{ partial "icons/modus-solid/menu.svg" (dict "class" "menu-btn text-white" "width" "24" "height" "24") }}
|
7
7
|
</button>
|
8
8
|
<a class="navbar-brand text-primary" href="/">
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
{{ partial "logos/trimble.svg" (dict "class" "img-fluid d-none d-sm-inline-block text-white" "width" "117" "height" "28") }}
|
10
|
+
{{ partial "icons/modus-solid/trimble-logo.svg" (dict "class" "d-inline-block d-sm-none text-white" "width" "32" "height" "32") }}
|
11
|
+
|
12
|
+
{{- if .Site.Params.Title -}}
|
13
|
+
<div class="float-end text-white h2 d-none d-md-inline-block navbar-site-title">
|
14
|
+
{{- .Site.Title -}}
|
15
|
+
</div>
|
16
|
+
{{- end -}}
|
13
17
|
</a>
|
14
18
|
</div>
|
15
19
|
|
@@ -18,8 +22,8 @@
|
|
18
22
|
{{ partial "navbar-search" . }}
|
19
23
|
|
20
24
|
<div class="dropdown">
|
21
|
-
<button type="button" class="btn btn-lg btn-icon-only border-0"
|
22
|
-
aria-label="Menu">
|
25
|
+
<button type="button" class="btn btn-lg btn-primary bg-transparent btn-icon-only border-0"
|
26
|
+
data-bs-toggle="dropdown" aria-expanded="false" aria-label="Menu">
|
23
27
|
<i class="modus-icons notranslate mt-2 text-white" aria-hidden="true">apps</i>
|
24
28
|
</button>
|
25
29
|
|
@@ -28,4 +32,4 @@
|
|
28
32
|
</div>
|
29
33
|
</div>
|
30
34
|
</div>
|
31
|
-
</nav>
|
35
|
+
</nav>
|
@@ -1,10 +1,10 @@
|
|
1
|
-
<div class="skippy overflow-hidden">
|
2
|
-
<div class="text-center
|
3
|
-
<a class="
|
1
|
+
<div class="skippy visually-hidden-focusable overflow-hidden">
|
2
|
+
<div class="text-center container-fluid">
|
3
|
+
<a class="btn btn-primary rounded p-1 m-2" href="#main">Skip to
|
4
4
|
main content</a>
|
5
5
|
|
6
6
|
{{ if (eq .Page.Layout "docs") }}
|
7
|
-
<a class="
|
7
|
+
<a class="d-md-inline-flex p-1 mb-1" href="#bd-docs-nav">Skip to docs
|
8
8
|
navigation</a>
|
9
9
|
{{- end }}
|
10
10
|
</div>
|
@@ -1,10 +1,12 @@
|
|
1
1
|
<div class="d-none small p-2 feedback mt-2">
|
2
2
|
<div class="mt-2 mb-1">Was this page helpful?</div>
|
3
|
-
<button type="button"
|
3
|
+
<button type="button"
|
4
|
+
class="btn btn-light btn-outline-secondary btn-feedback btn-feedback-helpful border rounded p-1 me-2"
|
4
5
|
aria-label="Helpful">
|
5
6
|
{{- partial "icons/modus-outlined/thumbs-up.svg" (dict "width" "22" "height" "22" "class" "mx-2 mx-auto text-primary") -}}
|
6
7
|
</button>
|
7
|
-
<button type="button"
|
8
|
+
<button type="button"
|
9
|
+
class="btn btn-light btn-outline-secondary btn-feedback btn-feedback-not-helpful border rounded p-1"
|
8
10
|
aria-label="Not Helpful">
|
9
11
|
{{- partial "icons/modus-outlined/thumbs-down.svg" (dict "width" "22" "height" "22" "class" "mx-2 mx-auto text-primary") -}}
|
10
12
|
</button>
|
@@ -16,4 +18,4 @@
|
|
16
18
|
|
17
19
|
<div class="small ml-2 d-none feedback-not-helpful">
|
18
20
|
<a href="" rel="nofollow" target="_blank">Please, provide feedback about how we can improve the page</a>. Thank you!
|
19
|
-
</div>
|
21
|
+
</div>
|
@@ -21,7 +21,7 @@
|
|
21
21
|
|
22
22
|
<div class="bd-example-snippet bd-code-snippet border rounded border-opacity-10">
|
23
23
|
{{- if eq $show_preview true -}}
|
24
|
-
<div{{ with $id }} id="{{ . }}" {{ end }} class="bd-example m-0 border-0{{ with $class }} {{ . }}{{ end }}">
|
24
|
+
<div{{ with $id }} id="{{- . -}}" {{ end }} class="bd-example m-0 border-0{{ with $class }} {{ . }}{{ end }}">
|
25
25
|
{{- $input -}}
|
26
26
|
</div>
|
27
27
|
{{- end -}}
|
@@ -47,4 +47,4 @@
|
|
47
47
|
{{- $content = replaceRE ` (class=" *?")` "" $content -}}
|
48
48
|
{{- highlight (trim $content "\n") $lang "" -}}
|
49
49
|
{{- end -}}
|
50
|
-
</div>
|
50
|
+
</div>
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@trimble-oss/modus-docs-hugo-theme",
|
3
|
-
"version": "1.0.0-
|
4
|
-
"description": "A Documentation
|
3
|
+
"version": "1.0.0-alpha10",
|
4
|
+
"description": "A Documentation theme for Hugo built by Trimble",
|
5
5
|
"homepage": "https://github.com/trimble-oss/modus-docs-hugo-theme",
|
6
6
|
"bugs": {
|
7
7
|
"url": "https://github.com/trimble-oss/modus-docs-hugo-theme/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc"
|
@@ -10,30 +10,36 @@
|
|
10
10
|
"type": "git",
|
11
11
|
"url": "https://github.com/trimble-oss/modus-docs-hugo-theme"
|
12
12
|
},
|
13
|
-
"license": "
|
13
|
+
"license": "MIT",
|
14
14
|
"author": "Trimble",
|
15
15
|
"scripts": {
|
16
16
|
"build": "npx hugo",
|
17
|
-
"lint": "npm run lint-css && npm run lint-html",
|
18
|
-
"lint-css": "stylelint \"assets/
|
17
|
+
"lint": "npm run lint-css && npm run lint-html && npm run lint-js",
|
18
|
+
"lint-css": "stylelint \"assets/css/*.*\" --fix",
|
19
19
|
"lint-html": "htmlhint \"build/**/index.html\"",
|
20
|
+
"lint-js": "eslint assets/js/*.js --fix",
|
21
|
+
"lint-links": "npx linkinator ./",
|
22
|
+
"lint-markdown": "npx markdownlint-cli content/**/*.md --fix",
|
20
23
|
"lint-spellcheck": "npx cspell \"content/**/*.md\" --no-progress",
|
21
|
-
"prettier": "prettier --write \"**/*.{json,js,md,svg}\"",
|
24
|
+
"prettier": "prettier --write \"**/*.{json,js,md,svg,yml}\"",
|
22
25
|
"serve": "hugo serve --port 4000 --disableFastRender --navigateToChanged",
|
23
|
-
"test": "npm run lint-css && npm run lint-html"
|
26
|
+
"test": "npm run lint-css && npm run lint-html && npm run lint-js"
|
24
27
|
},
|
25
28
|
"dependencies": {
|
26
|
-
"@trimble-oss/modus-
|
29
|
+
"@trimble-oss/modus-bootstrap": "2.0.0-alpha3",
|
30
|
+
"@trimble-oss/modus-icons": "1.5.1"
|
27
31
|
},
|
28
32
|
"devDependencies": {
|
29
|
-
"autoprefixer": "10.4.
|
33
|
+
"autoprefixer": "10.4.16",
|
34
|
+
"eslint": "8.50.0",
|
35
|
+
"eslint-config-prettier": "9.0.0",
|
30
36
|
"htmlhint": "1.1.4",
|
31
|
-
"hugo-bin": "0.
|
32
|
-
"postcss": "8.4.
|
37
|
+
"hugo-bin": "0.114.2",
|
38
|
+
"postcss": "8.4.31",
|
33
39
|
"postcss-cli": "10.1.0",
|
34
|
-
"prettier": "3.0.
|
35
|
-
"stylelint": "15.10.
|
36
|
-
"stylelint-config-standard-scss": "
|
40
|
+
"prettier": "3.0.3",
|
41
|
+
"stylelint": "15.10.3",
|
42
|
+
"stylelint-config-standard-scss": "11.0.0"
|
37
43
|
},
|
38
44
|
"hugo-bin": {
|
39
45
|
"buildTags": "extended"
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" class="mi-outline mi-check-circle-outlined" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2Zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8Zm5.04-11.28V8.7c-.4-.39-1.03-.39-1.42 0L10.33 14l-2.6-2.62a.996.996 0 0 0-1.41 0 .984.984 0 0 0-.01 1.4l.01.01 3.3 3.34a1 1 0 0 0 1.42.01l6-6.01a.996.996 0 0 0 0-1.41Z"/></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 640 512"><path d="M392.8 1.2c-17-4.9-34.7 5-39.6 22l-128 448c-4.9 17 5 34.7 22 39.6s34.7-5 39.6-22l128-448c4.9-17-5-34.7-22-39.6zm80.6 120.1c-12.5 12.5-12.5 32.8 0 45.3L562.7 256l-89.4 89.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l112-112c12.5-12.5 12.5-32.8 0-45.3l-112-112c-12.5-12.5-32.8-12.5-45.3 0zm-306.7 0c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3l112 112c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256l89.4-89.4c12.5-12.5 12.5-32.8 0-45.3z"/></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 732 789"><path d="M543.59 674.86a54.34 54.34 0 0154.9-54.9c30.76 0 54.43 23.9 54.43 54.67 0 73.17-109.33 73.15-109.33.23zm99.86 0c0-60.79-90.16-61.1-90.16-.23s90.16 61.53 90.16.23zm-66.26-31.23c22 0 45-3.33 45 18.46 0 9.7-4.73 14.67-11.83 17l13 24.62h-12.57l-12.07-23h-9.46v23h-12.07zm33.13 19.17c0-10-10.71-8.52-21.06-8.52v17.27c10.51 0 21.06 1.68 21.06-8.75zM48.86 602.72v186.13l161.81-93.42a308.1 308.1 0 01-161.81-92.71zM209.49 92.58L48.86 0v185a310.2 310.2 0 01160.63-92.42zM732 394.43L570.25 301a309.33 309.33 0 01-.48 187.08zM155.4 141.39c23.23-5.16 71.39-.27 96.87 7 20.38-16.21 51.17-25.6 81.82-27.15-70.46-12.72-135.64 2.05-178.69 20.15zM463.74 479.92a416.8 416.8 0 00-25.28-103.53c-55.43 25-124 8.88-169.86-30.79-33.41 34.15-65.75 76.68-90.16 114.49 77.71 63.35 205.56 79.99 285.3 19.83zM135.94 466.1C67.43 396 43.55 293.61 65.49 215a276 276 0 0016.16 374.43c11.21-42.43 31.97-85.72 54.29-123.33zM425.64 346.65a372.77 372.77 0 00-55.49-85.1 635.36 635.36 0 00-78.09 61.34c41.29 34.45 95.61 41.21 133.58 23.76zM374.48 218.63c17.78-12.93 42.42-26.76 60.09-33.32-43.84-44.38-114.38-43.2-145-23.94a293.6 293.6 0 0184.91 57.26z"/><path d="M160.91 488.67c-34.09 58.94-46.53 102.19-51.06 125.2a276 276 0 00340.58-6.21c10.24-24.74 15.47-55.53 15.45-89.38-93.99 55.94-223.99 34.43-304.97-29.61zM452.81 327c30.17-31.7 24.12-85.56 1.17-116.62-14.14 4.78-43.57 21.94-56.26 33A413.64 413.64 0 01452.81 327zM505 259.11c4.65 40.7-10.79 75.93-38.17 99.35A448.73 448.73 0 01493 451.19c41.36-53.81 40.1-130.56 12-192.08zM269.45 299a672.54 672.54 0 0177.22-61.49 262 262 0 00-85.35-52C236.05 220 243.94 264.52 269.45 299zM497.94 494.52c1.4 23.09-.72 49.29-3.42 70 47.34-60.32 63.34-135 57.75-193.22-5.67 49.03-23.62 90.05-54.33 123.22zM229.55 175.76c-34.94-8.54-75.63-8.91-109.67.72-54.33 77-29.1 189.94 34.2 260.64C178.13 400.5 213 354.9 246 321.75c-32.23-39.94-45-101.75-16.45-145.99z"/></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M11.731 2.225l-.01.016H5.618L0 11.979l5.618 9.736h12.8l.04.06 2.134-3.735.518-.893h-.008l.008-.014-.626-.75h.895l.006-.01.008.01L24 11.994l-2.607-4.39-.003.005-.011-.02h-.945l.63-.763-2.606-4.57-.006.01-.024-.04H11.73zM9.107 6.824h6.19l-.53.764h-.023l2.398 4.015h.875l-.277.328.357.435h-.956l-2.398 4.015h.027l.523.764H9.074l-2.99-5.168 3.022-5.155z"/></svg>
|
@@ -1,53 +0,0 @@
|
|
1
|
-
.search-container {
|
2
|
-
width: 40px;
|
3
|
-
left: -12px;
|
4
|
-
}
|
5
|
-
|
6
|
-
.form-control-search {
|
7
|
-
background-image: url("https://cdn.jsdelivr.net/npm/@trimble-oss/modus-icons@1.3.1/dist/modus-solid/svg/search.svg");
|
8
|
-
background-position: 5px center;
|
9
|
-
background-repeat: no-repeat;
|
10
|
-
border-left: 0;
|
11
|
-
border-right: 0;
|
12
|
-
padding: 0;
|
13
|
-
width: 0 !important;
|
14
|
-
z-index: 1210;
|
15
|
-
transition: all 0.2s;
|
16
|
-
left: auto;
|
17
|
-
top: 10px;
|
18
|
-
right: 5px;
|
19
|
-
}
|
20
|
-
|
21
|
-
.form-control-search:focus {
|
22
|
-
width: 363px !important;
|
23
|
-
max-width: calc(100vw - 200px);
|
24
|
-
text-indent: 18px;
|
25
|
-
padding: 0 4px 4px 16px;
|
26
|
-
visibility: visible;
|
27
|
-
}
|
28
|
-
|
29
|
-
.form-control-search:focus + .btn-search {
|
30
|
-
transition: all 1s;
|
31
|
-
background-color: transparent;
|
32
|
-
pointer-events: none !important;
|
33
|
-
}
|
34
|
-
|
35
|
-
.form-control-search:focus + .btn-search img {
|
36
|
-
opacity: 0;
|
37
|
-
}
|
38
|
-
|
39
|
-
.btn-search {
|
40
|
-
top: 0;
|
41
|
-
}
|
42
|
-
|
43
|
-
.btn-search i {
|
44
|
-
margin-top: 18px;
|
45
|
-
}
|
46
|
-
|
47
|
-
[data-bs-theme="dark"] .form-control-search {
|
48
|
-
background-image: url("/img/icons/search-white.svg") !important;
|
49
|
-
}
|
50
|
-
|
51
|
-
[data-bs-theme="dark"] .btn-search img {
|
52
|
-
filter: invert(1);
|
53
|
-
}
|
package/layouts/index.rss.xml
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
2
|
-
<channel>
|
3
|
-
<title>{{- .Site.Title -}}</title>
|
4
|
-
<link>{{- .Site.BaseURL -}}</link>
|
5
|
-
<description>Recent content for {{ .Site.Title }}</description>
|
6
|
-
<icon>{{- .Site.BaseURL -}}icon.png</icon>
|
7
|
-
<copyright>Copyright {{ now.Format "2006" }}, {{ .Site.Params.copyrightHolder }}</copyright>
|
8
|
-
{{- with .Site.LanguageCode }}
|
9
|
-
<language>{{.}}</language>
|
10
|
-
{{- end}}
|
11
|
-
{{- with .Site.Params.copyrightHolderEmail }}
|
12
|
-
<managingEditor>{{.}} ({{- $.Site.Params.copyrightHolder -}})</managingEditor>
|
13
|
-
{{- end}}
|
14
|
-
{{- with .Site.Params.copyrightHolderEmail }}
|
15
|
-
<webMaster>{{.}} ({{- $.Site.Params.copyrightHolder -}})</webMaster>
|
16
|
-
{{- end}}
|
17
|
-
{{- with .Site.Params.docsUrlForRssV2}}
|
18
|
-
<docs>{{- . -}}</docs>
|
19
|
-
{{- end }}
|
20
|
-
{{- if not .Date.IsZero }}
|
21
|
-
<lastBuildDate>{{- .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML -}}</lastBuildDate>
|
22
|
-
{{- end }}
|
23
|
-
{{ with .OutputFormats.Get "RSS" }}
|
24
|
-
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
|
25
|
-
{{ end }}
|
26
|
-
{{ range first 7 (where .Site.RegularPages.ByPublishDate.Reverse ".Section" "not in" "addons") }}
|
27
|
-
<item>
|
28
|
-
<title>{{- .Title -}}</title>
|
29
|
-
<link>{{- .Permalink -}}</link>
|
30
|
-
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
31
|
-
{{ with $.Site.Params.copyrightHolderEmail }}<author>{{.}} ({{ with $.Site.Params.copyrightHolder }}{{.}}){{end}}</author>{{end}}
|
32
|
-
<guid isPermaLink="true">{{ .Permalink }}</guid>
|
33
|
-
{{- range .Params.tags }}
|
34
|
-
<category>{{- . | urlize -}}</category>
|
35
|
-
{{- end }}
|
36
|
-
<description>
|
37
|
-
{{- with .Params.headline }}<h2>{{ . }}</h2>{{- end }}
|
38
|
-
{{- $img := (.Resources.ByType "image").GetMatch "*featured*" }}
|
39
|
-
{{- with $img }}
|
40
|
-
{{- $img := .Resize "640x" }}
|
41
|
-
{{- printf "<![CDATA[<img src=\"%s\" width=\"%d\" height=\"%d\"/>]]>" $img.Permalink $img.Width $img.Height | safeHTML }}
|
42
|
-
{{- end }}
|
43
|
-
{{ .Content | html }}
|
44
|
-
</description>
|
45
|
-
<source url="{{- .Site.BaseURL -}}index.xml">{{- .Site.Title -}}</source>
|
46
|
-
</item>
|
47
|
-
{{ end }}
|
48
|
-
</channel>
|
49
|
-
</rss>
|
@@ -1 +0,0 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" {{ with .width }} width="{{ . }}"{{ end }}{{ with .height }} height="{{ . }}"{{ end }}{{ with .class }} class="{{- . -}}"{{ end }} viewBox="0 0 216 51"><path d="M74.862 16.979h8.883v4.241h.112c1.114-3.519 5.137-4.913 8.714-4.913v9.157a10.7 10.7 0 00-3.688-.781c-3.015 0-3.966.781-4.973 2.178V45.01h-9.048zm20.089 0h9.05V45.01h-9.05zm12.11 0h9.051v3.74h.111a9.424 9.424 0 017.99-4.412c2.737 0 5.472 1.728 5.64 4.412h.109a9.426 9.426 0 017.99-4.412c3.627 0 6.309 1.957 6.309 5.973v22.73h-9.048V25.184c0-1.5-.5-2.508-2.177-2.508a2.847 2.847 0 00-2.346 1.17l-.507.667v20.5h-9.045V25.184c0-1.5-.5-2.508-2.177-2.508a2.871 2.871 0 00-2.352 1.17l-.5.667v20.5h-9.051zm40.24-11.731h9.053v13.345h.116a8.332 8.332 0 015.467-2.29c6.263 0 9.608 6.254 9.608 14.348 0 6.42-2.677 14.689-10.272 14.689-3.522 0-5.812-1.673-7.6-4.358l-1.681 4.024h-4.693zm9.053 30.771c-.163 2.342 1.233 3.63 2.96 3.63 2.512 0 2.848-2.518 2.848-7.708v-2.12c0-5.584 0-8.491-2.788-8.491a4.035 4.035 0 00-2.515 1.122l-.5.495zm17.55-30.771h9.05V45.01h-9.05zm20.455 26.909c0 2.463.5 6.65 4.078 6.65a4.791 4.791 0 004.576-3.857l6.088 2.23a11.546 11.546 0 01-11.226 7.658c-8.659 0-12.567-6.982-12.567-14.739 0-7.934 4.134-14.634 12.454-14.634 8.716 0 11.731 7.485 11.731 14.8v1.9zm6.755-5.356c-.054-2.624-.276-5.642-3.407-5.642-2.567 0-3.348 3.018-3.348 5.642zM94.926 5.073H104v8.068h-9.074z" fill="currentColor"/><path d="M50.771 5.099h28.043v7.708H69.82v32.054H59.764V12.807h-8.993zM32.572 35.038a14.593 14.593 0 01-.516 1.739q-.087.235-.178.46c-.382.378-.654.608-.732.672a17.178 17.178 0 01-11.7 4.237l-3.877 2.1a19.8 19.8 0 0010.09-.413 19.374 19.374 0 007.124-3.96 19.727 19.727 0 004.64-5.911 22.025 22.025 0 00.9-2.035zM18.983 7.682c.136-.006.279-.008.42-.01.258-.008.514-.006.771 0a9.081 9.081 0 00-1.312.416l3.463 1.876a9.827 9.827 0 017.28 3.067c-.42.04-.857.1-1.3.171l5.862 3.176c-.013-.064-.02-.131-.034-.2a2.792 2.792 0 01.623.514l3.9 2.11c-.048-.148-.087-.293-.137-.442a22.183 22.183 0 00-1.436-3.283 17.847 17.847 0 00-2.3-3.184 21.85 21.85 0 00-2.438-2.314c-.031-.025-.167-.137-.34-.272a20.665 20.665 0 00-10.549-4.143c-.116-.008-.221-.01-.333-.016a17.973 17.973 0 00-3.865.105l-.229.038c-.551.078-1.03.167-1.417.257-.35.08-.676.164-.986.248l3.607 1.954c.25-.023.498-.057.75-.068zM3.798 31.338a18.109 18.109 0 01-1.038-3.762 20.006 20.006 0 01-.2-3.162 11.364 11.364 0 01.139-1.745 17.522 17.522 0 011.225-4.46v-5.135a18.81 18.81 0 00-1.729 2.777 20.059 20.059 0 00-2.023 6.408 13.835 13.835 0 00-.171 2.183 21.623 21.623 0 00.217 3.43 20.207 20.207 0 001.445 4.979 20.861 20.861 0 001.8 3.235 1.18 1.18 0 00.2.279c.084.12.178.239.266.358V31.03a5.798 5.798 0 00-.131.308zm29.425-9.291a7.784 7.784 0 01-.85 1.122 26.517 26.517 0 012.2 5.283c.2-.262.391-.527.564-.809a9.438 9.438 0 00.734-1.476 9.654 9.654 0 00.469-1.58 10.134 10.134 0 00.2-1.656 10.868 10.868 0 00-.071-1.711 11.487 11.487 0 00-.541-2.417l-.046-.129a7.027 7.027 0 00-1-1.8l-.136-.18-.589-.319a7.821 7.821 0 01-.934 5.672zM15.071 8.393a16.38 16.38 0 012.028.624 8.79 8.79 0 011.76-.925l-.626-.339a27.477 27.477 0 00-3.162.64zm23.251 23.534l12.279-6.648-11.952-6.471a19.532 19.532 0 01-.327 13.119zM21.431 10.035a7.462 7.462 0 00-1.413.338 28.8 28.8 0 015 3.611 24.159 24.159 0 013.281-.781L22.32 9.965a8.042 8.042 0 00-.889.07z" fill="currentColor"/><path d="M27.232 35.217A20.478 20.478 0 018.983 27.68a14.378 14.378 0 00-3.082 5.513 4.6 4.6 0 00-.1 1.766c.275.381.576.766.928 1.184a17.231 17.231 0 008.264 5.321 17.41 17.41 0 004.46.679l13.123-7.108a9.066 9.066 0 00.166-1.652 15.324 15.324 0 01-5.51 1.834zM9.329 23.5a40.33 40.33 0 015.27-4.321 9.895 9.895 0 01-.348-.853 8.029 8.029 0 01.6-6.952c.075-.123.163-.232.243-.349a9.319 9.319 0 00-3.894-.384 9.608 9.608 0 00-3.266 7.322 11.841 11.841 0 00.693 3.918 13.957 13.957 0 00.702 1.619zm7.337-6.019c.035.1.08.189.117.284a40.837 40.837 0 015.47-2.772 24.243 24.243 0 00-4.679-3 5.142 5.142 0 00-.538.715 5.52 5.52 0 00-.37 4.778zm9.979 5.898a6.872 6.872 0 002.384-.779 32.135 32.135 0 00-4.634-5.707c-.306.112-.612.228-.922.355a36.858 36.858 0 00-5.365 2.723 9.725 9.725 0 008.537 3.408zM9.665 7.888a19.768 19.768 0 014.961-2.095l-10.7-5.8v13.081a19.816 19.816 0 015.739-5.186zm21.373 12.827a5.516 5.516 0 00.372-4.779c-.05-.147-.115-.289-.176-.432a15.972 15.972 0 00-4.075.537 35 35 0 013.804 4.782c.02-.037.053-.07.075-.108z" fill="currentColor"/><path d="M26.883 32.685a12.352 12.352 0 005.551-2.151 22.653 22.653 0 00-2.122-5.718 9.443 9.443 0 01-3.309 1.1 12.4 12.4 0 01-11.026-4.541 38.391 38.391 0 00-5.249 4.39 17.78 17.78 0 0016.155 6.92zm-19.4-7.217a16.386 16.386 0 01-1.27-2.741 13.6 13.6 0 01-.47-7.809 16.158 16.158 0 00-1.26 2.085c-.216.427-.393.823-.556 1.2V31.03a20.35 20.35 0 013.556-5.562zm28.557 5.247c-.263.3-.544.583-.833.855q.052.48.077.945a18.343 18.343 0 00.756-1.8zM4.763 37.793c-.309-.369-.58-.718-.84-1.066v13.828l11.649-6.31a23.43 23.43 0 01-1.293-.321 19.865 19.865 0 01-9.516-6.131zM39.471 42.2a3.131 3.131 0 113.14 3.066 3.095 3.095 0 01-3.14-3.066zm.6 0a2.538 2.538 0 102.544-2.433 2.482 2.482 0 00-2.548 2.433zm4.107 1.719h-.6l-1.005-1.574h-.611v1.574h-.519v-3.412h1.53a1.719 1.719 0 01.854.165.841.841 0 01.386.732c0 .677-.478.926-1.1.941zm-1.648-2c.492 0 1.168.087 1.168-.526 0-.44-.386-.5-.827-.5h-.907v1.03zm166.893.281a3.131 3.131 0 113.14 3.066 3.095 3.095 0 01-3.14-3.066zm.6 0a2.538 2.538 0 102.544-2.433 2.482 2.482 0 00-2.548 2.433zm4.107 1.719h-.6l-1-1.574h-.611v1.574h-.518v-3.412h1.531a1.719 1.719 0 01.854.165.841.841 0 01.386.732c0 .677-.478.926-1.1.941zm-1.648-2c.492 0 1.168.087 1.168-.526 0-.44-.387-.5-.827-.5h-.907v1.03z" fill="currentColor"/></svg>
|
@@ -1,48 +0,0 @@
|
|
1
|
-
// script adapted from Adam Argyle's tutorial: https://web.dev/building-a-theme-switch-component/
|
2
|
-
|
3
|
-
const storageKey = 'theme-preference';
|
4
|
-
|
5
|
-
const onClick = () => {
|
6
|
-
theme.value = theme.value === 'light' ? 'dark' : 'light';
|
7
|
-
|
8
|
-
setPreference();
|
9
|
-
};
|
10
|
-
|
11
|
-
const getColorPreference = () => {
|
12
|
-
if (localStorage.getItem(storageKey)) return localStorage.getItem(storageKey);
|
13
|
-
else
|
14
|
-
return window.matchMedia('(prefers-color-scheme: dark)').matches
|
15
|
-
? 'dark'
|
16
|
-
: 'light';
|
17
|
-
};
|
18
|
-
|
19
|
-
const setPreference = () => {
|
20
|
-
localStorage.setItem(storageKey, theme.value);
|
21
|
-
reflectPreference();
|
22
|
-
};
|
23
|
-
|
24
|
-
const reflectPreference = () => {
|
25
|
-
document.firstElementChild.setAttribute('data-bs-theme', theme.value);
|
26
|
-
|
27
|
-
document
|
28
|
-
.querySelector('#theme-toggle')
|
29
|
-
?.setAttribute('aria-label', theme.value);
|
30
|
-
};
|
31
|
-
|
32
|
-
const theme = {
|
33
|
-
value: getColorPreference(),
|
34
|
-
};
|
35
|
-
|
36
|
-
reflectPreference();
|
37
|
-
|
38
|
-
window.onload = () => {
|
39
|
-
reflectPreference();
|
40
|
-
document.querySelector('#theme-toggle').addEventListener('click', onClick);
|
41
|
-
};
|
42
|
-
|
43
|
-
window
|
44
|
-
.matchMedia('(prefers-color-scheme: dark)')
|
45
|
-
.addEventListener('change', ({ matches: isDark }) => {
|
46
|
-
theme.value = isDark ? 'dark' : 'light';
|
47
|
-
setPreference();
|
48
|
-
});
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|