mirror of
https://github.com/Hopiu/djLint.git
synced 2026-04-30 09:54:44 +00:00
added json-ld data
This commit is contained in:
parent
0323a45fca
commit
c6ea92e5b1
8 changed files with 64 additions and 4 deletions
47
docs/_templates/layout.html
vendored
47
docs/_templates/layout.html
vendored
|
|
@ -3,6 +3,53 @@
|
|||
<title>{{ docstitle|e }}{{ title|striptags|e }}</title>
|
||||
{%- endblock %}
|
||||
|
||||
|
||||
{%- if pageurl %}
|
||||
{% set pageurl = pageurl| replace("index.html","")| replace(".html","/") %}
|
||||
{%- endif %}
|
||||
|
||||
|
||||
{%- block extrahead %}
|
||||
{{ super() }}
|
||||
{%- if meta is mapping and meta.get("description") %}
|
||||
{% set description = meta.get("description") %}
|
||||
{% else %}
|
||||
{% set description = "djLint HTML template linter and formatter. Find common syntax errors, reformat to make your HTML templates shine! Supports django, jinja, nunjucks, twig, handlebars, mustache, golang, and more!" %}
|
||||
{%- endif %}
|
||||
<script type="application/ld+json">{
|
||||
"@context": "https://schema.org",
|
||||
"@graph": [
|
||||
{
|
||||
"@type": "WebSite",
|
||||
"@id": "https://djlint.com#website",
|
||||
"url": "https://djlint.com",
|
||||
"name": "djLint HTML template linter and formatter",
|
||||
"description": "djLint HTML template linter and formatter. Find common syntax errors, reformat to make your HTML templates shine! Supports django, jinja, nunjucks, twig, handlebars, mustache, golang, and more!",
|
||||
"inLanguage": "en-US"
|
||||
},
|
||||
{
|
||||
"@type": "WebPage",
|
||||
"mainEntityOfPage": {
|
||||
"@type": "WebPage",
|
||||
"@id": "https://djlint.com/"
|
||||
},
|
||||
"url": "{{ pageurl }}",
|
||||
"isPartOf": {
|
||||
"@id": "https://djlint.com#website"
|
||||
},
|
||||
"headline": "{{ docstitle|e }}{{ title|striptags|e }}",
|
||||
"description": "{{ description }}",
|
||||
"inLanguage": "en-US",
|
||||
"publisher": {
|
||||
"@type": "Organization",
|
||||
"name": "Riverside Healthcare",
|
||||
"url": "https://github.com/Riverside-Healthcare",
|
||||
"logo": {
|
||||
"@type": "ImageObject",
|
||||
"url": "https://djlint.com/_static/icon.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}</script>
|
||||
{% endblock %}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
:description: Best practices for using djLint to format HTML templates.
|
||||
|
||||
.. meta::
|
||||
:title lang=en: djLint » Best Practices
|
||||
:description lang=en:
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
:description: djLint Changelog. Find updates from recent releases and what feature you can expect on your next upgrade.
|
||||
|
||||
.. meta::
|
||||
:title lang=en: djLint » Changelog
|
||||
:description lang=en:
|
||||
djLint Changelog.
|
||||
djLint Changelog. Find updates from recent releases and what feature you can expect on your next upgrade.
|
||||
:keywords lang=en: template linter, template formatter, djLint, HTML, templates, formatter, linter, changelog
|
||||
|
||||
Changelog
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
:description: djLint configuration for HTML Template Linting and Formatting. Take advantage of the many formatter options.
|
||||
|
||||
.. meta::
|
||||
:title lang=en: djLint » Configuration
|
||||
:description lang=en:
|
||||
djLint configuration for HTML Template Linting and Formatting.
|
||||
Take advantage of the many formatter options.
|
||||
:description lang=en: djLint configuration for HTML Template Linting and Formatting. Take advantage of the many formatter options.
|
||||
:keywords lang=en: template linter, template formatter, djLint, HTML, templates, formatter, linter, configuration
|
||||
|
||||
|
||||
Configuration
|
||||
=============
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
:description: Format your HTML Templates with djLint. Fast, accurate, output will make your templates shine.
|
||||
|
||||
.. meta::
|
||||
:title lang=en: djLint » Formatter Usage
|
||||
:description lang=en:
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
:description: Getting started with djLint for HTML Template Linting and Formatting. Take advantage of the easy cli interface and many formatter options.
|
||||
|
||||
.. meta::
|
||||
:title lang=en: djLint » Getting Started
|
||||
:description lang=en:
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
:description: Integrate djLint with your favorite editor. Auto format your templates with Pre-Commit. Lint with SublimeText.
|
||||
|
||||
.. meta::
|
||||
:title lang=en: djLint » Integrations
|
||||
:description lang=en:
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
:description: djLint HTML Template linter includes over 30 rules! Find the definitions here. Easily expand with include custom rules!
|
||||
|
||||
.. meta::
|
||||
:title lang=en: djLint » Linter Rules
|
||||
:description lang=en:
|
||||
|
|
|
|||
Loading…
Reference in a new issue