зеркало из https://github.com/github/mlops.git
google search
This commit is contained in:
Родитель
b5117b01ef
Коммит
da67366731
|
@ -0,0 +1,3 @@
|
|||
<form method="get" id="search-google" action="https://www.google.com/search" target="_blank"><input type="hidden"
|
||||
name="sitesearch" value="jekyllcodex.org" /><input type="text" name="q" maxlength="255" value=""
|
||||
placeholder="Search via Google" class="form-control" /></form>
|
|
@ -14,5 +14,6 @@ permalink : /docs/
|
|||
</section>
|
||||
</div>
|
||||
<section class="docs_content">
|
||||
{%- include google_search.html -%}
|
||||
{{ content }}
|
||||
</section>
|
|
@ -0,0 +1 @@
|
|||
{{content}}
|
|
@ -29,17 +29,11 @@ $(".tag_filter").click(function () {
|
|||
$(this).addClass('active');
|
||||
});
|
||||
|
||||
/* $(".toggle_sub").click(function () {
|
||||
$(this).toggleClass('rot45');
|
||||
$(this).next('ul').toggleClass('hidden');
|
||||
}); */
|
||||
|
||||
$(document).ready(function () {
|
||||
var sidebar = $(".aside_nav_link");
|
||||
var title = $('.doc_title').text();
|
||||
console.log(sidebar);
|
||||
l=sidebar.length;
|
||||
console.log("leng=" + l);
|
||||
for (i=0; i<l; i++) {
|
||||
if (sidebar[i].text == title) {
|
||||
var parent = sidebar[i].parentElement.parentElement;
|
||||
|
@ -50,7 +44,6 @@ console.log("leng=" + l);
|
|||
grandparent.classList.remove("hidden");
|
||||
grandparent.classList.add("active");
|
||||
}
|
||||
console.log(sidebar[i].text);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
23
sitemap.xml
23
sitemap.xml
|
@ -1,17 +1,14 @@
|
|||
---
|
||||
layout: null
|
||||
layout: sitemap
|
||||
---
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
{% for page in site.pages %}
|
||||
{% if page.url contains '.xml' or page.url contains 'assets' %}{% else %}
|
||||
{% for page in site.html_pages %}
|
||||
<url>
|
||||
<loc>{{ site.url }}{{ page.url }}</loc>
|
||||
<changefreq>monthly</changefreq>
|
||||
<priority>1.0</priority>
|
||||
</url>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% for page in site.posts %}
|
||||
<url>
|
||||
|
@ -20,6 +17,20 @@ layout: null
|
|||
<priority>1.0</priority>
|
||||
</url>
|
||||
{% endfor %}
|
||||
{% for page in site.docs %}
|
||||
<url>
|
||||
<loc>{{ site.url }}{{ page.url | replace: 'index.html', '' }}</loc>
|
||||
<changefreq>monthly</changefreq>
|
||||
<priority>1.0</priority>
|
||||
</url>
|
||||
{% endfor %}
|
||||
{% for page in site.team %}
|
||||
<url>
|
||||
<loc>{{ site.url }}{{ page.url | replace: 'index.html', '' }}</loc>
|
||||
<changefreq>monthly</changefreq>
|
||||
<priority>1.0</priority>
|
||||
</url>
|
||||
{% endfor %}
|
||||
{% for page in site.without-plugin %}
|
||||
<url>
|
||||
<loc>{{ site.url }}{{ page.url | replace: 'index.html', '' }}</loc>
|
||||
|
@ -27,4 +38,4 @@ layout: null
|
|||
<priority>1.0</priority>
|
||||
</url>
|
||||
{% endfor %}
|
||||
</urlset>
|
||||
</urlset>
|
Загрузка…
Ссылка в новой задаче