Skip to content

Commit

Permalink
Moved comment lines to inside if statements
Browse files Browse the repository at this point in the history
Signed-off-by: George Araújo <george.gcac@gmail.com>
  • Loading branch information
george-gca committed Dec 23, 2024
1 parent e165851 commit 602b4a5
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 49 deletions.
38 changes: 19 additions & 19 deletions _includes/distill_scripts.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
crossorigin="anonymous"
></script>

<!-- Mermaid and D3 -->
{% if page.mermaid and page.mermaid.enabled %}
<!-- Mermaid and D3 -->
<script
defer
src="{{ site.third_party_libraries.mermaid.url.js }}"
Expand All @@ -32,8 +32,8 @@
<script defer src="{{ '/assets/js/mermaid-setup.js' | relative_url | bust_file_cache }}" type="text/javascript"></script>
{% endif %}

<!-- Diff2HTML -->
{% if page.code_diff %}
<!-- Diff2HTML -->
<!-- diff2html doesn't go well with Bootstrap Table -->
<script
src="{{ site.third_party_libraries.diff2html.url.js }}"
Expand All @@ -43,8 +43,8 @@
<script defer src="{{ '/assets/js/diff2html-setup.js' | relative_url | bust_file_cache }}" type="text/javascript"></script>
{% endif %}

<!-- Leaflet -->
{% if page.map %}
<!-- Leaflet -->
<script
src="{{ site.third_party_libraries.leaflet.url.js }}"
integrity="{{ site.third_party_libraries.leaflet.integrity.js }}"
Expand All @@ -53,8 +53,8 @@
<script defer src="{{ '/assets/js/leaflet-setup.js' | relative_url | bust_file_cache }}" type="text/javascript"></script>
{% endif %}

<!-- Chart.js -->
{% if page.chart and page.chart.chartjs %}
<!-- Chart.js -->
<script
defer
src="{{ site.third_party_libraries.chartjs.url.js }}"
Expand All @@ -64,8 +64,8 @@
<script defer src="{{ '/assets/js/chartjs-setup.js' | relative_url | bust_file_cache }}" type="text/javascript"></script>
{% endif %}

<!-- ECharts -->
{% if page.chart and page.chart.echarts %}
<!-- ECharts -->
<script
src="{{ site.third_party_libraries.echarts.url.js.library }}"
integrity="{{ site.third_party_libraries.echarts.integrity.js.library }}"
Expand All @@ -81,8 +81,8 @@
<script defer src="{{ '/assets/js/echarts-setup.js' | relative_url | bust_file_cache }}" type="text/javascript"></script>
{% endif %}

<!-- Vega -->
{% if page.chart and page.chart.vega_lite %}
<!-- Vega -->
<script
defer
src="{{ site.third_party_libraries.vega.url.js }}"
Expand All @@ -104,8 +104,8 @@
<script defer src="{{ '/assets/js/vega-setup.js' | relative_url | bust_file_cache }}" type="text/javascript"></script>
{% endif %}

<!-- Tikzjax -->
{% if page.tikzjax %}
<!-- Tikzjax -->
<script
defer
src="https://tikzjax.com/v1/tikzjax.js"
Expand All @@ -114,18 +114,18 @@
></script>
{% endif %}

<!-- Typograms -->
{% if page.typograms %}
<!-- Typograms -->
<script src="{{ '/assets/js/typograms.js' | relative_url | bust_file_cache }}"></script>
{% endif %}

<!-- Tooltips -->
{% if site.enable_tooltips %}
<!-- Tooltips -->
<script src="{{ '/assets/js/tooltips-setup.js' | relative_url | bust_file_cache }}"></script>
{% endif %}

<!-- Medium Zoom JS -->
{% if site.enable_medium_zoom %}
<!-- Medium Zoom JS -->
<script
defer
src="{{ site.third_party_libraries.medium_zoom.url.js }}"
Expand All @@ -135,13 +135,13 @@
<script defer src="{{ '/assets/js/zoom.js' | relative_url | bust_file_cache }}"></script>
{% endif %}

<!-- Sidebar Table of Contents -->
{% if page.toc and page.toc.sidebar %}
<!-- Sidebar Table of Contents -->
<script defer src="{{ '/assets/js/bootstrap-toc.min.js' | relative_url | bust_file_cache }}"></script>
{% endif %}

<!-- Bootstrap Table -->
{% if page.pretty_table %}
<!-- Bootstrap Table -->
<!-- Bootstrap Table doesn't go well with diff2html -->
<script
defer
Expand All @@ -161,8 +161,8 @@

<!-- Removed Badges -->

<!-- MathJax -->
{% if site.enable_math %}
<!-- MathJax -->
<script
defer
type="text/javascript"
Expand All @@ -180,8 +180,8 @@
<!-- Removed Pseudocode -->
{% endif %}

<!-- Analytics -->
{% if site.enable_google_analytics %}
<!-- Analytics -->
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
<script defer src="{{ '/assets/js/google-analytics-setup.js' | relative_url | bust_file_cache }}"></script>
Expand All @@ -205,13 +205,13 @@
<script async defer src="https://openpanel.dev/op1.js"></script>
{% endif %}

<!-- Scrolling Progress Bar -->
{% if site.enable_progressbar %}
<!-- Scrolling Progress Bar -->
<script defer src="{{ '/assets/js/progress-bar.js' | relative_url | bust_file_cache }}" type="text/javascript"></script>
{% endif %}

<!-- Image Layouts -->
{% if page.images %}
<!-- Image Layouts -->
{% if page.images.compare %}
<script
defer
Expand Down Expand Up @@ -257,21 +257,21 @@
{% endif %}
{% endif %}

<!-- Jekyll Tabs -->
{% if page.tabs %}
<!-- Jekyll Tabs -->
<script src="{{ '/assets/js/tabs.min.js' | relative_url | bust_file_cache }}"></script>
{% endif %}

<!-- Back to Top -->
{% if site.back_to_top %}
<!-- Back to Top -->
<script src="{{ '/assets/js/vanilla-back-to-top.min.js' | relative_url | bust_file_cache }}"></script>
<script>
addBackToTop();
</script>
{% endif %}

<!-- Search -->
{% if site.search_enabled %}
<!-- Search -->
<script type="module" src="{{ '/assets/js/search/ninja-keys.min.js' | relative_url | bust_file_cache }}"></script>
<ninja-keys hideBreadcrumbs noAutoLoadMdIcons placeholder="Type to start searching"></ninja-keys>
<script src="{{ '/assets/js/search-setup.js' | relative_url | bust_file_cache }}"></script>
Expand Down
20 changes: 10 additions & 10 deletions _includes/head.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
crossorigin="anonymous"
>

<!-- Bootstrap Table -->
{% if page.pretty_table %}
<!-- Bootstrap Table -->
<link
defer
rel="stylesheet"
Expand Down Expand Up @@ -47,8 +47,8 @@

<!-- Styles -->

<!-- pseudocode -->
{% if page.pseudocode %}
<!-- pseudocode -->
<link
defer
rel="stylesheet"
Expand Down Expand Up @@ -84,8 +84,8 @@
</script>
{% endif %}

<!-- GeoJSON support via Leaflet -->
{% if page.map %}
<!-- GeoJSON support via Leaflet -->
<link
defer
rel="stylesheet"
Expand All @@ -95,8 +95,8 @@
>
{% endif %}

<!-- diff2html -->
{% if page.code_diff %}
<!-- diff2html -->
<link
defer
rel="stylesheet"
Expand All @@ -123,8 +123,8 @@
{% endif %}

{% if page.images %}
<!-- Image comparison slider -->
{% if page.images.compare %}
<!-- Image comparison slider -->
<link
defer
rel="stylesheet"
Expand All @@ -133,8 +133,8 @@
crossorigin="anonymous"
>
{% endif %}
<!-- Lightbox2 -->
{% if page.images.lightbox2 %}
<!-- Lightbox2 -->
<link
defer
rel="stylesheet"
Expand All @@ -143,17 +143,17 @@
crossorigin="anonymous"
>
{% endif %}
<!-- Photoswipe -->
{% if page.images.photoswipe %}
<!-- Photoswipe -->
<link
defer
rel="stylesheet"
href="{{ site.third_party_libraries.photoswipe.url.css }}"
crossorigin="anonymous"
>
{% endif %}
<!-- Image slider -->
{% if page.images.slider %}
<!-- Image slider -->
<link
defer
rel="stylesheet"
Expand All @@ -162,8 +162,8 @@
crossorigin="anonymous"
>
{% endif %}
<!-- Spotlight -->
{% if page.images.spotlight %}
<!-- Spotlight -->
<link
defer
rel="stylesheet"
Expand All @@ -172,8 +172,8 @@
crossorigin="anonymous"
>
{% endif %}
<!-- Venobox -->
{% if page.images.venobox %}
<!-- Venobox -->
<link
defer
rel="stylesheet"
Expand Down
Loading

0 comments on commit 602b4a5

Please sign in to comment.