1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-12 16:14:16 +02:00

Flextype Slim Integration - next round of integration

This commit is contained in:
Awilum
2019-02-24 11:32:04 +03:00
parent 205bc95ed3
commit af73c7ffe8
6 changed files with 36 additions and 5 deletions

View File

@@ -4,8 +4,7 @@ content: |
Welcome!
</h1>
<p style="text-align: center;" class="lead">
Welcome to your new Flextype powered website. [site_url]
[images path="about/lilia.jpg"]
Welcome to your new Flextype powered website.
<br>
Flextype is succesfully installed, you can start editing the content and customising your site in <a href="./admin">Admin panel</a>.
</p>

View File

View File

@@ -0,0 +1,8 @@
{% extends "themes/default/templates/partials/base.html" %}
{% block content %}
<h1>{{ entry.title }}</h1>
<div class="blog-post">
{{ entry.content|raw }}
</div>
{% endblock %}

View File

@@ -0,0 +1,17 @@
{% extends "themes/default/templates/partials/base.html" %}
{% block content %}
<h1>{{ $entry['title'] }}</h1>
{{ entry.content|raw }}
{% for entry in entries_fetch_all('blog', 'date', 'DESC') %}
<a href="{{ entry.slug }}" class="blog-post">
<h3>{{ entry.title }}</h3>
<p>{{ entry.summary|raw }}</p>
<div>{{ entry.date }}</div>
</a>
{% endfor %}
{% endblock %}

View File

@@ -1,5 +1,5 @@
{% extends "themes/default/templates/partials/base.html" %}
{% block content %}
{{ entry.content }}
{{ entry.content|raw }}
{% endblock %}

View File

@@ -1,8 +1,15 @@
<!DOCTYPE html>
<html>
<!doctype html>
<html lang="{{ registry.settings.locale }}">
<head>
{% block head %}
<meta charset="utf-8" />
<meta charset="{{ registry.settings.charset|lower }}">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="{% if entry.description %}{{ entry.description }}{% else %}{{ registry.settings.description }}{% endif %}">
<meta name="keywords" content="{% if entry.keywords %}{{ entry.keywords }}{% else %}{{ registry.settings.keywords }}{% endif %}">
<meta name="robots" content="{% if entry.robots %}{{ entry.robots }}{% else %}{{ registry.settings.robots }}{% endif %}">
<meta name="generator" content="Powered by Flextype Flextype::VERSION" />
<title>{% if entry.title %}{{ entry.title|e('html') }} | {% endif %}{{ registry.settings.title|e('html') }}</title>
{% endblock %}
</head>