-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #310 from rstudio/news
News
- Loading branch information
Showing
7 changed files
with
159 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Separator page |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{#- | ||
Modified to have section dividers | ||
-#} | ||
<nav class="md-nav md-nav--primary" data-md-level="0"> | ||
<label class="md-nav__title md-nav__title--site" for="__drawer"> | ||
<a href="{{ config.site_url | default(nav.homepage.url, true) | url }}" title="{{ config.site_name }}" class="md-nav__button md-logo"> | ||
{% if config.theme.logo.icon %} | ||
<i class="md-icon">{{ config.theme.logo.icon }}</i> | ||
{% else %} | ||
<img src="{{ config.theme.logo | url }}" width="48" height="48"> | ||
{% endif %} | ||
</a> | ||
{{ config.site_name }} | ||
</label> | ||
{% if config.repo_url %} | ||
<div class="md-nav__source"> | ||
{% include "partials/source.html" %} | ||
</div> | ||
{% endif %} | ||
<ul class="md-nav__list" data-md-scrollfix> | ||
{% for nav_item in nav %} | ||
{% if nav_item.title != "──────────────" %} | ||
{% set path = "nav-" + loop.index | string %} | ||
{% set level = 1 %} | ||
{% include "partials/nav-item.html" %} | ||
{% else %} | ||
<li class="md-nav__item"><hr></li> | ||
{% endif %} | ||
{% endfor %} | ||
</ul> | ||
</nav> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{#- | ||
Modified to handle hiding the TOC | ||
-#} | ||
{% import "partials/language.html" as lang with context %} | ||
{% if page.meta.hide_toc %} | ||
{% else %} | ||
<nav class="md-nav md-nav--secondary"> | ||
{% set toc_ = page.toc %} | ||
{% if toc_ | first is defined and "\x3ch1 id=" in page.content %} | ||
{% set toc_ = (toc_ | first).children %} | ||
{% endif %} | ||
{% if toc_ | first is defined %} | ||
<label class="md-nav__title" for="__toc">{{ lang.t("toc.title") }}</label> | ||
<ul class="md-nav__list" data-md-scrollfix> | ||
{% for toc_item in toc_ %} | ||
{% include "partials/toc-item.html" %} | ||
{% endfor %} | ||
{% if page.meta.source and page.meta.source | length > 0 %} | ||
<li class="md-nav__item"> | ||
<a href="#__source" title="{{ lang.t('meta.source') }}" class="md-nav__link md-nav__link--active"> | ||
{{ lang.t("meta.source") }} | ||
</a> | ||
</li> | ||
{% endif %} | ||
{% set disqus = config.extra.disqus %} | ||
{% if page and page.meta and page.meta.disqus is string %} | ||
{% set disqus = page.meta.disqus %} | ||
{% endif %} | ||
{% if not page.is_homepage and disqus %} | ||
<li class="md-nav__item"> | ||
<a href="#__comments" title="{{ lang.t('meta.comments') }}" class="md-nav__link md-nav__link--active"> | ||
{{ lang.t("meta.comments") }} | ||
</a> | ||
</li> | ||
{% endif %} | ||
</ul> | ||
{% endif %} | ||
</nav> | ||
{% endif %} | ||
|