Skip to content

Commit 9932582

Browse files
authored
OpenGraph tag, favicon.ico 및 robotos.txt 추가 (#453) (#454)
1 parent 9249585 commit 9932582

12 files changed

Lines changed: 24 additions & 3 deletions

_static/favicon.ico

2.06 KB
Binary file not shown.

_static/logos/favicon.ico

2.06 KB
Binary file not shown.

_static/logos/logo-kr-dark.png

8.02 KB
Loading

_static/logos/logo-kr-sm-dark.png

6.57 KB
Loading

_static/logos/logo-kr-sm.png

7.04 KB
Loading
15.8 KB
Loading

_static/logos/logo-kr-square.png

16.2 KB
Loading

_static/logos/logo-kr.png

8.49 KB
Loading

_static/robots.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
User-agent: *
2+
Allow: /
3+
4+
Sitemap: http://tutorials.pytorch.kr/sitemap.xml

conf.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,18 @@
6262
'sphinx_copybutton',
6363
'sphinx_gallery.gen_gallery',
6464
'sphinx_sitemap',
65+
'sphinxext.opengraph',
66+
]
67+
68+
69+
# -- Sphinxext-opengraph configuration ---------------------------------------
70+
71+
ogp_site_url = site_url
72+
ogp_image = '{}{}'.format(site_url, '_static/logos/logo-kr-sm-dark.png')
73+
ogp_description_length = 300
74+
ogp_type = 'article'
75+
ogp_custom_meta_tags = [
76+
'<meta property="og:ignore_canonical" content="true" />',
6577
]
6678

6779

@@ -189,7 +201,9 @@
189201

190202
html_theme = 'pytorch_sphinx_theme'
191203
html_theme_path = [pytorch_sphinx_theme.get_html_theme_path()]
192-
html_logo = '_static/img/pytorch-logo-dark.svg'
204+
html_logo = '_static/logos/logo-kr-sm-dark.svg'
205+
html_favicon = '_static/favicon.ico' # under html_static_path
206+
html_title = '파이토치 한국어 튜토리얼(PyTorch tutorials in Korean)'
193207
html_theme_options = {
194208
'pytorch_project': 'tutorials',
195209
'collapse_navigation': False,

0 commit comments

Comments
 (0)