mirror of
https://github.com/andwati/andwati.com.git
synced 2026-10-18 01:12:53 +00:00
fix json ld errors
This commit is contained in:
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"snyk.advanced.autoSelectOrganization": true
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 4.6 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.9 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 521 B |
Binary file not shown.
|
After Width: | Height: | Size: 5.3 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 953 B |
Binary file not shown.
|
After Width: | Height: | Size: 7.8 KiB |
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"name": "Thoughts and Musings",
|
||||
"short_name": "andwati.com",
|
||||
"icons": [
|
||||
{ "src": "/images/favicon-192x192.png", "sizes": "192x192", "type": "image/png" },
|
||||
{ "src": "/images/favicon-512x512.png", "sizes": "512x512", "type": "image/png" }
|
||||
],
|
||||
"theme_color": "#131311",
|
||||
"background_color": "#131311",
|
||||
"display": "standalone",
|
||||
"start_url": "/"
|
||||
}
|
||||
@@ -1,5 +1,9 @@
|
||||
{% extends "base.html" %} {% block title %}{{ section.title }} | {{ config.title }}{% endblock title
|
||||
%} {% block content %}
|
||||
%} {% block description %}Chronological archive of every post on {{ config.title }}.{% endblock
|
||||
description %} {% block canonical %}{{ section.permalink }}{% endblock canonical %} {% block og_title
|
||||
%}{{ section.title }} | {{ config.title }}{% endblock og_title %} {% block og_description %}Chronological
|
||||
archive of every post on {{ config.title }}.{% endblock og_description %} {% block og_url %}{{
|
||||
section.permalink }}{% endblock og_url %} {% block content %}
|
||||
<div class="post-detail">
|
||||
<header class="post-header list-page-header">
|
||||
<h1 class="post-title list-page-title">{{ config.extra.archive_page_title | default(value="Archive") }}</h1>
|
||||
|
||||
+18
-10
@@ -7,6 +7,14 @@
|
||||
<meta name="description" content="{% block description %}{{ config.description }}{% endblock description %}">
|
||||
<meta name="view-transition" content="same-origin">
|
||||
|
||||
<!-- Favicon -->
|
||||
<link rel="icon" href="/favicon.ico" sizes="any">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png">
|
||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
||||
<link rel="manifest" href="/site.webmanifest">
|
||||
<meta name="theme-color" content="#131311">
|
||||
|
||||
<!-- Canonical URL -->
|
||||
<link rel="canonical" href="{% block canonical %}{{ config.base_url }}/{% endblock canonical %}">
|
||||
|
||||
@@ -56,21 +64,21 @@
|
||||
"@graph": [
|
||||
{
|
||||
"@type": "WebSite",
|
||||
"@id": "{{ config.base_url }}/#website",
|
||||
"url": "{{ config.base_url }}/",
|
||||
"name": "{{ config.title }}",
|
||||
"description": "{{ config.description }}",
|
||||
"@id": "{{ config.base_url | safe }}/#website",
|
||||
"url": "{{ config.base_url | safe }}/",
|
||||
"name": {{ config.title | json_encode | safe }},
|
||||
"description": {{ config.description | json_encode | safe }},
|
||||
"inLanguage": "en-US"
|
||||
},
|
||||
{
|
||||
"@type": "Person",
|
||||
"@id": "{{ config.base_url }}/#author",
|
||||
"name": "{{ config.extra.author | default(value="andwati") }}",
|
||||
"url": "{{ config.base_url }}/about/",
|
||||
"@id": "{{ config.base_url | safe }}/#author",
|
||||
"name": {{ config.extra.author | default(value="andwati") | json_encode | safe }},
|
||||
"url": "{{ config.base_url | safe }}/about/",
|
||||
"sameAs": [
|
||||
{% if config.extra.github_url %}"{{ config.extra.github_url }}"{% if config.extra.twitter_url or config.extra.youtube_url %},{% endif %}{% endif %}
|
||||
{% if config.extra.twitter_url %}"{{ config.extra.twitter_url }}"{% if config.extra.youtube_url %},{% endif %}{% endif %}
|
||||
{% if config.extra.youtube_url %}"{{ config.extra.youtube_url }}"{% endif %}
|
||||
{% if config.extra.github_url %}"{{ config.extra.github_url | safe }}"{% if config.extra.twitter_url or config.extra.youtube_url %},{% endif %}{% endif %}
|
||||
{% if config.extra.twitter_url %}"{{ config.extra.twitter_url | safe }}"{% if config.extra.youtube_url %},{% endif %}{% endif %}
|
||||
{% if config.extra.youtube_url %}"{{ config.extra.youtube_url | safe }}"{% endif %}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
@@ -5,23 +5,24 @@ block og_url %}{{ config.base_url }}/{% endblock og_url %} {% block head %}
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "Blog",
|
||||
"@id": "{{ config.base_url }}/#blog",
|
||||
"name": "{{ config.title }}",
|
||||
"description": "{{ config.description }}",
|
||||
"url": "{{ config.base_url }}/",
|
||||
"@id": "{{ config.base_url | safe }}/#blog",
|
||||
"name": {{ config.title | json_encode | safe }},
|
||||
"description": {{ config.description | json_encode | safe }},
|
||||
"url": "{{ config.base_url | safe }}/",
|
||||
"inLanguage": "en-US",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"@id": "{{ config.base_url }}/#author"
|
||||
"@id": "{{ config.base_url | safe }}/#author"
|
||||
},
|
||||
"blogPost": [
|
||||
{% set section = get_section(path="posts/_index.md") %}
|
||||
{% for page in section.pages %}
|
||||
{
|
||||
"@type": "BlogPosting",
|
||||
"@id": "{{ page.permalink }}#article",
|
||||
"headline": {{ page.title | json_encode }},
|
||||
"url": "{{ page.permalink }}"
|
||||
"@id": "{{ page.permalink | safe }}#article",
|
||||
"headline": {{ page.title | json_encode | safe }},
|
||||
"image": "{{ config.base_url | safe }}/images/og-image.png",
|
||||
"url": "{{ page.permalink | safe }}"
|
||||
{% if page.date %},"datePublished": "{{ page.date | date(format="%+") }}"{% endif %}
|
||||
}{% if not loop.last %},{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
+16
-15
@@ -30,37 +30,38 @@
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "BlogPosting",
|
||||
"@id": "{{ page.permalink }}#article",
|
||||
"@id": "{{ page.permalink | safe }}#article",
|
||||
"mainEntityOfPage": {
|
||||
"@type": "WebPage",
|
||||
"@id": "{{ page.permalink }}"
|
||||
"@id": "{{ page.permalink | safe }}"
|
||||
},
|
||||
"headline": {{ page.title | json_encode }},
|
||||
"description": {{ page.description | default(value=config.description) | json_encode }},
|
||||
"url": "{{ page.permalink }}",
|
||||
"headline": {{ page.title | json_encode | safe }},
|
||||
"description": {{ page.description | default(value=config.description) | json_encode | safe }},
|
||||
"image": "{{ config.base_url | safe }}/images/og-image.png",
|
||||
"url": "{{ page.permalink | safe }}",
|
||||
"inLanguage": "en-US",
|
||||
{% if page.date %}"datePublished": "{{ page.date | date(format="%+") }}",{% endif %}
|
||||
{% if page.updated %}"dateModified": "{{ page.updated | date(format="%+") }}",{% else %}{% if page.date %}"dateModified": "{{ page.date | date(format="%+") }}",{% endif %}{% endif %}
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"@id": "{{ config.base_url }}/#author",
|
||||
"name": "{{ config.extra.author | default(value="andwati") }}",
|
||||
"url": "{{ config.base_url }}/about/"
|
||||
"@id": "{{ config.base_url | safe }}/#author",
|
||||
"name": {{ config.extra.author | default(value="andwati") | json_encode | safe }},
|
||||
"url": "{{ config.base_url | safe }}/about/"
|
||||
},
|
||||
"publisher": {
|
||||
"@type": "Person",
|
||||
"@id": "{{ config.base_url }}/#author",
|
||||
"name": "{{ config.extra.author | default(value="andwati") }}",
|
||||
"url": "{{ config.base_url }}/about/"
|
||||
"@id": "{{ config.base_url | safe }}/#author",
|
||||
"name": {{ config.extra.author | default(value="andwati") | json_encode | safe }},
|
||||
"url": "{{ config.base_url | safe }}/about/"
|
||||
},
|
||||
"isPartOf": {
|
||||
"@type": "Blog",
|
||||
"@id": "{{ config.base_url }}/#blog",
|
||||
"name": "{{ config.title }}",
|
||||
"url": "{{ config.base_url }}/"
|
||||
"@id": "{{ config.base_url | safe }}/#blog",
|
||||
"name": {{ config.title | json_encode | safe }},
|
||||
"url": "{{ config.base_url | safe }}/"
|
||||
}
|
||||
{% if page.taxonomies.tags %}
|
||||
,"keywords": [{% for tag in page.taxonomies.tags %}"{{ tag }}"{% if not loop.last %},{% endif %}{% endfor %}]
|
||||
,"keywords": [{% for tag in page.taxonomies.tags %}{{ tag | json_encode | safe }}{% if not loop.last %},{% endif %}{% endfor %}]
|
||||
{% endif %}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -47,29 +47,29 @@
|
||||
"@graph": [
|
||||
{
|
||||
"@type": "WebSite",
|
||||
"@id": "{{ config.base_url }}/#website",
|
||||
"url": "{{ config.base_url }}/",
|
||||
"name": "{{ config.title }}",
|
||||
"description": "{{ config.description }}",
|
||||
"@id": "{{ config.base_url | safe }}/#website",
|
||||
"url": "{{ config.base_url | safe }}/",
|
||||
"name": {{ config.title | json_encode | safe }},
|
||||
"description": {{ config.description | json_encode | safe }},
|
||||
"inLanguage": "en-US",
|
||||
"potentialAction": {
|
||||
"@type": "SearchAction",
|
||||
"target": {
|
||||
"@type": "EntryPoint",
|
||||
"urlTemplate": "{{ config.base_url }}/posts?q={search_term_string}"
|
||||
"urlTemplate": "{{ config.base_url | safe }}/posts?q={search_term_string}"
|
||||
},
|
||||
"query-input": "required name=search_term_string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Person",
|
||||
"@id": "{{ config.base_url }}/#author",
|
||||
"name": "{{ config.extra.author | default(value="andwati") }}",
|
||||
"url": "{{ config.base_url }}/about/",
|
||||
"@id": "{{ config.base_url | safe }}/#author",
|
||||
"name": {{ config.extra.author | default(value="andwati") | json_encode | safe }},
|
||||
"url": "{{ config.base_url | safe }}/about/",
|
||||
"sameAs": [
|
||||
{% if config.extra.github_url %}"{{ config.extra.github_url }}"{% if config.extra.twitter_url or config.extra.youtube_url %},{% endif %}{% endif %}
|
||||
{% if config.extra.twitter_url %}"{{ config.extra.twitter_url }}"{% if config.extra.youtube_url %},{% endif %}{% endif %}
|
||||
{% if config.extra.youtube_url %}"{{ config.extra.youtube_url }}"{% endif %}
|
||||
{% if config.extra.github_url %}"{{ config.extra.github_url | safe }}"{% if config.extra.twitter_url or config.extra.youtube_url %},{% endif %}{% endif %}
|
||||
{% if config.extra.twitter_url %}"{{ config.extra.twitter_url | safe }}"{% if config.extra.youtube_url %},{% endif %}{% endif %}
|
||||
{% if config.extra.youtube_url %}"{{ config.extra.youtube_url | safe }}"{% endif %}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
+10
-8
@@ -9,27 +9,29 @@ og_description %}{{ config.extra.posts_page_subtitle | default(value="Exploring
|
||||
}}/{% endif %}{% endblock og_url %} {% block head %}
|
||||
{% set posts_page_title = config.extra.posts_page_title | default(value="Posts") %}
|
||||
{% set posts_page_subtitle = config.extra.posts_page_subtitle | default(value="Exploring binary exploitation, reverse engineering, and offensive security.") %}
|
||||
{% set posts_ld_name = posts_page_title ~ " | " ~ config.title %}
|
||||
<!-- SEO: CollectionPage JSON-LD -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "CollectionPage",
|
||||
"@id": "{{ config.base_url }}/posts/#collection",
|
||||
"name": "{{ posts_page_title }} | {{ config.title }}",
|
||||
"description": {{ posts_page_subtitle | json_encode }},
|
||||
"url": "{{ config.base_url }}/posts/",
|
||||
"@id": "{{ config.base_url | safe }}/posts/#collection",
|
||||
"name": {{ posts_ld_name | json_encode | safe }},
|
||||
"description": {{ posts_page_subtitle | json_encode | safe }},
|
||||
"url": "{{ config.base_url | safe }}/posts/",
|
||||
"inLanguage": "en-US",
|
||||
"isPartOf": {
|
||||
"@type": "WebSite",
|
||||
"@id": "{{ config.base_url }}/#website"
|
||||
"@id": "{{ config.base_url | safe }}/#website"
|
||||
},
|
||||
"hasPart": [
|
||||
{% for page in paginator.pages %}
|
||||
{
|
||||
"@type": "BlogPosting",
|
||||
"@id": "{{ page.permalink }}#article",
|
||||
"headline": {{ page.title | json_encode }},
|
||||
"url": "{{ page.permalink }}"
|
||||
"@id": "{{ page.permalink | safe }}#article",
|
||||
"headline": {{ page.title | json_encode | safe }},
|
||||
"image": "{{ config.base_url | safe }}/images/og-image.png",
|
||||
"url": "{{ page.permalink | safe }}"
|
||||
{% if page.date %},"datePublished": "{{ page.date | date(format="%+") }}"{% endif %}
|
||||
}{% if not loop.last %},{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
@@ -10,10 +10,10 @@ og_description %} {% block og_url %}{{ config.base_url }}/tags/{% endblock og_ur
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "CollectionPage",
|
||||
"@id": "{{ config.base_url }}/tags/#collection",
|
||||
"@id": "{{ config.base_url | safe }}/tags/#collection",
|
||||
"name": "Tags | {{ config.title }}",
|
||||
"description": "Browse all tags on {{ config.title }}",
|
||||
"url": "{{ config.base_url }}/tags/",
|
||||
"url": "{{ config.base_url | safe }}/tags/",
|
||||
"inLanguage": "en-US"
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -4,27 +4,30 @@ description %} {% block canonical %}{{ term.permalink }}{% endblock canonical %}
|
||||
%}Tag: {{ term.name }} | {{ config.title }}{% endblock og_title %} {% block og_description %}Posts
|
||||
tagged "{{ term.name }}" on {{ config.title }}{% endblock og_description %} {% block og_url %}{{
|
||||
term.permalink }}{% endblock og_url %} {% block head %}
|
||||
{% set tag_ld_name = 'Posts tagged "' ~ term.name ~ '" | ' ~ config.title %}
|
||||
{% set tag_ld_description = 'Posts tagged "' ~ term.name ~ '" on ' ~ config.title %}
|
||||
<!-- SEO: Tag CollectionPage JSON-LD -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "CollectionPage",
|
||||
"@id": "{{ term.permalink }}#collection",
|
||||
"name": "Posts tagged \"{{ term.name }}\" | {{ config.title }}",
|
||||
"description": "Posts tagged \"{{ term.name }}\" on {{ config.title }}",
|
||||
"url": "{{ term.permalink }}",
|
||||
"@id": "{{ term.permalink | safe }}#collection",
|
||||
"name": {{ tag_ld_name | json_encode | safe }},
|
||||
"description": {{ tag_ld_description | json_encode | safe }},
|
||||
"url": "{{ term.permalink | safe }}",
|
||||
"inLanguage": "en-US",
|
||||
"isPartOf": {
|
||||
"@type": "WebSite",
|
||||
"@id": "{{ config.base_url }}/#website"
|
||||
"@id": "{{ config.base_url | safe }}/#website"
|
||||
},
|
||||
"hasPart": [
|
||||
{% for page in term.pages %}
|
||||
{
|
||||
"@type": "BlogPosting",
|
||||
"@id": "{{ page.permalink }}#article",
|
||||
"headline": {{ page.title | json_encode }},
|
||||
"url": "{{ page.permalink }}"
|
||||
"@id": "{{ page.permalink | safe }}#article",
|
||||
"headline": {{ page.title | json_encode | safe }},
|
||||
"image": "{{ config.base_url | safe }}/images/og-image.png",
|
||||
"url": "{{ page.permalink | safe }}"
|
||||
{% if page.date %},"datePublished": "{{ page.date | date(format="%+") }}"{% endif %}
|
||||
}{% if not loop.last %},{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user