mirror of https://github.com/docker/docs.git
Share images, JS fixes, Marketo removal
This commit is contained in:
parent
78530e93e3
commit
910dd4c588
|
@ -1,6 +1,7 @@
|
||||||
<!-- newsletter -->
|
|
||||||
<div class="newsletter_section">
|
<div class="newsletter_section">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
<!-- newsletter
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<form class="form-inline">
|
<form class="form-inline">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -8,7 +9,7 @@
|
||||||
<button type="submit" class="button outline-btn newsletter">Submit</button>
|
<button type="submit" class="button outline-btn newsletter">Submit</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|
|
@ -41,14 +41,14 @@ else %}{% assign edit_url = "" %}{% endif %} {% break %} {% endif %} {% endfor %
|
||||||
<meta name="robots" content="noindex">{% endif %}
|
<meta name="robots" content="noindex">{% endif %}
|
||||||
<meta property="og:type" content="website"/>
|
<meta property="og:type" content="website"/>
|
||||||
<meta property="og:updated_time" content="{% if page.date %}{{ page.date | date_to_xmlschema }}{% else %}{{ site.time | date_to_xmlschema }}{% endif %}"/>
|
<meta property="og:updated_time" content="{% if page.date %}{{ page.date | date_to_xmlschema }}{% else %}{{ site.time | date_to_xmlschema }}{% endif %}"/>
|
||||||
<meta property="og:image" itemprop="image primaryImageOfPage" content="https://www.docker.com/sites/default/files/social/docker-facebook-share.png"/>
|
<meta property="og:image" itemprop="image primaryImageOfPage" content="/images/docs@2x.png"/>
|
||||||
<meta name="twitter:card" content="summary"/>
|
<meta name="twitter:card" content="summary"/>
|
||||||
<meta name="twitter:domain" content="docs.docker.com"/>
|
<meta name="twitter:domain" content="docs.docker.com"/>
|
||||||
<meta name="twitter:site" content="@docker_docs"/>
|
<meta name="twitter:site" content="@docker_docs"/>
|
||||||
<meta name="twitter:url" content="https://twitter.com/docker_docs"/>
|
<meta name="twitter:url" content="https://twitter.com/docker_docs"/>
|
||||||
<meta name="twitter:title" itemprop="title name" content="{{ page.title }}"/>
|
<meta name="twitter:title" itemprop="title name" content="{{ page.title }}"/>
|
||||||
<meta name="twitter:description" property="og:description" itemprop="description" content="{{ content | strip_html | truncatewords: 30}}" />
|
<meta name="twitter:description" property="og:description" itemprop="description" content="{{ content | strip_html | truncatewords: 30}}" />
|
||||||
<meta name="twitter:image:src" content="https://www.docker.com/sites/default/files/social/docker-twitter-share.png"/>
|
<meta name="twitter:image:src" content="/images/docs@2x.png"/>
|
||||||
<meta name="twitter:image:alt" content="Docker Documentation"/>
|
<meta name="twitter:image:alt" content="Docker Documentation"/>
|
||||||
<meta property="article:published_time" content="{% if page.date %}{{ page.date | date_to_xmlschema }}{% else %}{{ site.time | date_to_xmlschema }}{% endif %}"/>
|
<meta property="article:published_time" content="{% if page.date %}{{ page.date | date_to_xmlschema }}{% else %}{{ site.time | date_to_xmlschema }}{% endif %}"/>
|
||||||
|
|
||||||
|
@ -114,7 +114,7 @@ else %}{% assign edit_url = "" %}{% endif %} {% break %} {% endif %} {% endfor %
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
<div class="col-toc">
|
<div class="col-toc">
|
||||||
<div id="{% if page.landing == true %}sidebar-wrapper-home{%else%}sidebar-wrapper{% endif %}" class="{% if page.landing == true %} affix-top{%else%}sidebar-wrapper toc-nav{% endif %}" {% if page.landing == true %} data-spy="affix" data-offset-top="490">{%else%}{% endif %}
|
<div id="{% if page.landing == true %}sidebar-wrapper-home{%else%}sidebar-wrapper{% endif %}" class="{% if page.landing == true %} affix-top{%else%}sidebar-wrapper toc-nav{% endif %}" {% if page.landing == true %} data-spy="affix" data-offset-top="490"{% endif %}>
|
||||||
<div class="toc-nav">
|
<div class="toc-nav">
|
||||||
<div class="feedback-links">
|
<div class="feedback-links">
|
||||||
<ul>
|
<ul>
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
Binary file not shown.
After Width: | Height: | Size: 27 KiB |
|
@ -80,12 +80,14 @@ function checkNavSizes()
|
||||||
headerOffset = document.getElementsByClassName("container-fluid")[0].getBoundingClientRect().bottom;
|
headerOffset = document.getElementsByClassName("container-fluid")[0].getBoundingClientRect().bottom;
|
||||||
if (footerTop < sidebarBottom || (sidebarBottom < footerTop && sidebarBottom < $(window).height()))
|
if (footerTop < sidebarBottom || (sidebarBottom < footerTop && sidebarBottom < $(window).height()))
|
||||||
{
|
{
|
||||||
|
|
||||||
// the footer is overlapping the sidebar
|
// the footer is overlapping the sidebar
|
||||||
var sidebarHeight = ((footerTop - headerOffset) < $(window).height()) ? (footerTop - headerOffset) : $(window).height();
|
var sidebarHeight = (footerTop < $(window).height()) ? footerTop : $(window).height();
|
||||||
var tocNavHeight = (footerTop < $(window).height()) ? footerTop : $(window).height();
|
var tocNavHeight = (footerTop < $(window).height()) ? footerTop : $(window).height();
|
||||||
sidebarObj.style.height = sidebarHeight + "px";
|
sidebarObj.style.height = sidebarHeight + "px";
|
||||||
document.getElementsByClassName("toc-nav")[0].style.height = footerTop + "px";
|
document.getElementsByClassName("toc-nav")[0].style.height = tocNavHeight + "px";
|
||||||
highlightRightNav(currentHeading);
|
$(sidebarObj).clearQueue().finish();
|
||||||
|
setTimeout(highlightRightNav(currentHeading),1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$(window).resize(function() {
|
$(window).resize(function() {
|
||||||
|
|
Loading…
Reference in New Issue