#1995 SEO fixes for w3 validator

This commit is contained in:
Diatrex 2020-08-24 15:59:25 +03:00
parent 686941a892
commit 2729201e9d
10 changed files with 20 additions and 27 deletions

View File

@ -1,15 +1,15 @@
<!doctype html> <!doctype html>
<!--[if lt IE 7]> <!--[if lt IE 7]>
<html class="nojs ms lt_ie7" lang="en"><![endif]--> <html class="nojs ms lt_ie7" lang="{{ config('app.locale') }}"><![endif]-->
<!--[if IE 7]> <!--[if IE 7]>
<html class="nojs ms ie7" lang="en"><![endif]--> <html class="nojs ms ie7" lang="{{ config('app.locale') }}"><![endif]-->
<!--[if IE 8]> <!--[if IE 8]>
<html class="nojs ms ie8" lang="en"><![endif]--> <html class="nojs ms ie8" lang="{{ config('app.locale') }}"><![endif]-->
<!--[if gt IE 8]> <!--[if gt IE 8]>
<html class="nojs ms" lang="en"><![endif]--> <html class="nojs ms" lang="{{ config('app.locale') }}"><![endif]-->
<html> <html lang="{{ config('app.locale') }}">
<head> <head>
{% include "visiosoft.theme.base::partials/metadata" %} {% include "visiosoft.theme.base::partials/metadata" %}

View File

@ -1,15 +1,15 @@
<!doctype html> <!doctype html>
<!--[if lt IE 7]> <!--[if lt IE 7]>
<html class="nojs ms lt_ie7" lang="en"><![endif]--> <html class="nojs ms lt_ie7" lang="{{ config('app.locale') }}"><![endif]-->
<!--[if IE 7]> <!--[if IE 7]>
<html class="nojs ms ie7" lang="en"><![endif]--> <html class="nojs ms ie7" lang="{{ config('app.locale') }}"><![endif]-->
<!--[if IE 8]> <!--[if IE 8]>
<html class="nojs ms ie8" lang="en"><![endif]--> <html class="nojs ms ie8" lang="{{ config('app.locale') }}"><![endif]-->
<!--[if gt IE 8]> <!--[if gt IE 8]>
<html class="nojs ms" lang="en"><![endif]--> <html class="nojs ms" lang="{{ config('app.locale') }}"><![endif]-->
<html> <html lang="{{ config('app.locale') }}">
<head> <head>
{% include "visiosoft.theme.base::partials/metadata" %} {% include "visiosoft.theme.base::partials/metadata" %}

View File

@ -9,7 +9,7 @@
{{ title ?: setting_value('streams::name','Visiosoft LTD.') }} {{ title ?: setting_value('streams::name','Visiosoft LTD.') }}
</title> </title>
<style type="text/css" rel="stylesheet" media="all"> <style rel="stylesheet" media="all">
/* Media Queries */ /* Media Queries */
@media only screen and (max-width: 500px) { @media only screen and (max-width: 500px) {
.button { .button {

View File

@ -2,9 +2,6 @@
Main CSS can be found in metadata.twig Main CSS can be found in metadata.twig
#} #}
<!-- VueJS Requirements -->
<script type="text/javascript" src="{{ asset('js/app.js') }}"></script>
{# Core Theme Components #} {# Core Theme Components #}
{{ asset_add("theme.js", "visiosoft.theme.base::js/popper.min.js") }} {{ asset_add("theme.js", "visiosoft.theme.base::js/popper.min.js") }}
{{ asset_add("theme.js", "visiosoft.theme.base::js/bootstrap.min.js") }} {{ asset_add("theme.js", "visiosoft.theme.base::js/bootstrap.min.js") }}
@ -24,20 +21,20 @@
{{ asset_script("theme.js") }} {{ asset_script("theme.js") }}
{# Include Styles Loaded From Outside #} {# Include Styles Loaded From Outside #}
<style type="text/css"> <style>
{% for style in asset_inlines("styles.css", ["min"]) %} {% for style in asset_inlines("styles.css", ["min"]) %}
{{ style|raw }} {{ style|raw }}
{% endfor %} {% endfor %}
</style> </style>
{# Include Scripts Loaded From Outside #} {# Include Scripts Loaded From Outside #}
<script type="text/javascript"> <script>
{% for script in asset_inlines("scripts.js", ["min"]) %} {% for script in asset_inlines("scripts.js", ["min"]) %}
{{ script|raw }} {{ script|raw }}
{% endfor %} {% endfor %}
</script> </script>
<script type="text/javascript"> <script>
{% for script in asset_inlines("customjs.js") %} {% for script in asset_inlines("customjs.js") %}
{{ script|raw }} {{ script|raw }}
{% endfor %} {% endfor %}

View File

@ -11,7 +11,7 @@
<img src="{{ img('visiosoft.theme.base::images/default-categories-icon.png').url }}" alt="{{ main_category.name }}" <img src="{{ img('visiosoft.theme.base::images/default-categories-icon.png').url }}" alt="{{ main_category.name }}"
class="img-responsive"> class="img-responsive">
{% endif %} {% endif %}
<font>{{ main_category.name }}</font> <span>{{ main_category.name }}</span>
<p class="p-0 sub-categories"> <p class="p-0 sub-categories">
{% set sub_categories = entries('cats','category').where('parent_category_id', main_category.id).where('deleted_at', null).orderBy('sort_order').get() %} {% set sub_categories = entries('cats','category').where('parent_category_id', main_category.id).where('deleted_at', null).orderBy('sort_order').get() %}
{% for sub_category in sub_categories|slice(0,sub_categories_limit) %} {% for sub_category in sub_categories|slice(0,sub_categories_limit) %}

View File

@ -1,4 +1,4 @@
<section id="messages"> <div id="messages">
<!-- Success Messages --> <!-- Success Messages -->
{% if message_exists('success') %} {% if message_exists('success') %}
@ -54,4 +54,4 @@
</div> </div>
{% endif %} {% endif %}
</section> </div>

View File

@ -1,6 +1,3 @@
<!-- Locale -->
<meta http-equiv="Content-Language" content="{{ config('app.locale') }}">
<!-- VueJS Requirements --> <!-- VueJS Requirements -->
<meta name="csrf-token" content="{{ csrf_token() }}" /> <meta name="csrf-token" content="{{ csrf_token() }}" />
@ -27,7 +24,7 @@
{% include "visiosoft.theme.base::partials/styles" %} {% include "visiosoft.theme.base::partials/styles" %}
{# Custom Theme Components #} {# Custom Theme Components #}
<style type="text/css"> <style>
{% for style in asset_inlines("custom-theme.css", ["min"]) %} {% for style in asset_inlines("custom-theme.css", ["min"]) %}
{{ style|raw }} {{ style|raw }}
{% endfor %} {% endfor %}

View File

@ -1,12 +1,12 @@
<!-- Meta Tags --> <!-- Meta Tags -->
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width"/> <meta name="viewport" content="width=device-width"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="generator" content="{{ config_get('streams::distribution.name') }}"/> <meta name="generator" content="{{ config_get('streams::distribution.name') }}"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="description" <meta name="description"
content="{{ (template.get('meta_description') ?: setting_value('streams::description'))|slice(0,160) }}"/> content="{{ (template.get('meta_description') ?: setting_value('streams::description'))|slice(0,160) }}"/>
<meta name="keywords" content="{{ template.get('meta_keywords') }}" /> <meta name="keywords" content="{{ template.get('meta_keywords') }}" />
{{ setting_value('visiosoft.module.advs::google_statistic_code')|raw }}
<!-- Meta Tags --> <!-- Meta Tags -->
<title> <title>

View File

@ -1 +0,0 @@
{{ setting_value('visiosoft.module.advs::google_statistic_code')|raw }}

View File

@ -1,3 +1,3 @@
<style type="text/css"> <style>
{{ setting_value("visiosoft.theme.base::style")|raw }} {{ setting_value("visiosoft.theme.base::style")|raw }}
</style> </style>