platzky 0.2.3__py3-none-any.whl → 0.2.4__py3-none-any.whl

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.
@@ -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
  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
@@ -13,22 +13,23 @@ platzky/db/json_file_db.py,sha256=UQ8TadELmqOzj_tgNfmzhtCkDkMAgcB9vaUy0GQXUY4,10
13
13
  platzky/models.py,sha256=8ATKVrGRtQ1JV_z7IdYbx1cxBU7ISoXjTmNxTlxok-k,1450
14
14
  platzky/platzky.py,sha256=3KljmS4lTB1yscOSDoavZ2yFwHcdQ_K8Om8qlJBA73U,4649
15
15
  platzky/plugin_loader.py,sha256=KYLDSEd_hseAgBuSbikerU_IFx-YmcYK5UwYw7kla2E,1106
16
+ platzky/plugins/google-tag-manager/entrypoint.py,sha256=yY5UqFvSdj3tt2upwNS8JkTrKcrbwlaaE2XQ6sRiGLc,1011
16
17
  platzky/plugins/redirections/entrypoint.py,sha256=HZsZBr8f7UkdYW0AJfUuG1vdEvWcpjoWMfm3cUXVHD4,1565
17
18
  platzky/plugins/sendmail/entrypoint.py,sha256=ioVUh_YgxyA4DnHRBUbg9ze08EKX_iCbFhbK145icjE,1237
18
19
  platzky/seo/seo.py,sha256=5Rl-ZQ3DWw65x0V7mpIkmUfxXTb6i5PEbIrAX7pzV70,2710
19
20
  platzky/static/blog.css,sha256=jF-8ykgpbPp58SCUqygBhCm4o7ggULojbxpnk6Jbx3c,7895
20
21
  platzky/templates/404.html,sha256=EheoLSWylOscLH8FmcMA4c6Jw14i5HkSvE_GXzGIrUo,78
21
- platzky/templates/base.html,sha256=D9W3UHz3SmLBcqzCexD3pfvQWhK3c5crKvoa0SaaST4,4966
22
+ platzky/templates/base.html,sha256=XpY5GOsuXiroLzSo0sQqIMIGSGx5AyhdHQOK9ioxVXM,4988
22
23
  platzky/templates/blog.html,sha256=aPl-DzLX85bHv7tN8UjlABR086PUJ9IGlGbIBioFHGA,1281
23
24
  platzky/templates/body_meta.html,sha256=au61f54ZK8SdovSpoUROjyy5fi3K6n_N5P-QjW7S5-8,526
24
25
  platzky/templates/feed.xml,sha256=I9cz7vnxx-TfbLIDHFXfrC3S2Nt9B6PrWf3u4zSIi78,863
25
- platzky/templates/head_meta.html,sha256=yFHTEYrVd8QsGPVJK4M-NsZ1OcDO8PU5qTvhP9mkPTk,1370
26
+ platzky/templates/head_meta.html,sha256=AEUPScGOBOQl6OIZ6NhcY0Sh3A17T8KHwJ3hmI4AYuA,1380
26
27
  platzky/templates/home.html,sha256=nqoVVvaNBd1ceun6KOZB_eY20xf4Mjtu8LTl1Q_Ap6c,3900
27
28
  platzky/templates/page.html,sha256=8tS9K5dXfCKItvOlpEuURnWohnWjs6WW6zeBJFLARUM,647
28
29
  platzky/templates/post.html,sha256=GSgjIZsOQKtNx3cEbquSjZ5L4whPnG6MzRyoq9k4B8Q,1906
29
30
  platzky/templates/robots.txt,sha256=2_j2tiYtYJnzZUrANiX9pvBxyw5Dp27fR_co18BPEJ0,116
30
31
  platzky/templates/sitemap.xml,sha256=iIJZ91_B5ZuNLCHsRtsGKZlBAXojOTP8kffqKLacgvs,578
31
32
  platzky/www_handler.py,sha256=pF6Rmvem1sdVqHD7z3RLrDuG-CwAqfGCti50_NPsB2w,725
32
- platzky-0.2.3.dist-info/METADATA,sha256=rwGGJyQN5mC_HiCEf7WSNQmDJUwJi2VrcjEB11edO9E,1591
33
- platzky-0.2.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
34
- platzky-0.2.3.dist-info/RECORD,,
33
+ platzky-0.2.4.dist-info/METADATA,sha256=0OfFP9xpFYKvGbAnNVJ9qsKyq5D6l2FvsnsPxEzr3GE,1591
34
+ platzky-0.2.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
35
+ platzky-0.2.4.dist-info/RECORD,,