|
| 1 | +{% extends "base.html" %} |
| 2 | + |
| 3 | +{#- |
| 4 | + SEO 최적화 블록: OG / Twitter Card / canonical / JSON-LD / 추가 메타. |
| 5 | + page.meta 우선, 없으면 config 기본값 사용. |
| 6 | +-#} |
| 7 | + |
| 8 | +{% block extrahead %} |
| 9 | + {% set page_title = (page.meta and page.meta.title) or page.title or config.site_name %} |
| 10 | + {% set page_desc = (page.meta and page.meta.description) or config.site_description %} |
| 11 | + {% set page_url = page.canonical_url or config.site_url %} |
| 12 | + {% set og_image = (page.meta and page.meta.image) or (config.site_url ~ 'assets/og-image.png') %} |
| 13 | + {% set site_keywords = 'KIS, 한국투자증권, OpenAPI, Python, SDK, CLI, 주식 API, 트레이딩, 자동매매, WebSocket, LLM Agent, MCP, kis-agent, pykis, 국내주식, 해외주식, 선물옵션' %} |
| 14 | + {% set page_keywords = (page.meta and page.meta.keywords) or site_keywords %} |
| 15 | + |
| 16 | + {% if config.extra.google_site_verification %}<meta name="google-site-verification" content="{{ config.extra.google_site_verification }}">{% endif %} |
| 17 | + {% if config.extra.naver_site_verification %}<meta name="naver-site-verification" content="{{ config.extra.naver_site_verification }}">{% endif %} |
| 18 | + |
| 19 | + <link rel="canonical" href="{{ page_url }}"> |
| 20 | + <meta name="description" content="{{ page_desc }}"> |
| 21 | + <meta name="keywords" content="{{ page_keywords }}"> |
| 22 | + <meta name="author" content="unohee"> |
| 23 | + <meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1"> |
| 24 | + <meta name="googlebot" content="index, follow"> |
| 25 | + |
| 26 | + <meta property="og:type" content="website"> |
| 27 | + <meta property="og:site_name" content="{{ config.site_name }}"> |
| 28 | + <meta property="og:title" content="{{ page_title }}"> |
| 29 | + <meta property="og:description" content="{{ page_desc }}"> |
| 30 | + <meta property="og:url" content="{{ page_url }}"> |
| 31 | + {% if og_image %}<meta property="og:image" content="{{ og_image }}">{% endif %} |
| 32 | + <meta property="og:locale" content="ko_KR"> |
| 33 | + |
| 34 | + <meta name="twitter:card" content="{% if og_image %}summary_large_image{% else %}summary{% endif %}"> |
| 35 | + <meta name="twitter:title" content="{{ page_title }}"> |
| 36 | + <meta name="twitter:description" content="{{ page_desc }}"> |
| 37 | + {% if og_image %}<meta name="twitter:image" content="{{ og_image }}">{% endif %} |
| 38 | + |
| 39 | + <script type="application/ld+json"> |
| 40 | + { |
| 41 | + "@context": "https://schema.org", |
| 42 | + "@type": "SoftwareApplication", |
| 43 | + "name": "KIS-Agent", |
| 44 | + "alternateName": "kis-agent", |
| 45 | + "description": "{{ config.site_description }}", |
| 46 | + "url": "{{ config.site_url }}", |
| 47 | + "applicationCategory": "DeveloperApplication", |
| 48 | + "operatingSystem": "Cross-platform", |
| 49 | + "programmingLanguage": "Python", |
| 50 | + "offers": { |
| 51 | + "@type": "Offer", |
| 52 | + "price": "0", |
| 53 | + "priceCurrency": "USD" |
| 54 | + }, |
| 55 | + "author": { |
| 56 | + "@type": "Person", |
| 57 | + "name": "unohee", |
| 58 | + "url": "https://github.com/unohee" |
| 59 | + }, |
| 60 | + "codeRepository": "https://github.com/unohee/kis-agent", |
| 61 | + "license": "https://opensource.org/licenses/MIT", |
| 62 | + "keywords": "{{ site_keywords }}" |
| 63 | + } |
| 64 | + </script> |
| 65 | +{% endblock %} |
0 commit comments