platzky 0.2.3__tar.gz → 0.2.4__tar.gz

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.
Files changed (35) hide show
  1. {platzky-0.2.3 → platzky-0.2.4}/PKG-INFO +1 -1
  2. platzky-0.2.4/platzky/plugins/google-tag-manager/entrypoint.py +29 -0
  3. {platzky-0.2.3 → platzky-0.2.4}/platzky/templates/base.html +2 -2
  4. {platzky-0.2.3 → platzky-0.2.4}/platzky/templates/head_meta.html +1 -1
  5. {platzky-0.2.3 → platzky-0.2.4}/pyproject.toml +1 -1
  6. {platzky-0.2.3 → platzky-0.2.4}/README.md +0 -0
  7. {platzky-0.2.3 → platzky-0.2.4}/platzky/__init__.py +0 -0
  8. {platzky-0.2.3 → platzky-0.2.4}/platzky/blog/__init__.py +0 -0
  9. {platzky-0.2.3 → platzky-0.2.4}/platzky/blog/blog.py +0 -0
  10. {platzky-0.2.3 → platzky-0.2.4}/platzky/blog/comment_form.py +0 -0
  11. {platzky-0.2.3 → platzky-0.2.4}/platzky/config.py +0 -0
  12. {platzky-0.2.3 → platzky-0.2.4}/platzky/db/__init__.py +0 -0
  13. {platzky-0.2.3 → platzky-0.2.4}/platzky/db/db.py +0 -0
  14. {platzky-0.2.3 → platzky-0.2.4}/platzky/db/db_loader.py +0 -0
  15. {platzky-0.2.3 → platzky-0.2.4}/platzky/db/google_json_db.py +0 -0
  16. {platzky-0.2.3 → platzky-0.2.4}/platzky/db/graph_ql_db.py +0 -0
  17. {platzky-0.2.3 → platzky-0.2.4}/platzky/db/json_db.py +0 -0
  18. {platzky-0.2.3 → platzky-0.2.4}/platzky/db/json_file_db.py +0 -0
  19. {platzky-0.2.3 → platzky-0.2.4}/platzky/models.py +0 -0
  20. {platzky-0.2.3 → platzky-0.2.4}/platzky/platzky.py +0 -0
  21. {platzky-0.2.3 → platzky-0.2.4}/platzky/plugin_loader.py +0 -0
  22. {platzky-0.2.3 → platzky-0.2.4}/platzky/plugins/redirections/entrypoint.py +0 -0
  23. {platzky-0.2.3 → platzky-0.2.4}/platzky/plugins/sendmail/entrypoint.py +0 -0
  24. {platzky-0.2.3 → platzky-0.2.4}/platzky/seo/seo.py +0 -0
  25. {platzky-0.2.3 → platzky-0.2.4}/platzky/static/blog.css +0 -0
  26. {platzky-0.2.3 → platzky-0.2.4}/platzky/templates/404.html +0 -0
  27. {platzky-0.2.3 → platzky-0.2.4}/platzky/templates/blog.html +0 -0
  28. {platzky-0.2.3 → platzky-0.2.4}/platzky/templates/body_meta.html +0 -0
  29. {platzky-0.2.3 → platzky-0.2.4}/platzky/templates/feed.xml +0 -0
  30. {platzky-0.2.3 → platzky-0.2.4}/platzky/templates/home.html +0 -0
  31. {platzky-0.2.3 → platzky-0.2.4}/platzky/templates/page.html +0 -0
  32. {platzky-0.2.3 → platzky-0.2.4}/platzky/templates/post.html +0 -0
  33. {platzky-0.2.3 → platzky-0.2.4}/platzky/templates/robots.txt +0 -0
  34. {platzky-0.2.3 → platzky-0.2.4}/platzky/templates/sitemap.xml +0 -0
  35. {platzky-0.2.3 → platzky-0.2.4}/platzky/www_handler.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: platzky
3
- Version: 0.2.3
3
+ Version: 0.2.4
4
4
  Summary: Not only blog engine
5
5
  License: MIT
6
6
  Requires-Python: >=3.10,<4.0
@@ -0,0 +1,29 @@
1
+ def process(app, plugin_config):
2
+ gtm_id = plugin_config["ID"]
3
+
4
+ head_code = (
5
+ """<!-- Google Tag Manager -->
6
+ <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
7
+ new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
8
+ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
9
+ 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
10
+ })(window,document,'script','dataLayer','"""
11
+ + gtm_id
12
+ + """');</script>
13
+ <!-- End Google Tag Manager -->
14
+ """
15
+ )
16
+ app.add_dynamic_head(head_code)
17
+
18
+ body = (
19
+ """<!-- Google Tag Manager (noscript) -->
20
+ <noscript><iframe src="https://www.googletagmanager.com/ns.html?id="""
21
+ + gtm_id
22
+ + """
23
+ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
24
+ <!-- End Google Tag Manager (noscript) -->
25
+ """
26
+ )
27
+ app.add_dynamic_body(body)
28
+
29
+ return app
@@ -1,5 +1,5 @@
1
1
  <!doctype html>
2
- <html lang="{{ language }}">
2
+ <html lang="{{ current_language }}">
3
3
  <head>
4
4
  {% block head_meta %}
5
5
  {% include "head_meta.html" %}
@@ -11,7 +11,7 @@
11
11
  <link rel="stylesheet" href="https://unpkg.com/leaflet.markercluster@1.5.3/dist/MarkerCluster.Default.css" />
12
12
  <link rel="stylesheet" href="{{ font.url }}">
13
13
  {% endblock %}
14
- <title>{% block title %}{% endblock %}</title>
14
+ <title>{% block title %} {{app_name}} {% endblock %}</title>
15
15
  <meta name="description" content=" {% block description %} {% endblock %} ">
16
16
  <style>
17
17
  html,
@@ -1,7 +1,7 @@
1
1
  <!-- Required meta tags -->
2
2
  <meta charset="utf-8">
3
3
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
4
- <link rel="alternate" hreflang="{{language}}" href="{{ request.base_url }}"/>
4
+ <link rel="alternate" hreflang="{{ current_language }}" href="{{ request.base_url }}"/>
5
5
  <link rel="shortcut icon" href="{{ url_for('static', filename='favicon.png') }}" type="image/x-icon">
6
6
 
7
7
  <link rel="canonical" href="{{ request.base_url }}"/>
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "platzky"
3
- version = "0.2.3"
3
+ version = "0.2.4"
4
4
  description = "Not only blog engine"
5
5
  authors = []
6
6
  license = "MIT"
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