0

私はJekyllとGithub Pagesの独学者です。config.ymlページのmarkdownを使って新しいタブでURLを開く方法を知りました。Jekyll/Githubページのサイトのconfig.ymlの新しいタブでURLを開くには?

Thisは私が使用しているウェブサイトのテーマです。 現在のタブで開いているデフォルトではなく、の新しいタブで最後の 'github'リンクを開きます。

_config.ymlは次のようになります。

# # # # # # # # # # # # # 
# K i k o - p l u s # 
# # # # # # # # # # # # # 

# Basic 
name:   "Kiko Plus" 

author: 
facebook:   your-id 
youtubeUser:  your-id 
youtubeChannel: your-id 
twitter: your-id 
github:  your-id 
stackoverflow: your-id 
quora:  your-id 
linkedin:   your-id 
pinterest:  your-id 
googlePlus:  your-id 
instagram:  your-id 
reddit:  your-id 
medium:  your-id 
tumblr:  your-id 
email:  [email protected] 

copyright: 
year:  2017 
name:  Kiko 

# Google-analytics 
google-analytics: 
id:   "" 

# Disqus 
disqus: 
id:   "kiko-plus" 

# URL 
url:   "https://AWEEKJ.github.io" # the base 
hostname & protocol for your site 
# url:   "http://localhost:4000" # use this url when 
you develop 
baseurl:  "/Kiko-plus" # the subpath of your site 


# http://en.wikipedia.org/wiki/List_of_tz_database_time_zones 
timezone:  Asia/Seoul 
permalink: /:year-:month-:day/:title/ 

# Pagination 
paginate:  5 
paginate_path:  /page:num/ 

# Markdown 
markdown:  kramdown 
kramdown: 
input:  GFM 

# Navigation 
nav: 
- name:  "About" 
    url:  "/about" 
- name:  "Archive" 
    url:  "/archive" 
- name:  "Tags" 
    url:  "/tags" 
- name:  "Github" 
    url:  "https://github.com/AWEEKJ/Kiko-plus" 

# Sass 
sass: 
sass_dir:   _sass 
style:  :compressed 

# Scopes 
defaults: 
- 
    scope: 
    path:   "" 
    type:   "pages" 
    values: 
    layout:  "page" 
- 
    scope: 
    path:   "" 
    type:   "posts" 
    values: 
    layout:  "post" 

# jekyll-seo-tag, 
gems: 
- jekyll-seo-tag 
- jekyll-paginate 
- jekyll-admin 

exclude:  [vendor] 

は、自然にあなたが

[a link](http://example.com){:target="_blank"} 

を行いたい任意の基本的な値下げポストでこれを行うにはしかし、このリンクは、サイトの設定であるため、 、それは動作しません。私は1トンを検索し、5つまたは6つの異なる推奨を試みたが、役に立たなかった。

アイデア? uberに感謝されるだろう!!!!

答えて

0

あなたは以下のようtarget="_blank"index.htmlに行12追加する必要があります。

<a href="{{ nav.url }}" target="_blank">{{ nav.name }}</a> 
+0

完全に働いた - ありがとうございました! – E489D

関連する問題