correct the meta block portion (#4978)
This commit is contained in:
parent
60bedad29a
commit
6f99a24a2c
4 changed files with 7 additions and 18 deletions
|
|
@ -6,7 +6,6 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{% block title %} {{ title | striptags }} {% endblock %}</title>
|
||||
<meta name="generator" content="frappe">
|
||||
|
||||
{% block favicon %}
|
||||
<link rel="shortcut icon"
|
||||
href="{{ (favicon or "/assets/frappe/images/favicon.png") | abs_url }}"
|
||||
|
|
@ -16,20 +15,14 @@
|
|||
type="image/x-icon">
|
||||
{% endblock %}
|
||||
{%- block head -%}
|
||||
{% if meta_block is defined -%}
|
||||
{{ meta_block }}
|
||||
{%- endif %}
|
||||
|
||||
{% block meta_block %}{% endblock %}
|
||||
{% if head_html is defined -%}
|
||||
{{ head_html or "" }}
|
||||
{%- endif %}
|
||||
|
||||
{%- for link in web_include_css %}
|
||||
<link type="text/css" rel="stylesheet" href="{{ link|abs_url }}">
|
||||
{%- endfor -%}
|
||||
|
||||
{%- block head_include %}{{ head_include or "" }}{% endblock -%}
|
||||
|
||||
{%- block style %}{%- endblock -%}
|
||||
{%- endblock -%}
|
||||
<script>
|
||||
|
|
@ -95,15 +88,11 @@
|
|||
{%- endfor -%}
|
||||
</script>
|
||||
{% endif -%}
|
||||
|
||||
{%- for link in web_include_js %}
|
||||
<script type="text/javascript" src="{{ link|abs_url }}"></script>
|
||||
{%- endfor -%}
|
||||
|
||||
{%- block script %}{%- endblock %}
|
||||
|
||||
<!-- csrf_token -->
|
||||
|
||||
{%- block body_include %}{{ body_include or "" }}{% endblock -%}
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@
|
|||
{%- for name in metatags %}
|
||||
<meta {% if name == 'og:title' or name == "og:image" or name == "og:type" or name == "og:description" %} property="{{ name }}" {% else %} name="{{ name }}" {% endif %} content="{{ metatags[name]|striptags|escape }}" data-html-block="meta_block">
|
||||
{%- endfor -%}
|
||||
<meta property="og:url" content="{{ frappe.utils.get_url(path) }}"></meta>
|
||||
<meta itemprop="datePublished" content="{{ frappe.format_date(published_on) }}"></meta>
|
||||
<meta itemprop="author" content="{{ blogger }}"></meta>
|
||||
<meta property="og:url" content="{{ frappe.utils.get_url(path) }}">
|
||||
<meta itemprop="datePublished" content="{{ frappe.format_date(published_on) }}">
|
||||
<meta itemprop="author" content="{{ blogger }}">
|
||||
<meta itemprop="name" content="{{ name }}" data-html-block="meta_block">
|
||||
<meta itemprop="description" content="{{ description }}" data-html-block="meta_block">
|
||||
<meta itemprop="image" content="{{ frappe.utils.get_url(metatags["image"]) }}" data-html-block="meta_block">
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{% extends base_template_path %}
|
||||
|
||||
{% block hero %}{% endblock %}
|
||||
{% block content %}
|
||||
<div class="page-container" id="page-{{ name or route }}"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
{% extends "templates/web.html" %}
|
||||
{% include "templates/includes/meta_block.html" %}
|
||||
{% block meta_block %}
|
||||
{% include "templates/includes/meta_block.html" %}
|
||||
{% endblock %}
|
||||
{% block page_content %}
|
||||
|
||||
<div class="blog-container">
|
||||
<article class="blog-content" itemscope itemtype="http://schema.org/BlogPosting">
|
||||
<!-- begin blog content -->
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue