mep template
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
enabled: true
|
||||
route: /blog
|
||||
+1
-14
@@ -1,17 +1,13 @@
|
||||
absolute_urls: false
|
||||
timezone: ''
|
||||
default_locale: null
|
||||
param_sep: ':'
|
||||
wrapped_site: false
|
||||
reverse_proxy_setup: false
|
||||
force_ssl: false
|
||||
force_lowercase_urls: true
|
||||
custom_base_url: ''
|
||||
username_regex: '^[a-z0-9_-]{3,16}$'
|
||||
pwd_regex: '(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}'
|
||||
intl_enabled: true
|
||||
languages:
|
||||
supported: { }
|
||||
include_default_lang: true
|
||||
translations: true
|
||||
translations_fallback: true
|
||||
@@ -19,7 +15,7 @@ languages:
|
||||
http_accept_language: false
|
||||
override_locale: false
|
||||
home:
|
||||
alias: /home
|
||||
alias: /projets
|
||||
hide_in_urls: false
|
||||
pages:
|
||||
theme: hehe
|
||||
@@ -29,7 +25,6 @@ pages:
|
||||
list:
|
||||
count: 20
|
||||
dateformat:
|
||||
default: null
|
||||
short: 'jS M Y'
|
||||
long: 'F jS \a\t g:ia'
|
||||
publish_dates: true
|
||||
@@ -57,9 +52,7 @@ pages:
|
||||
- json
|
||||
- rss
|
||||
- atom
|
||||
append_url_extension: ''
|
||||
expires: 604800
|
||||
cache_control: null
|
||||
last_modified: false
|
||||
etag: false
|
||||
vary_accept_encoding: false
|
||||
@@ -89,8 +82,6 @@ cache:
|
||||
lifetime: 604800
|
||||
gzip: false
|
||||
allow_webserver_gzip: false
|
||||
redis:
|
||||
socket: false
|
||||
twig:
|
||||
cache: false
|
||||
debug: true
|
||||
@@ -129,8 +120,6 @@ images:
|
||||
auto_fix_orientation: false
|
||||
media:
|
||||
enable_media_timestamp: false
|
||||
unsupported_inline_types: { }
|
||||
allowed_fallback_types: { }
|
||||
auto_metadata_exif: false
|
||||
upload_limit: 2097152
|
||||
session:
|
||||
@@ -141,10 +130,8 @@ session:
|
||||
secure: false
|
||||
httponly: true
|
||||
split: true
|
||||
path: null
|
||||
gpm:
|
||||
releases: stable
|
||||
proxy_url: null
|
||||
method: auto
|
||||
verify_peer: true
|
||||
official_gpm_only: true
|
||||
|
||||
@@ -1,42 +0,0 @@
|
||||
---
|
||||
title: Home
|
||||
body_classes: 'title-center title-h1h2'
|
||||
---
|
||||
|
||||
# Say Hello to Grav!
|
||||
## installation successful...
|
||||
|
||||
Congratulations! You have installed the **Base Grav Package** that provides a **simple page** and the default **Quark** theme to get you started.
|
||||
|
||||
!! If you see a **404 Error** when you click `Typography` in the menu, please refer to the [troubleshooting guide](http://learn.getgrav.org/troubleshooting/page-not-found).
|
||||
|
||||
### Find out all about Grav
|
||||
|
||||
* Learn about **Grav** by checking out our dedicated [Learn Grav](http://learn.getgrav.org) site.
|
||||
* Download **plugins**, **themes**, as well as other Grav **skeleton** packages from the [Grav Downloads](http://getgrav.org/downloads) page.
|
||||
* Check out our [Grav Development Blog](http://getgrav.org/blog) to find out the latest goings on in the Grav-verse.
|
||||
|
||||
!!! If you want a more **full-featured** base install, you should check out [**Skeleton** packages available in the downloads](http://getgrav.org/downloads).
|
||||
|
||||
### Edit this Page
|
||||
|
||||
To edit this page, simply navigate to the folder you installed **Grav** into, and then browse to the `user/pages/01.home` folder and open the `default.md` file in your [editor of choice](http://learn.getgrav.org/basics/requirements). You will see the content of this page in [Markdown format](http://learn.getgrav.org/content/markdown).
|
||||
|
||||
### Create a New Page
|
||||
|
||||
Creating a new page is a simple affair in **Grav**. Simply follow these simple steps:
|
||||
|
||||
1. Navigate to your pages folder: `user/pages/` and create a new folder. In this example, we will use [explicit default ordering](http://learn.getgrav.org/content/content-pages) and call the folder `03.mypage`.
|
||||
2. Launch your text editor and paste in the following sample code:
|
||||
|
||||
---
|
||||
title: My New Page
|
||||
---
|
||||
# My New Page!
|
||||
|
||||
This is the body of **my new page** and I can easily use _Markdown_ syntax here.
|
||||
|
||||
3. Save this file in the `user/pages/03.mypage/` folder as `default.md`. This will tell **Grav** to render the page using the **default** template.
|
||||
4. That is it! Reload your browser to see your new page in the menu.
|
||||
|
||||
! NOTE: The page will automatically show up in the Menu after the "Home" menu item. If you wish to change the name that shows up in the Menu, simple add: `menu: My Page` between the dashes in the page content. This is called the YAML front matter, and it is where you configure page-specific options.
|
||||
@@ -1,14 +0,0 @@
|
||||
---
|
||||
title: Projets
|
||||
continue_link: true
|
||||
content:
|
||||
items: '- ''@self.children'''
|
||||
limit: '5'
|
||||
order:
|
||||
by: date
|
||||
dir: desc
|
||||
pagination: '1'
|
||||
url_taxonomy_filters: '1'
|
||||
---
|
||||
|
||||
CC
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 248 KiB |
@@ -0,0 +1,14 @@
|
||||
---
|
||||
title: 'Projets N°1'
|
||||
media_order: 'Airbag_2.jpg,Airbag_2.jpg,nv_ivry_w.jpg'
|
||||
taxonomy:
|
||||
category:
|
||||
- 'Catégorie 1'
|
||||
- 'catégorie 2'
|
||||
tag:
|
||||
- 'catégrie 1'
|
||||
- 'cat 3'
|
||||
continue_link: true
|
||||
---
|
||||
|
||||
CC
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 221 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 235 KiB |
@@ -0,0 +1,10 @@
|
||||
---
|
||||
title: 'projet n°2'
|
||||
media_order: 'Cloud Crash Airbag.jpg'
|
||||
taxonomy:
|
||||
tag:
|
||||
- 'cat 3'
|
||||
continue_link: true
|
||||
---
|
||||
|
||||
Cvqfbv fdhqvbdfhqovb dhqjvjds vdfhsq ldbkqd q
|
||||
@@ -0,0 +1,8 @@
|
||||
---
|
||||
title: projets
|
||||
content:
|
||||
items:
|
||||
- '@self.children'
|
||||
---
|
||||
|
||||
fvqfbfdqv efvf
|
||||
@@ -0,0 +1,4 @@
|
||||
---
|
||||
title: News
|
||||
---
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
---
|
||||
title: 'A propros'
|
||||
---
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
.idea/
|
||||
@@ -0,0 +1,68 @@
|
||||
# v1.3.2
|
||||
## 05/21/2017
|
||||
|
||||
1. [](#improved)
|
||||
* Removed Grav trait in favor of `Grav::instance()`
|
||||
|
||||
# v1.3.1
|
||||
## 11/02/2017
|
||||
|
||||
1. [](#bugfix)
|
||||
* Don't need to lowercase the taxonomy now we have removed `case_insensitive_urls` option in Grav core
|
||||
|
||||
# v1.3.0
|
||||
## 10/31/2017
|
||||
|
||||
1. [](#new)
|
||||
* Added ability to show tags of the child pages of the current page [#17](https://github.com/getgrav/grav-plugin-taxonomylist/pull/17)
|
||||
1. [](#improved)
|
||||
* Improved child-pages logic to use the same include, just pass an optional `children_only` param
|
||||
* Lowercase all tags due to changes in Grav 1.3.8 where URL params are lowercase [#18](https://github.com/getgrav/grav-plugin-taxonomylist/issues/18)
|
||||
|
||||
# v1.2.7
|
||||
## 01/06/2016
|
||||
|
||||
2. [](#improved)
|
||||
* Removed extraneous encoding
|
||||
|
||||
# v1.2.6
|
||||
## 10/07/2015
|
||||
|
||||
2. [](#improved)
|
||||
* Added `active` class on active taxonomies
|
||||
|
||||
# v1.2.5
|
||||
## 07/19/2015
|
||||
|
||||
2. [](#improved)
|
||||
* Set the taxonomy type from the taxonomy being passed in
|
||||
|
||||
# v1.2.4
|
||||
## 02/19/2015
|
||||
|
||||
2. [](#improved)
|
||||
* Implemented new `param_sep` variable from Grav 0.9.18
|
||||
|
||||
# v1.2.3
|
||||
## 02/05/2015
|
||||
|
||||
2. [](#improved)
|
||||
* Added support for HHVM
|
||||
|
||||
# v1.2.2
|
||||
## 01/09/2015
|
||||
|
||||
2. [](#improved)
|
||||
* NOTE: BREAKING CHANGE: Moved templates into `partials/` subfolder for consistency.
|
||||
|
||||
# v1.2.1
|
||||
## 01/07/2015
|
||||
|
||||
1. [](#bugfix)
|
||||
* Support for numeric taxonomy values
|
||||
|
||||
# v1.2.0
|
||||
## 11/30/2014
|
||||
|
||||
1. [](#new)
|
||||
* ChangeLog started...
|
||||
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014 Grav
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
@@ -0,0 +1,64 @@
|
||||
# Grav Taxonomy List Plugin
|
||||
|
||||
`Taxonomylist` is a [Grav](http://github.com/getgrav/grav) plugin that generates a list of linked tags collected throughout the site.
|
||||
|
||||

|
||||
|
||||
# Installation
|
||||
|
||||
Installing the Taxonomy List plugin can be done in one of two ways. Our GPM (Grav Package Manager) installation method enables you to quickly and easily install the plugin with a simple terminal command, while the manual method enables you to do so via a zip file.
|
||||
|
||||
## GPM Installation (Preferred)
|
||||
|
||||
The simplest way to install this plugin is via the [Grav Package Manager (GPM)](http://learn.getgrav.org/advanced/grav-gpm) through your system's Terminal (also called the command line). From the root of your Grav install type:
|
||||
|
||||
bin/gpm install taxonomylist
|
||||
|
||||
This will install the Taxonomy List plugin into your `/user/plugins` directory within Grav. Its files can be found under `/your/site/grav/user/plugins/taxonomylist`.
|
||||
|
||||
## Manual Installation
|
||||
|
||||
To install this plugin, just download the zip version of this repository and unzip it under `/your/site/grav/user/plugins`. Then, rename the folder to `taxonomylist`. You can find these files either on [GitHub](https://github.com/getgrav/grav-plugin-taxonomylist) or via [GetGrav.org](http://getgrav.org/downloads/plugins#extras).
|
||||
|
||||
You should now have all the plugin files under
|
||||
|
||||
/your/site/grav/user/plugins/taxonomylist
|
||||
|
||||
>> NOTE: This plugin is a modular component for Grav which requires [Grav](http://github.com/getgrav/grav), the [Error](https://github.com/getgrav/grav-plugin-error) and [Problems](https://github.com/getgrav/grav-plugin-problems) plugins, and a theme to be installed in order to operate.
|
||||
|
||||
# Usage
|
||||
|
||||
To use `taxonomylist` you need to set your pages header with a taxonomy category and tag:
|
||||
|
||||
```yaml
|
||||
taxonomy:
|
||||
category: blog
|
||||
tag: [tag1, tag2]
|
||||
```
|
||||
|
||||
## Simple Include
|
||||
|
||||
The plugin provides a Twig template that you need to include in your theme. Something like:
|
||||
|
||||
```twig
|
||||
{% include 'partials/taxonomylist.html.twig' with {base_url: my_url, taxonomy: 'tag'} %}
|
||||
```
|
||||
|
||||
Where `my_url` is the URL to link to where the collection can be filtered (e.g. `/blog`) and the `taxonomy` points to a specific taxonomy type to display (e.g. `tag`). This will display all tags throughout your site
|
||||
|
||||
## Child-only Include
|
||||
|
||||
You can also include pass an optional parameter that will show taxonomy for child-pages only:
|
||||
|
||||
```twig
|
||||
{% include 'partials/taxonomylist.html.twig' with {base_url: my_url, taxonomy: 'tag', children_only: true} %}
|
||||
```
|
||||
|
||||
> NOTE: If you want to see this plugin in action, have a look at our [Blog Site Skeleton](http://github.com/grav/grav-skeleton-blog-site/archive/master.zip)
|
||||
|
||||
|
||||
|
||||
# Config Defaults
|
||||
```
|
||||
route: '/blog'
|
||||
```
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
@@ -0,0 +1,34 @@
|
||||
name: Taxonomy List
|
||||
version: 1.3.2
|
||||
description: "With the **TaxonomyList plugin** you can easily create list of **taxonomy** items such as **tags**, **categories**, etc."
|
||||
icon: tag
|
||||
author:
|
||||
name: Team Grav
|
||||
email: devs@getgrav.org
|
||||
url: http://getgrav.org
|
||||
homepage: https://github.com/getgrav/grav-plugin-taxonomylist
|
||||
demo: http://demo.getgrav.org/blog-skeleton
|
||||
keywords: taxonomylist, plugin, taxonomy, list, tags, categories
|
||||
bugs: https://github.com/getgrav/grav-plugin-taxonomylist/issues
|
||||
license: MIT
|
||||
|
||||
form:
|
||||
validation: strict
|
||||
fields:
|
||||
enabled:
|
||||
type: toggle
|
||||
label: Plugin status
|
||||
highlight: 1
|
||||
default: 0
|
||||
options:
|
||||
1: Enabled
|
||||
0: Disabled
|
||||
validate:
|
||||
type: bool
|
||||
|
||||
route:
|
||||
type: text
|
||||
label: Route to blog
|
||||
placeholder: /blog
|
||||
validate:
|
||||
pattern: "/([a-z\-_]+/?)+"
|
||||
@@ -0,0 +1,88 @@
|
||||
<?php
|
||||
|
||||
namespace Grav\Plugin;
|
||||
|
||||
use Grav\Common\Grav;
|
||||
|
||||
class Taxonomylist
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $taxonomylist;
|
||||
|
||||
/**
|
||||
* Get taxonomy list with all tags of the site.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function get()
|
||||
{
|
||||
if (!$this->taxonomylist) {
|
||||
$this->taxonomylist = $this->build(Grav::instance()['taxonomy']->taxonomy());
|
||||
}
|
||||
return $this->taxonomylist;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get taxonomy list with only tags of the child pages.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getChildPagesTags()
|
||||
{
|
||||
$current = Grav::instance()['page'];
|
||||
$taxonomies = [];
|
||||
foreach ($current->children() as $child) {
|
||||
foreach($this->build($child->taxonomy()) as $taxonomyName => $taxonomyValue) {
|
||||
if (!isset($taxonomies[$taxonomyName])) {
|
||||
$taxonomies[$taxonomyName] = $taxonomyValue;
|
||||
} else {
|
||||
foreach ($taxonomyValue as $value => $count) {
|
||||
if (!isset($taxonomies[$taxonomyName][$value])) {
|
||||
$taxonomies[$taxonomyName][$value] = $count;
|
||||
} else {
|
||||
$taxonomies[$taxonomyName][$value] += $count;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $taxonomies;
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @param array $taxonomylist
|
||||
* @return array
|
||||
*/
|
||||
protected function build(array $taxonomylist)
|
||||
{
|
||||
$cache = Grav::instance()['cache'];
|
||||
$hash = hash('md5', serialize($taxonomylist));
|
||||
$list = [];
|
||||
|
||||
if ($taxonomy = $cache->fetch($hash . 'x')) {
|
||||
return $taxonomy;
|
||||
} else {
|
||||
foreach ($taxonomylist as $taxonomyName => $taxonomyValue) {
|
||||
$partial = [];
|
||||
foreach ($taxonomyValue as $key => $value) {
|
||||
if (is_array($value)) {
|
||||
$taxonomyValue[strval($key)] = count($value);
|
||||
$partial[strval($key)] = count($value);
|
||||
} else {
|
||||
$partial[strval($value)] = 1;
|
||||
}
|
||||
}
|
||||
arsort($partial);
|
||||
$list[$taxonomyName] = $partial;
|
||||
}
|
||||
|
||||
$cache->save($hash, $list);
|
||||
|
||||
return $list;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"project":"grav-plugin-taxonomylist",
|
||||
"platforms":{
|
||||
"grav":{
|
||||
"nodes":{
|
||||
"plugin":[
|
||||
{
|
||||
"source":"/",
|
||||
"destination":"/user/plugins/taxonomylist"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
namespace Grav\Plugin;
|
||||
|
||||
use Grav\Common\Plugin;
|
||||
use Grav\Plugin\Taxonomylist;
|
||||
|
||||
class TaxonomylistPlugin extends Plugin
|
||||
{
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public static function getSubscribedEvents()
|
||||
{
|
||||
return [
|
||||
'onPluginsInitialized' => ['onPluginsInitialized', 0]
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize configuration
|
||||
*/
|
||||
public function onPluginsInitialized()
|
||||
{
|
||||
if ($this->isAdmin()) {
|
||||
$this->active = false;
|
||||
return;
|
||||
}
|
||||
|
||||
$this->enable([
|
||||
'onTwigTemplatePaths' => ['onTwigTemplatePaths', 0],
|
||||
'onTwigSiteVariables' => ['onTwigSiteVariables', 0]
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add current directory to twig lookup paths.
|
||||
*/
|
||||
public function onTwigTemplatePaths()
|
||||
{
|
||||
$this->grav['twig']->twig_paths[] = __DIR__ . '/templates';
|
||||
}
|
||||
|
||||
/**
|
||||
* Set needed variables to display the taxonomy list.
|
||||
*/
|
||||
public function onTwigSiteVariables()
|
||||
{
|
||||
require_once __DIR__ . '/classes/taxonomylist.php';
|
||||
|
||||
$twig = $this->grav['twig'];
|
||||
$twig->twig_vars['taxonomylist'] = new Taxonomylist();
|
||||
$twig->twig_vars['list_url'] = $this->config->get(
|
||||
'site.blog.route',
|
||||
$this->config->get('plugins.taxonomylist.route')
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
enabled: true
|
||||
route: '/blog'
|
||||
@@ -0,0 +1,10 @@
|
||||
{% set taxlist = children_only is defined ? taxonomylist.getChildPagesTags() : taxonomylist.get() %}
|
||||
|
||||
{% if taxlist %}
|
||||
<span class="tags">
|
||||
{% for tax,value in taxlist[taxonomy] %}
|
||||
{% set active = uri.param(taxonomy) == tax? 'active' : '' %}
|
||||
<a class="{{ active }}" href="{{ base_url }}/{{ taxonomy }}{{ config.system.param_sep }}{{ tax }}">{{ tax }}</a>
|
||||
{% endfor %}
|
||||
</span>
|
||||
{% endif %}
|
||||
@@ -1,2 +1,24 @@
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
/*# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVtcGxhdGUuY3NzIiwic291cmNlcyI6WyJ0ZW1wbGF0ZS5zY3NzIl0sInNvdXJjZXNDb250ZW50IjpbIi8vY29uZmlndXJhdGlvblxuLy8gQGltcG9ydCBcImNvbmZpZ3VyYXRpb24vbWl4aW5cIjtcbi8vIEBpbXBvcnQgXCJjb25maWd1cmF0aW9uL2NvbmZpZ1wiO1xuXG4vL3Jlc2V0JFxuLy8gQGltcG9ydCBcInRlbXBsYXRlL3Jlc2V0XCI7XG5cbi8vIFR5cG9ncmFwaHlcbi8vIEBpbXBvcnQgXCJ0ZW1wbGF0ZS90eXBvZ3JhcGh5XCI7XG5cbi8vIEhlYWRlclxuLy8gQGltcG9ydCBcInRlbXBsYXRlL2hlYWRlclwiO1xuXG4vL3NlY3Rpb25cbi8vIEBpbXBvcnQgXCJ0ZW1wbGF0ZS9zZWN0aW9uXCI7XG4vLyBAaW1wb3J0IFwidGVtcGxhdGUvc2VjdGlvbi1tZWRpYS1xdWVyaWVzXCI7XG5cbi8vc2VjdGlvbmdyaWRcbi8vIEBpbXBvcnQgXCJ0ZW1wbGF0ZS9ncmlkXCI7XG5cbi8vIEZvb3RlclxuLy8gQGltcG9ydCBcInRlbXBsYXRlL2Zvb3RlclwiO1xuIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ== */
|
||||
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font-size: 100%; vertical-align: baseline; }
|
||||
|
||||
html, body { font-size: 16px; }
|
||||
|
||||
/* HTML5 display-role reset for older browsers */
|
||||
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }
|
||||
|
||||
body { line-height: 1; margin: 0 10%; }
|
||||
|
||||
ol, ul { list-style: none; }
|
||||
|
||||
a { text-decoration: none; color: black; }
|
||||
|
||||
blockquote, q { quotes: none; }
|
||||
|
||||
img { width: 100%; height: 100%; vertical-align: bottom; }
|
||||
|
||||
blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; }
|
||||
|
||||
table { border-collapse: collapse; border-spacing: 0; }
|
||||
|
||||
/*# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVtcGxhdGUuY3NzIiwic291cmNlcyI6WyJ0ZW1wbGF0ZS5zY3NzIiwidGVtcGxhdGUvX3Jlc2V0LnNjc3MiXSwic291cmNlc0NvbnRlbnQiOlsiLy9jb25maWd1cmF0aW9uXG4vLyBAaW1wb3J0IFwiY29uZmlndXJhdGlvbi9taXhpblwiO1xuLy8gQGltcG9ydCBcImNvbmZpZ3VyYXRpb24vY29uZmlnXCI7XG5cbi8vcmVzZXQkXG5AaW1wb3J0IFwidGVtcGxhdGUvcmVzZXRcIjtcblxuLy8gVHlwb2dyYXBoeVxuLy8gQGltcG9ydCBcInRlbXBsYXRlL3R5cG9ncmFwaHlcIjtcblxuLy8gSGVhZGVyXG4vLyBAaW1wb3J0IFwidGVtcGxhdGUvaGVhZGVyXCI7XG5cbi8vc2VjdGlvblxuLy8gQGltcG9ydCBcInRlbXBsYXRlL3NlY3Rpb25cIjtcbi8vIEBpbXBvcnQgXCJ0ZW1wbGF0ZS9zZWN0aW9uLW1lZGlhLXF1ZXJpZXNcIjtcblxuLy9zZWN0aW9uZ3JpZFxuLy8gQGltcG9ydCBcInRlbXBsYXRlL2dyaWRcIjtcblxuLy8gRm9vdGVyXG4vLyBAaW1wb3J0IFwidGVtcGx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acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{font-size:100%;margin:0;padding:0;vertical-align:baseline;border:0}body,html{font-size:16px}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1;margin:0 10%}ol,ul{list-style:none}a{text-decoration:none;color:#000}blockquote,q{quotes:none}img{width:100%;height:100%;vertical-align:bottom}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}table{border-spacing:0;border-collapse:collapse}
|
||||
@@ -3,7 +3,7 @@
|
||||
// @import "configuration/config";
|
||||
|
||||
//reset$
|
||||
// @import "template/reset";
|
||||
@import "template/reset";
|
||||
|
||||
// Typography
|
||||
// @import "template/typography";
|
||||
|
||||
@@ -21,8 +21,6 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<section id="body-wrapper" class="section blog-listing">
|
||||
<section class="container {{ grid_size }}">
|
||||
|
||||
{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
|
||||
{% include 'partials/breadcrumbs.html.twig' %}
|
||||
@@ -49,13 +47,9 @@
|
||||
{% include 'partials/sidebar.html.twig' %}
|
||||
{% endblock %}
|
||||
{% endembed %}
|
||||
</section>
|
||||
</section>
|
||||
|
||||
<script>
|
||||
//Bricklayer
|
||||
var bricklayer = new Bricklayer(document.querySelector('.bricklayer'))
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -20,22 +20,16 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<section id="body-wrapper" class="section blog-listing">
|
||||
<section class="container {{ grid_size }}">
|
||||
|
||||
{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
|
||||
{% include 'partials/breadcrumbs.html.twig' %}
|
||||
{% endif %}
|
||||
|
||||
{% embed 'partials/layout.html.twig' %}
|
||||
{% block item %}
|
||||
{% include 'partials/blog-item.html.twig' %}
|
||||
{% endblock %}
|
||||
{% block sidebar %}
|
||||
{% include 'partials/sidebar.html.twig' %}
|
||||
{% endblock %}
|
||||
{% endembed %}
|
||||
|
||||
</section>
|
||||
</section>
|
||||
<section id="body-wrapper" class="section blog-listing">
|
||||
<section class="container {{ grid_size }}">
|
||||
{% embed 'partials/layout.html.twig' %}
|
||||
{% block item %}
|
||||
{% include 'partials/blog-item.html.twig' %}
|
||||
{% endblock %}
|
||||
{% block sidebar %}
|
||||
{% include 'partials/sidebar.html.twig' %}
|
||||
{% endblock %}
|
||||
{% endembed %}
|
||||
</section>
|
||||
</section>
|
||||
{% endblock %}
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<link rel="canonical" href="{{ page.url(true, true) }}" />
|
||||
|
||||
{% block stylesheets %}
|
||||
{% do assets.addCss('theme://css-compiled/template.css'~compress) %}
|
||||
{% do assets.addCss('theme://css-compiled/template.min.css'~compress) %}
|
||||
|
||||
{% endblock %}
|
||||
{{ assets.css() }}
|
||||
@@ -29,79 +29,36 @@
|
||||
|
||||
{% endblock head %}
|
||||
</head>
|
||||
|
||||
<body id="top" class="{% block body_classes %}{{ body_classes }}{% endblock %}">
|
||||
<div id="page-wrapper">
|
||||
|
||||
{% block header %}
|
||||
<section id="header" class="section">
|
||||
<section class="container {{ grid_size }}">
|
||||
<nav class="navbar">
|
||||
<section class="navbar-section logo">
|
||||
<a href="{{ home_url }}" class="navbar-brand mr-10">{% include('@images/grav-logo.svg') %}</a>
|
||||
</section>
|
||||
<section class="navbar-section">
|
||||
|
||||
<nav class="dropmenu animated">
|
||||
{% block header_navigation %}
|
||||
{% include 'partials/navigation.html.twig' %}
|
||||
{% endblock %}
|
||||
</nav>
|
||||
|
||||
{% if config.plugins.login.enabled and grav.user.username %}
|
||||
<span class="login-status-wrapper"><i class="fa fa-user"></i> {% include 'partials/login-status.html.twig' %}</span>
|
||||
{% endif %}
|
||||
|
||||
</section>
|
||||
</nav>
|
||||
</section>
|
||||
</section>
|
||||
<div class="mobile-menu">
|
||||
<div class="button_container" id="toggle">
|
||||
<span class="top"></span>
|
||||
<span class="middle"></span>
|
||||
<span class="bottom"></span>
|
||||
</div>
|
||||
</div>
|
||||
<header class="section">
|
||||
<h1><a href="{{ base_url == '' ? '/' : base_url }}">{{ config.site.title }}</a></h1>
|
||||
<nav class="navbar">
|
||||
{% block header_navigation %}
|
||||
{% include 'partials/navigation.html.twig' %}
|
||||
{% include 'partials/taxonomylist.html.twig' with { taxonomy: 'tag'} %}
|
||||
{% endblock %}
|
||||
</nav>
|
||||
</header>
|
||||
{% endblock %}
|
||||
|
||||
{% block hero %}{% endblock %}
|
||||
|
||||
<section id="start">
|
||||
{% block body %}
|
||||
<section id="body-wrapper" class="section">
|
||||
<section class="container {{ grid_size }}">
|
||||
{% block messages %}
|
||||
{% include 'partials/messages.html.twig' ignore missing %}
|
||||
{% endblock %}
|
||||
{% block content %}{% endblock %}
|
||||
</section>
|
||||
</section>
|
||||
{% endblock %}
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
{% block footer %}
|
||||
<section id="footer" class="section bg-gray">
|
||||
<section class="container {{ grid_size }}">
|
||||
<p><a href="http://getgrav.org">Grav</a> was <i class="fa fa-code"></i> with <i class="fa fa-heart-o pulse "></i> by <a href="https://trilby.media">Trilby Media</a>.</p>
|
||||
</section>
|
||||
</section>
|
||||
{% endblock %}
|
||||
{% block footer %}{% endblock %}
|
||||
|
||||
|
||||
<div class="mobile-container">
|
||||
<div class="overlay" id="overlay">
|
||||
<div class="mobile-logo">
|
||||
{% include('@images/grav-logo.svg') %}
|
||||
</div>
|
||||
<nav class="overlay-menu">
|
||||
{% include 'partials/navigation.html.twig' with {tree: true} %}
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% block bottom %}
|
||||
{{ assets.js('bottom') }}
|
||||
{% endblock %}
|
||||
{% block bottom %}
|
||||
{{ assets.js('bottom') }}
|
||||
{% endblock %}
|
||||
|
||||
</body>
|
||||
|
||||
@@ -6,25 +6,34 @@
|
||||
{% if page.header.subtitle %}
|
||||
<h3 >{{ page.header.subtitle }}</h3>
|
||||
{% endif %}
|
||||
{% include 'partials/blog/date.html.twig' %}
|
||||
{% include 'partials/blog/taxonomy.html.twig' %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="e-content">
|
||||
<div class="txt">
|
||||
{{ page.content }}
|
||||
|
||||
<div class="taxonomy">
|
||||
{% include 'partials/blog/taxonomy.html.twig' %}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="media">
|
||||
{% for image in page.media.images %}
|
||||
{{ image.html }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if page.header.continue_link is sameas(true) and config.plugins.comments.enabled %}
|
||||
{% include 'partials/comments.html.twig' %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<p class="prev-next text-center">
|
||||
|
||||
|
||||
{% if not page.isLast %}
|
||||
<a class="btn" href="{{ page.prevSibling.url }}"><i class="fa fa-angle-left"></i> {{ 'BLOG.ITEM.PREV_POST'|t }}</a>
|
||||
{% endif %}
|
||||
|
||||
@@ -1,27 +1,15 @@
|
||||
<div class="card">
|
||||
{% set image = page.media.images|first %}
|
||||
|
||||
{% if image %}
|
||||
<div class="card-image">
|
||||
<a href="{{ page.url }}">{{ image.cropZoom(800,400).html }}</a>
|
||||
</div>
|
||||
<div class="card-image">
|
||||
<a href="{{ page.url }}">{{ image.cropZoom(800,400).html }}</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="card-header">
|
||||
<div class="card-subtitle text-gray">
|
||||
{% include 'partials/blog/date.html.twig' %}
|
||||
</div>
|
||||
<div class="card-title">
|
||||
{% include 'partials/blog/title.html.twig' with {title_level: 'h5'} %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
{% if page.summary != page.content %}
|
||||
{{ page.summary }}
|
||||
{% else %}
|
||||
{{ page.content }}
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
{% include 'partials/blog/taxonomy.html.twig' %}
|
||||
|
||||
<div class="card-title">
|
||||
<div class="card-subtitle text-gray">
|
||||
{% include 'partials/blog/title.html.twig' %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,14 +1,6 @@
|
||||
{% set item_col = show_sidebar ? 'col-9 col-md-12' : 'col-12' %}
|
||||
{% set sidebar_col = show_sidebar ? 'col-3 col-md-12' : 'col-12' %}
|
||||
|
||||
<div class="columns">
|
||||
<div id="item" class="column {{ item_col }} extra-spacing">
|
||||
<div id="items" class="column {{ item_col }} extra-spacing">
|
||||
{% block item %}{% endblock %}
|
||||
</div>
|
||||
{% if show_sidebar %}
|
||||
<div id="sidebar" class="column {{ sidebar_col }}">
|
||||
{% block sidebar %}{% endblock %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
|
||||
@@ -3,24 +3,23 @@
|
||||
{% set active_page = (p.active or p.activeChild) ? 'active' : '' %}
|
||||
{% if p.children.visible.count > 0 %}
|
||||
<li>
|
||||
<a href="{{ p.url }}" class="{{ active_page }}">
|
||||
{{ p.menu }}
|
||||
</a>
|
||||
<ul>
|
||||
{{ _self.nav_loop(p) }}
|
||||
</ul>
|
||||
<a href="{{ p.url }}" class="{{ active_page }}">
|
||||
{{ p.menu }}
|
||||
</a>
|
||||
</li>
|
||||
{% else %}
|
||||
<li>
|
||||
<a href="{{ p.url }}" class="{{ active_page }}">
|
||||
{{ p.menu }}
|
||||
</a>
|
||||
<a href="{{ p.url }}" class="{{ active_page }}">
|
||||
{{ p.menu }}
|
||||
</a>
|
||||
</li>
|
||||
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
|
||||
{% endmacro %}
|
||||
|
||||
<ul {{ tree ? 'class="tree"' : '' }}>
|
||||
{{ _self.nav_loop(pages) }}
|
||||
</ul>
|
||||
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
{% set taxlist = children_only is defined ? taxonomylist.getChildPagesTags() : taxonomylist.get() %}
|
||||
|
||||
{% if taxlist %}
|
||||
<span class="tags">
|
||||
<ul class="tags">
|
||||
{% for tax,value in taxlist[taxonomy] %}
|
||||
{% set label_class = uri.param(taxonomy) == tax ? 'label-primary' : 'label-secondary' %}
|
||||
<a class="label label-rounded {{ label_class }}" href="{{ base_url }}/{{ taxonomy }}{{ config.system.param_sep }}{{ tax }}">{{ tax }}</a>
|
||||
<li>
|
||||
<a href="{{ base_url }}/{{ taxonomy }}{{ config.system.param_sep }}{{ tax }}">{{ tax }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</span>
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user