resp
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
{% else %}
|
||||
<div class="blog-header">
|
||||
{% endif %}
|
||||
{{ page.content }}
|
||||
{{ page.content|raw }}
|
||||
</div>
|
||||
|
||||
{% if config.plugins.breadcrumbs.enabled %}
|
||||
@@ -18,7 +18,7 @@
|
||||
{% endif %}
|
||||
|
||||
<div class="content-wrapper blog-content-list grid pure-g">
|
||||
<div id="listing" class="block pure-u-2-3">
|
||||
<div id="listing" class="block pure-u-2-3 h-feed">
|
||||
{% for child in collection %}
|
||||
{% include 'partials/blog_item.html.twig' with {'blog':page, 'page':child, 'truncate':true} %}
|
||||
{% endfor %}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{% extends 'partials/base.html.twig' %}
|
||||
|
||||
{% block content %}
|
||||
{{ page.content }}
|
||||
{{ page.content|raw }}
|
||||
{% endblock %}
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
{% block content %}
|
||||
<div id="error">
|
||||
<div>
|
||||
<h1>Error {{ page.header.http_response_code }}</h1>
|
||||
<h1>{{ 'ERROR'|t }} {{ page.header.http_response_code }}</h1>
|
||||
<p>
|
||||
{{ page.content }}
|
||||
{{ page.content|raw }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
{% block content %}
|
||||
|
||||
{{ content }}
|
||||
{{ content|raw }}
|
||||
{% include "forms/form.html.twig" %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
{% endif %}
|
||||
|
||||
<div class="blog-content-item grid pure-g-r">
|
||||
<div id="item" class="block pure-u-2-3">
|
||||
<div id="item" class="block pure-u-2-3 h-entry">
|
||||
{% include 'partials/blog_item.html.twig' with {'blog':page.parent, 'truncate':false} %}
|
||||
</div>
|
||||
<div id="sidebar" class="block size-1-3 pure-u-1-3">
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
{% endfor %}
|
||||
{% for mitem in site.menu %}
|
||||
<li>
|
||||
<a href="{{ mitem.url }}">
|
||||
<a {% if mitem.class %}class="{{ mitem.class }}"{% endif %} href="{{ mitem.url }}">
|
||||
{% if mitem.icon %}<i class="fa fa-{{ mitem.icon }}"></i>{% endif %}
|
||||
{{ mitem.text }}
|
||||
</a>
|
||||
@@ -48,9 +48,9 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{{ page.content }}
|
||||
{{ page.content|raw }}
|
||||
{% for module in page.collection() %}
|
||||
<div id="{{ _self.pageLinkName(module.menu) }}"></div>
|
||||
{{ module.content }}
|
||||
{{ module.content|raw }}
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div class="modular-row features {{ page.header.class}}">
|
||||
{{ content }}
|
||||
{{ content|raw }}
|
||||
<div class="feature-items">
|
||||
{% for feature in page.header.features %}
|
||||
<div class="feature">
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{% set showcase_image = page.media.images|first.grayscale().contrast(20).brightness(-125).colorize(-35,81,122) %}
|
||||
{% if showcase_image %}
|
||||
<div class="modular-row showcase flush-top" style="background-image: url({{ showcase_image.url }});">
|
||||
<div class="modular-row showcase{% if page == page.parent.collection.first %} flush-top{% endif %}" style="background-image: url({{ showcase_image.url }});">
|
||||
{% else %}
|
||||
<div class="modular-row showcase">
|
||||
{% endif %}
|
||||
{{ content }}
|
||||
{{ content|raw }}
|
||||
|
||||
{% for button in page.header.buttons %}
|
||||
<a class="button{% if button.primary %} primary{% endif %}" href="{{ button.url }}">{{ button.text }}</a>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div class="modular-row callout">
|
||||
{% set image = page.media.images|first %}
|
||||
{% if image %}
|
||||
{{ image.cropResize(400,400).html('','','align-'~page.header.image_align) }}
|
||||
{{ image.cropResize(400,400).html('','','align-'~page.header.image_align)|raw }}
|
||||
{% endif %}
|
||||
{{ content }}
|
||||
{{ content|raw }}
|
||||
</div>
|
||||
|
||||
@@ -1,22 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
{% set theme_config = attribute(config.themes, config.system.pages.theme) %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ grav.language.getActive ?: grav.config.site.default_lang }}">
|
||||
<head>
|
||||
{% block head %}
|
||||
<meta charset="utf-8" />
|
||||
<title>{% if header.title %}{{ header.title|e('html') }} | {% endif %}{{ site.title|e('html') }}</title>
|
||||
{% include 'partials/metadata.html.twig' %}
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<link rel="icon" type="image/png" href="{{ url('theme://images/favicon.png', true) }}" />
|
||||
<link rel="icon" type="image/png" href="{{ url('theme://images/favicon.png') }}" />
|
||||
<link rel="canonical" href="{{ page.url(true, true) }}" />
|
||||
|
||||
{% block stylesheets %}
|
||||
{% do assets.addCss('theme://css/pure-0.5.0/grids-min.css', 103) %}
|
||||
{% do assets.addCss('theme://css-compiled/nucleus.css',102) %}
|
||||
{% do assets.addCss('theme://css-compiled/template.css',101) %}
|
||||
{% do assets.addCss('theme://css/custom.css',100) %}
|
||||
{% do assets.addCss('theme://css/font-awesome.min.css',100) %}
|
||||
{% do assets.addCss('theme://css-compiled/nucleus.css', 102) %}
|
||||
{% do assets.addCss('theme://css-compiled/template.css', 101) %}
|
||||
{% do assets.addCss('theme://css/custom.css', 100) %}
|
||||
{% do assets.addCss('theme://css/font-awesome.min.css', 100) %}
|
||||
{% do assets.addCss('theme://css/slidebars.min.css') %}
|
||||
|
||||
{% if browser.getBrowser == 'msie' and browser.getVersion == 10 %}
|
||||
@@ -27,17 +26,20 @@
|
||||
{% do assets.addJs('theme://js/html5shiv-printshiv.min.js') %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{{ assets.css() }}
|
||||
|
||||
{% block javascripts %}
|
||||
{% do assets.addJs('jquery',101) %}
|
||||
{% do assets.addJs('theme://js/modernizr.custom.71422.js',100) %}
|
||||
{% do assets.addJs('jquery', 101) %}
|
||||
{% do assets.addJs('theme://js/modernizr.custom.71422.js', 100) %}
|
||||
{% do assets.addJs('theme://js/antimatter.js') %}
|
||||
{% do assets.addJs('theme://js/slidebars.min.js') %}
|
||||
{% endblock %}
|
||||
{{ assets.js() }}
|
||||
|
||||
{% endblock head%}
|
||||
{% block assets deferred %}
|
||||
{{ assets.css()|raw }}
|
||||
{{ assets.js()|raw }}
|
||||
{% endblock %}
|
||||
|
||||
{% endblock head %}
|
||||
</head>
|
||||
<body id="top" class="{{ page.header.body_classes }}">
|
||||
<div id="sb-site">
|
||||
@@ -76,23 +78,25 @@
|
||||
</footer>
|
||||
{% endblock %}
|
||||
</div>
|
||||
<div class="sb-slidebar sb-left sb-width-thin">
|
||||
<div id="panel">
|
||||
{% include 'partials/navigation.html.twig' %}
|
||||
{% block sidebar_navigation %}
|
||||
<div class="sb-slidebar sb-left sb-width-thin">
|
||||
<div id="panel">
|
||||
{% include 'partials/navigation.html.twig' %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% block bottom %}
|
||||
|
||||
<script>
|
||||
$(function () {
|
||||
$(document).ready(function() {
|
||||
$.slidebars({
|
||||
hideControlClasses: true,
|
||||
scrollLock: true
|
||||
});
|
||||
<script>
|
||||
$(function () {
|
||||
$(document).ready(function() {
|
||||
$.slidebars({
|
||||
hideControlClasses: true,
|
||||
scrollLock: true
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</script>
|
||||
{{ assets.js('bottom')|raw }}
|
||||
{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div class="list-item">
|
||||
<div class="list-item h-entry">
|
||||
|
||||
{% set header_image = page.header.header_image|defined(true) %}
|
||||
{% set header_image_width = page.header.header_image_width|defined(900) %}
|
||||
@@ -7,24 +7,26 @@
|
||||
|
||||
<div class="list-blog-header">
|
||||
<span class="list-blog-date">
|
||||
<span>{{ page.date|date("d") }}</span>
|
||||
<em>{{ page.date|date("M") }}</em>
|
||||
<time class="dt-published" datetime="{{ page.date|date("c") }}">
|
||||
<span>{{ page.date|date("d") }}</span>
|
||||
<em>{{ page.date|date("M") }}</em>
|
||||
</time>
|
||||
</span>
|
||||
{% if page.header.link %}
|
||||
<h4>
|
||||
{% if page.header.continue_link is not sameas(false) %}
|
||||
<a href="{{ page.url }}"><i class="fa fa-angle-double-right"></i></a>
|
||||
<h4 class="p-name">
|
||||
{% if page.header.continue_link is not same as(false) %}
|
||||
<a href="{{ page.url }}"><i class="fa fa-angle-double-right u-url"></i></a>
|
||||
{% endif %}
|
||||
<a href="{{ page.header.link }}">{{ page.title }}</a>
|
||||
<a href="{{ page.header.link }}" class="u-url">{{ page.title }}</a>
|
||||
</h4>
|
||||
{% else %}
|
||||
<h4><a href="{{ page.url }}">{{ page.title }}</a></h4>
|
||||
<h4 class="p-name"><a href="{{ page.url }}" class="u-url">{{ page.title }}</a></h4>
|
||||
{% endif %}
|
||||
|
||||
{% if page.taxonomy.tag %}
|
||||
<span class="tags">
|
||||
{% for tag in page.taxonomy.tag %}
|
||||
<a href="{{ blog.url }}/tag{{ config.system.param_sep }}{{ tag }}">{{ tag }}</a>
|
||||
<a href="{{ blog.url|rtrim('/') }}/tag{{ config.system.param_sep }}{{ tag }}" class="p-category">{{ tag }}</a>
|
||||
{% endfor %}
|
||||
</span>
|
||||
{% endif %}
|
||||
@@ -34,30 +36,39 @@
|
||||
{% else %}
|
||||
{% set header_image_media = page.media.images|first %}
|
||||
{% endif %}
|
||||
{{ header_image_media.cropZoom(header_image_width, header_image_height).html }}
|
||||
{{ header_image_media.cropZoom(header_image_width, header_image_height).html|raw }}
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="list-blog-padding">
|
||||
|
||||
{% if page.header.continue_link is sameas(false) %}
|
||||
{{ page.content }}
|
||||
{% if page.header.continue_link is same as(false) %}
|
||||
<div class="e-content">
|
||||
{{ page.content|raw }}
|
||||
</div>
|
||||
{% if not truncate %}
|
||||
{% set show_prev_next = true %}
|
||||
{% endif %}
|
||||
{% elseif truncate and page.summary != page.content %}
|
||||
{{ page.summary }}
|
||||
<p><a href="{{ page.url }}">Continue Reading...</a></p>
|
||||
<div class="p-summary e-content">
|
||||
{{ page.summary|raw }}
|
||||
<p><a href="{{ page.url }}">{{ 'BLOG.ITEM.CONTINUE_READING'|t }}</a></p>
|
||||
</div>
|
||||
{% elseif truncate %}
|
||||
{% if page.summary != page.content %}
|
||||
{{ page.content|truncate(550) }}
|
||||
{% else %}
|
||||
{{ page.content }}
|
||||
{% endif %}
|
||||
<p><a href="{{ page.url }}">Continue Reading...</a></p>
|
||||
<div class="p-summary e-content">
|
||||
{{ page.content|raw }}
|
||||
<p><a href="{{ page.url }}">{{ 'BLOG.ITEM.CONTINUE_READING'|t }}</a></p>
|
||||
</div>
|
||||
{% else %}
|
||||
{{ page.content }}
|
||||
<div class="e-content">
|
||||
{{ page.content|raw }}
|
||||
</div>
|
||||
|
||||
{% if config.plugins.comments.enabled %}
|
||||
{% include 'partials/comments.html.twig' %}
|
||||
{% endif %}
|
||||
|
||||
{% set show_prev_next = true %}
|
||||
{% endif %}
|
||||
|
||||
@@ -65,11 +76,11 @@
|
||||
|
||||
<p class="prev-next">
|
||||
{% if not page.isFirst %}
|
||||
<a class="button" href="{{ page.nextSibling.url }}"><i class="fa fa-chevron-left"></i> Next Post</a>
|
||||
<a class="button" href="{{ page.nextSibling.url }}"><i class="fa fa-chevron-left"></i> {{ 'BLOG.ITEM.NEXT_POST'|t }}</a>
|
||||
{% endif %}
|
||||
|
||||
{% if not page.isLast %}
|
||||
<a class="button" href="{{ page.prevSibling.url }}">Previous Post <i class="fa fa-chevron-right"></i></a>
|
||||
<a class="button" href="{{ page.prevSibling.url }}">{{ 'BLOG.ITEM.PREV_POST'|t }} <i class="fa fa-chevron-right"></i></a>
|
||||
{% endif %}
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
@@ -1,23 +1,34 @@
|
||||
{% import _self as macros %}
|
||||
|
||||
{% macro loop(page) %}
|
||||
{% import _self as macros %}
|
||||
{% for p in page.children.visible %}
|
||||
{% set current_page = (p.active or p.activeChild) ? 'active' : '' %}
|
||||
<li class="{{ current_page }}">
|
||||
<a href="{{ p.url }}">
|
||||
{% if p.header.icon %}<i class="fa fa-{{ p.header.icon }}"></i>{% endif %}
|
||||
{{ p.menu }}
|
||||
</a>
|
||||
{% if p.children.visible.count > 0 %}
|
||||
{% if p.children.visible.count > 0 %}
|
||||
<li class="has-children {{ current_page }}">
|
||||
<a href="{{ p.url }}">
|
||||
{% if p.header.icon %}<i class="fa fa-{{ p.header.icon }}"></i>{% endif %}
|
||||
{{ p.menu }}
|
||||
<span></span>
|
||||
</a>
|
||||
<ul>
|
||||
{{ _self.loop(p) }}
|
||||
{{ macros.loop(p) }}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</li>
|
||||
</li>
|
||||
{% else %}
|
||||
<li class="{{ current_page }}">
|
||||
<a href="{{ p.url }}">
|
||||
{% if p.header.icon %}<i class="fa fa-{{ p.header.icon }}"></i>{% endif %}
|
||||
{{ p.menu }}
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endmacro %}
|
||||
|
||||
<ul class="navigation">
|
||||
{% if theme_config.dropdown.enabled %}
|
||||
{{ _self.loop(pages) }}
|
||||
{{ macros.loop(pages) }}
|
||||
{% else %}
|
||||
{% for page in pages.children.visible %}
|
||||
{% set current_page = (page.active or page.activeChild) ? 'active' : '' %}
|
||||
|
||||
@@ -3,39 +3,39 @@
|
||||
|
||||
{% if config.plugins.simplesearch.enabled %}
|
||||
<div class="sidebar-content">
|
||||
<h4>SimpleSearch</h4>
|
||||
<h4>{{ 'SIDEBAR.SIMPLE_SEARCH.HEADLINE'|t }}</h4>
|
||||
{% include 'partials/simplesearch_searchbox.html.twig' %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if config.plugins.relatedpages.enabled and related_pages|length > 0 %}
|
||||
<h4>Related Posts</h4>
|
||||
<h4>{{ 'SIDEBAR.RELATED_POSTS.HEADLINE'|t }}</h4>
|
||||
{% include 'partials/relatedpages.html.twig' %}
|
||||
{% endif %}
|
||||
{% if config.plugins.random.enabled %}
|
||||
<div class="sidebar-content">
|
||||
<h4>Random Article</h4>
|
||||
<a class="button" href="{{ base_url }}/random"><i class="fa fa-retweet"></i> I'm Feeling Lucky!</a>
|
||||
<h4>{{ 'SIDEBAR.RANDOM_ARTICLE.HEADLINE'|t }}</h4>
|
||||
<a class="button" href="{{ base_url }}/random"><i class="fa fa-retweet"></i> {{ 'SIDEBAR.RANDOM_ARTICLE.FEELING_LUCKY'|t }}</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="sidebar-content">
|
||||
<h4>Some Text Widget</h4>
|
||||
<h4>{{ 'SIDEBAR.SOME_TEXT_WIDGET.HEADLINE'|t }}</h4>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna.</p>
|
||||
</div>
|
||||
{% if config.plugins.taxonomylist.enabled %}
|
||||
<div class="sidebar-content">
|
||||
<h4>Popular Tags</h4>
|
||||
<h4>{{ 'SIDEBAR.POPULAR_TAGS.HEADLINE'|t }}</h4>
|
||||
{% include 'partials/taxonomylist.html.twig' with {'base_url':new_base_url, 'taxonomy':'tag'} %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if config.plugins.archives.enabled %}
|
||||
<div class="sidebar-content">
|
||||
<h4>Archives</h4>
|
||||
<h4>{{ 'SIDEBAR.ARCHIVES.HEADLINE'|t }}</h4>
|
||||
{% include 'partials/archives.html.twig' with {'base_url':new_base_url} %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if config.plugins.feed.enabled %}
|
||||
<div class="sidebar-content syndicate">
|
||||
<h4>Syndicate</h4>
|
||||
<h4>{{ 'SIDEBAR.SYNDICATE.HEADLINE'|t }}</h4>
|
||||
<a class="button" href="{{ feed_url }}.atom"><i class="fa fa-rss-square"></i> Atom 1.0</a>
|
||||
<a class="button" href="{{ feed_url }}.rss"><i class="fa fa-rss-square"></i> RSS</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user