사용자 도구

사이트 도구


사이드바

잡개발자:심심풀이:도쿠위키:seo

문서의 이전 판입니다!


SEO

기능 설명

  • 도쿠위키 기본 메타 태그와 속성만으로는 최신 트렌드 대응에 한계가 있음
  • 메타 태그와 속성을 추가하고 그 외 최신 트렌드를 반영하도록 커스터마이징
    • Open Graph
    • JSON-LD

커스터마이징

  • logo.png

<!-- Open Graph -->
<meta property="og:type" content="website" />
<meta property="og:site_name" content="잡개발자 리토의 잡위키" />
<meta property="og:url" content="https://wiki.jobdeveloper.co.kr/" />
<meta property="og:image" content="https://wiki.jobdeveloper.co.kr/logo.png" />
<!-- //Open Graph -->

<!-- JSON-LD -->
<script type="application/ld+json">
{
	"@context": "https://schema.org",
	"@graph": [
		{
			"@type": "Organization",
			"@id": "https://wiki.jobdeveloper.co.kr/#organization",
			"name": "잡개발자 리토의 잡위키",
			"url": "https://wiki.jobdeveloper.co.kr/",
			"logo": {
				"@type": "ImageObject",
				"url": "https://wiki.jobdeveloper.co.kr/logo.png"
			},
			"image": {
				"@type": "ImageObject",
				"url": "https://wiki.jobdeveloper.co.kr/logo.png"
			}
		},
		{
			"@type": "WebSite",
			"@id": "https://wiki.jobdeveloper.co.kr/#website",
			"name": "잡개발자 리토의 잡위키",
			"url": "https://wiki.jobdeveloper.co.kr/",
			"publisher": {
				"@id": "https://wiki.jobdeveloper.co.kr/#organization"
			},
			"potentialAction": {
				"@type": "SearchAction",
				"target": "https://wiki.jobdeveloper.co.kr/doku.php?do=search&q={search_term_string}",
				"query-input": "required name=search_term_string"
			}
		}
	]
}
</script>
<!-- //JSON-LD -->

User-agent: *
Allow: /

Sitemap: https://wiki.jobdeveloper.co.kr/doku.php?do=sitemap

    // 수정일 메타 데이터
    $head['meta'][] = array('name'=> 'revised', 'content'=> date_iso8601($INFO['lastmod']));
    $head['meta'][] = array('property'=> 'article:modified_time', 'content'=> date_iso8601($INFO['lastmod']));

        default : // SHOW and anything else not included
            $page_title = $name;

            // 이름공간 정보 표기
            global $INFO;
            if (!empty($INFO['namespace'])) {
                $page_title .= ' | ' . str_replace(':', ' > ', $INFO['namespace']);
            }

플러그인 제작 시

  • 기능 사용 여부 설정
  • robots.txt 파일 생성 및 편집