mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-19 16:38:23 +00:00
fix application/ld+json (#832)
This commit is contained in:
parent
1c315c0ef9
commit
d60b179b12
4 changed files with 9 additions and 6 deletions
|
|
@ -5,6 +5,9 @@ exclude:
|
||||||
linters:
|
linters:
|
||||||
AllowedScriptType:
|
AllowedScriptType:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
allowed_types:
|
||||||
|
- "text/javascript"
|
||||||
|
- "application/ld+json"
|
||||||
ClosingErbTagIndent:
|
ClosingErbTagIndent:
|
||||||
enabled: true
|
enabled: true
|
||||||
CommentSyntax:
|
CommentSyntax:
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
<!-- JSON-LD Structured Data -->
|
<!-- JSON-LD Structured Data -->
|
||||||
<% content_for :head do %>
|
<% content_for :head do %>
|
||||||
<script>
|
<script type="application/ld+json">
|
||||||
{
|
{
|
||||||
"@context": "https://schema.org",
|
"@context": "https://schema.org",
|
||||||
"@type": "TechArticle",
|
"@type": "TechArticle",
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@
|
||||||
<%= yield :head %>
|
<%= yield :head %>
|
||||||
|
|
||||||
<!-- JSON-LD Structured Data -->
|
<!-- JSON-LD Structured Data -->
|
||||||
<script>
|
<script type="application/ld+json">
|
||||||
{
|
{
|
||||||
"@context": "https://schema.org",
|
"@context": "https://schema.org",
|
||||||
"@type": "SoftwareApplication",
|
"@type": "SoftwareApplication",
|
||||||
|
|
@ -92,7 +92,7 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- Organization Schema -->
|
<!-- Organization Schema -->
|
||||||
<script>
|
<script type="application/ld+json">
|
||||||
{
|
{
|
||||||
"@context": "https://schema.org",
|
"@context": "https://schema.org",
|
||||||
"@type": "Organization",
|
"@type": "Organization",
|
||||||
|
|
@ -107,7 +107,7 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- WebSite Schema -->
|
<!-- WebSite Schema -->
|
||||||
<script>
|
<script type="application/ld+json">
|
||||||
{
|
{
|
||||||
"@context": "https://schema.org",
|
"@context": "https://schema.org",
|
||||||
"@type": "WebSite",
|
"@type": "WebSite",
|
||||||
|
|
@ -119,7 +119,7 @@
|
||||||
|
|
||||||
<!-- FAQ Schema for Homepage -->
|
<!-- FAQ Schema for Homepage -->
|
||||||
<% if request.path == "/" %>
|
<% if request.path == "/" %>
|
||||||
<script>
|
<script type="application/ld+json">
|
||||||
{
|
{
|
||||||
"@context": "https://schema.org",
|
"@context": "https://schema.org",
|
||||||
"@type": "FAQPage",
|
"@type": "FAQPage",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<% content_for :head do %>
|
<% content_for :head do %>
|
||||||
<!-- Article Schema -->
|
<!-- Article Schema -->
|
||||||
<script>
|
<script type="application/ld+json">
|
||||||
{
|
{
|
||||||
"@context": "https://schema.org",
|
"@context": "https://schema.org",
|
||||||
"@type": "Article",
|
"@type": "Article",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue