mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-19 14:27:10 +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:
|
||||
AllowedScriptType:
|
||||
enabled: true
|
||||
allowed_types:
|
||||
- "text/javascript"
|
||||
- "application/ld+json"
|
||||
ClosingErbTagIndent:
|
||||
enabled: true
|
||||
CommentSyntax:
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
<!-- JSON-LD Structured Data -->
|
||||
<% content_for :head do %>
|
||||
<script>
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "TechArticle",
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@
|
|||
<%= yield :head %>
|
||||
|
||||
<!-- JSON-LD Structured Data -->
|
||||
<script>
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "SoftwareApplication",
|
||||
|
|
@ -92,7 +92,7 @@
|
|||
</script>
|
||||
|
||||
<!-- Organization Schema -->
|
||||
<script>
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "Organization",
|
||||
|
|
@ -107,7 +107,7 @@
|
|||
</script>
|
||||
|
||||
<!-- WebSite Schema -->
|
||||
<script>
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "WebSite",
|
||||
|
|
@ -119,7 +119,7 @@
|
|||
|
||||
<!-- FAQ Schema for Homepage -->
|
||||
<% if request.path == "/" %>
|
||||
<script>
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "FAQPage",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<% content_for :head do %>
|
||||
<!-- Article Schema -->
|
||||
<script>
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "Article",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue