{% extends "base.html" %}

{% block extrahead %}
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-VHRY2VKY9K"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'G-VHRY2VKY9K');
</script>

{% if page and page.meta %}
<!-- Open Graph -->
<meta property="og:type" content="website" />
<meta property="og:title" content="{{ page.meta.title or page.title }} - {{ config.site_name }}" />
<meta property="og:description" content="{{ page.meta.description or config.site_description }}" />
<meta property="og:url" content="{{ page.canonical_url }}" />
<meta property="og:site_name" content="{{ config.site_name }}" />
<meta property="og:image" content="https://opengraph.githubassets.com/1/alirezarezvani/claude-skills" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:locale" content="en_US" />

<!-- Twitter Card -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="{{ page.meta.title or page.title }} - {{ config.site_name }}" />
<meta name="twitter:description" content="{{ page.meta.description or config.site_description }}" />
<meta name="twitter:site" content="@nginitycloud" />
<meta name="twitter:creator" content="@nginitycloud" />
<meta name="twitter:image" content="https://opengraph.githubassets.com/1/alirezarezvani/claude-skills" />

<!-- Additional SEO -->
<meta name="author" content="Alireza Rezvani" />
<meta name="robots" content="index, follow" />
<link rel="canonical" href="{{ page.canonical_url }}" />
{% endif %}

<!-- JSON-LD Structured Data -->
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "WebSite",
  "name": "{{ config.site_name }}",
  "url": "{{ config.site_url }}",
  "description": "{{ config.site_description }}",
  "author": {
    "@type": "Person",
    "name": "{{ config.site_author }}",
    "url": "https://alirezarezvani.com",
    "sameAs": [
      "https://github.com/alirezarezvani",
      "https://alirezarezvani.medium.com",
      "https://twitter.com/nginitycloud"
    ]
  }
}
</script>
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "SoftwareSourceCode",
  "name": "Claude Code Skills & Plugins",
  "description": "{{ config.site_description }}",
  "url": "{{ config.site_url }}",
  "codeRepository": "https://github.com/alirezarezvani/claude-skills",
  "programmingLanguage": ["Python", "Markdown"],
  "runtimePlatform": "Claude Code, OpenAI Codex, Gemini CLI, Cursor, Aider, Windsurf, OpenClaw",
  "license": "https://opensource.org/licenses/MIT",
  "author": {
    "@type": "Person",
    "name": "{{ config.site_author }}",
    "url": "https://alirezarezvani.com"
  },
  "offers": {
    "@type": "Offer",
    "price": "0",
    "priceCurrency": "USD"
  },
  "keywords": "claude code skills, ai coding agent, claude code plugins, openai codex skills, gemini cli skills, cursor rules, ai agent skills, claude code agents, mcp server, coding assistant"
}
</script>
{% if page and page.meta and page.meta.description %}
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "TechArticle",
  "headline": "{{ page.meta.title or page.title }}",
  "description": "{{ page.meta.description }}",
  "url": "{{ page.canonical_url }}",
  "author": {
    "@type": "Person",
    "name": "{{ config.site_author }}"
  },
  "publisher": {
    "@type": "Person",
    "name": "{{ config.site_author }}"
  }
}
</script>
{% endif %}
{% endblock %}
