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:
@@ -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>
|
||||
|
0
site/themes/default/templates/about.html
Normal file
0
site/themes/default/templates/about.html
Normal file
8
site/themes/default/templates/blog-post.html
Normal file
8
site/themes/default/templates/blog-post.html
Normal 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 %}
|
17
site/themes/default/templates/blog.html
Normal file
17
site/themes/default/templates/blog.html
Normal 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 %}
|
@@ -1,5 +1,5 @@
|
||||
{% extends "themes/default/templates/partials/base.html" %}
|
||||
|
||||
{% block content %}
|
||||
{{ entry.content }}
|
||||
{{ entry.content|raw }}
|
||||
{% endblock %}
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user