UNPKG
jekyll
Version:
latest (3.0.0-beta1)
3.0.0-beta1
A blog-aware, static site generator in Ruby
github.com/jekyll/jekyll
jekyll/jekyll
jekyll
/
site
/
_includes
/
docs_option.html
12 lines
(9 loc)
•
297 B
HTML
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
{% assign items =
include
.items %} {%
for
item in items %} {% assign item_url = item | prepend:
"/docs/"
| append:
"/"
%} {%
for
p in site.docs %} {%
if
p.url == item_url %} <option value=
"{{ site.url }}{{ p.url }}"
>{{ p.title }}</option> {%
endif
%} {%
endfor
%} {%
endfor
%}