_layouts/default.html in moonwalk-0.0.3 vs _layouts/default.html in moonwalk-0.0.4
- old
+ new
@@ -1,20 +1,37 @@
<!DOCTYPE html>
<html lang="{{ page.lang | default: "en" }}" class="html" data-theme="{{ site.theme_config.appearance | default: "auto" }}">
{%- include head.html -%}
<body>
<main class="page-content" aria-label="Content">
- <div class="w">
- {{ content }}
- {% include toggle_theme_button.html %}
+ <div class="w">
+ {{ content }}
+ {% if site.theme_config.appearance_toggle %}
+ {% include toggle_theme_button.html %}
+ {% endif %}
+ <div class="credits">
+ {%- if site.theme_config.show_copyright == true -%}
+ © {{ "now" | date: "%Y" }} {{site.author}}
+
+ •
+
+ {%- endif -%}
+ {%- if site.soopr -%}
+ Powered by <a href="https://www.soopr.co" target="_blank" rel="noreferrer">Soopr</a>
+
+ •
+
+ {%- endif -%}
+ Theme <a href="https://github.com/abhinavs/moonwalk" target="_blank" rel="noreferrer">Moonwalk</a>
</div>
+ </div>
</main>
- {% if site.goat_counter and jekyll.environment == "production" %}
- {% include goat_counter.html %}
- {% endif %}
-
- {% if site.theme_config.show_soopr %}
- <script src="{{ site.theme_config.soopr_base_url }}/soopr.js" ></script>
- {% endif %}
+ {%- if site.soopr -%}
+ {%- if site.soopr.publish_token and jekyll.environment == "production" -%}
+ <script async defer data-soopr-token="{{site.soopr.publish_token}}" src="https://sdk.soopr.co/soopr.js"></script>
+ {%- else -%}
+ <script async defer src="https://sdk.soopr.co/soopr.js"></script>
+ {%- endif -%}
+ {%- endif -%}
</body>
</html>