--- title: test2 media_order: 2248137.png private: true date: '15:32 18-03-2018' taxonomy: category: - test tag: - test process: markdown: true twig: true twig_first: true never_cache_twig: false cache_enable: true visible: true theme: afterburner2 creator: erreur32 hero_classes: parallax blog_url: /test2 show_sidebar: true show_breadcrumbs: true show_pagination: true content: items: '- ''@self.children''' limit: '5' order: by: date dir: desc pagination: '0' url_taxonomy_filters: '0' textformatter: '0' items: '@taxonomy.category': test sitemap: ignore: true ---
Process Twig First: ON
Page: Default
<!-- test -->
#### INSERT page ( minicode) ON
test.txt =
{{ 'test.txt' | minicode }}
test.html =
{{ 'test.html' | minicode }}
page title
{{ page.content|readingtime }}
[TOC]
SHORTCODe desactivé !!!
{% set twig_text = "[size= 10]SHORTCODE desactivé !!![/size]" %} {{ twig_text|shortcodes }}
[MINITOC]
{% set twig_text = "This is [size=30]bigger text[/size] and this is [color=green]green text[/color]" %} {{ twig_text|shortcodes }}### text cool shortcodeMeta.shortcode.section.autho {{ shortcode.section.quote }}
[section name="author"]
du codedw
[notice=warning] Danger Will Robinson! Danger, Will Robinson! [/notice]
Echo'System'
Security & News
G33K info
Scripts </>
This is some [u]bb style underline[/u] and not much else [center]This is centered[/center] This is [size=30]bigger text[/size] and this is [color=blue]blue text[/color]
then the best process is to copy the [url=https://github.com/getgrav/grav-plugin-shortcode-assets/blob/develop/shortcode-assets.yaml]shortcode-assets.yaml[/url] file into your users/config/plugins/
folder (create it if it doesn't exist), and then modify there.
This will override the default settings. Once the plugin is installed you can use the following syntax in your page content to add various asset types [css
, inlineCss
, js
, inlineJs
]:
The Shortcode Assets plugin supports all the available options That the [url=https://learn.getgrav.org/themes/asset-manager#options]Grav Asset Manager supports[/url]. You can specify priority
, pipeline
and media
for [b]CSS files[/b], and priority
, pipeline
, loading
, and group
for [b]JS files[/b]. For example:
[assets=css priority=100 pipeline=false]test1.css[/assets]
[assets=js loading="async defer" group="bottom"]test1.js[/assets]
[quote] Note: Any changes you have made to any of the files listed under this directory will also be removed and replaced by the new set. Any files located elsewhere (for example a YAML settings file placed in user/config/plugins
) will remain intact. [/quote]
Posted By: {{ page.header.creator }}
Posted By: {{ home_url }}/authors/query{{ config.system.param_sep }}{{ ownerUtils.getUser(page.header.creator).username }} {{ ownerUtils.getUser(page.header.creator).fullname }}
filecontent
This plugin provides both a Twig [b]filter[/b] and [b]function[/b]. To use them simply use the following syntax:
The plugin is to be called from a page Markdown source file (eg. item.md
).
#Exemple [ plugin:filesource ](*32test.md*)
Résultat:
[plugin:filesource](test.md)
[plugin:filesource](test.md)
[plugin:filesource](test.txt)
[plugin:filesource](test.txt)
[b]filesource[/b] can be used to embed [i]any[/i] file to a page as text and it [i]won't[/i]
check the file content type or encoding. Embedding binary or other non-text files may have unexpected results.