Отображение предпросмотра
parent
412019d39f
commit
61ad931508
|
@ -1,6 +1,6 @@
|
||||||
{%- import 'macros.jinja2' as macros -%}
|
{%- import 'macros.jinja2' as macros -%}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="{{request.locale_name.replace('_', '-')}}">
|
<html lang="{{request.locale_name.replace('_', '-')}}" prefix="og: http://ogp.me/ns#">
|
||||||
<head>
|
<head>
|
||||||
{%- block head %}
|
{%- block head %}
|
||||||
<title>{{title}}</title>
|
<title>{{title}}</title>
|
||||||
|
@ -10,8 +10,7 @@
|
||||||
<meta name="description" content="{{description}}">
|
<meta name="description" content="{{description}}">
|
||||||
<meta name="generator" content="flatfilecms">
|
<meta name="generator" content="flatfilecms">
|
||||||
<link rel="icon" type="image/png" href="/static/img/favicon.png">
|
<link rel="icon" type="image/png" href="/static/img/favicon.png">
|
||||||
{%- if amphtml is defined %}
|
{%- if amphtml is defined %} <link rel="amphtml" href="{{amphtml}}">
|
||||||
<link rel="amphtml" href="{{amphtml}}">
|
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- if feed is defined %}
|
{%- if feed is defined %}
|
||||||
<link rel="alternate" type="application/atom+xml" title="Atom feed" href="{{feed['links']['atom']}}">
|
<link rel="alternate" type="application/atom+xml" title="Atom feed" href="{{feed['links']['atom']}}">
|
||||||
|
@ -33,9 +32,9 @@
|
||||||
{%- if author and 'twitter' in author %}
|
{%- if author and 'twitter' in author %}
|
||||||
<meta name="twitter:creator" content="@{{author['twitter']}}">
|
<meta name="twitter:creator" content="@{{author['twitter']}}">
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- if image %}
|
{%- if preview or image %}
|
||||||
<meta name="twitter:image" content="{{image}}">
|
<meta name="twitter:image" content="{{preview|default(image)}}">
|
||||||
<meta property="og:image" content="{{image}}" />
|
<meta property="og:image" content="{{preview|default(image)}}" />
|
||||||
<meta name="twitter:card" content="summary_large_image">
|
<meta name="twitter:card" content="summary_large_image">
|
||||||
{%- else %}
|
{%- else %}
|
||||||
<meta name="twitter:card" content="summary">
|
<meta name="twitter:card" content="summary">
|
||||||
|
|
|
@ -14,6 +14,9 @@
|
||||||
<main class="py-4">
|
<main class="py-4">
|
||||||
<article class="container">
|
<article class="container">
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
{% if summary %}
|
||||||
|
<div class="alert alert-info" role="alert">{{summary}}</div>
|
||||||
|
{% endif %}
|
||||||
{% if content %}
|
{% if content %}
|
||||||
{{content|markdown}}
|
{{content|markdown}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Reference in New Issue