0

我是自學的/全新的Jekyll和Github Pages,並且想知道如何着手在config.yml頁面中打開一個帶有降價標籤的新標籤頁。如何在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"} 

但由於這種聯繫是在現場設置,那是行不通的。我搜查了一噸,並嘗試了5或6個不同的建議,但無濟於事。

任何想法?會超級讚賞!

回答

0

您需要添加target="_blank"index.html12如下:

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

這完美地工作 - 謝謝! – E489D

相關問題