Browse Source

Updating to add Edit Me

Signed-off-by: Mary Anthony <mary@blockstack.com>
feat/clarity-updates
Mary Anthony 5 years ago
parent
commit
68908570ef
  1. 5
      _config.yml
  2. 5
      _includes/editme.html
  3. 2
      _includes/post-meta.html

5
_config.yml

@ -21,7 +21,8 @@ repository: blockstack/docs.blockstack
staticman:
branch: "master"
github_editme_path: blockstack/docs-new/blob/master
github_editme_path: blockstack/docs.blockstack/blob/master
branch_url: master
# if you're using Github, provide the basepath to the branch you've created for reviews, following the sample here. if not, leave this value blank.
@ -168,6 +169,7 @@ sass:
defaults:
- scope:
path: "" # an empty string here means all files in the project
basepath: elephant
values:
comments: true
image: /assets/img/touch-icon.png
@ -176,7 +178,6 @@ defaults:
collections:
android:
output: true
basepath: "blockstack/blockstack-android/blob/master/docs"
community:
output: true
core:

5
_includes/editme.html

@ -1,4 +1,5 @@
{% assign theCol = site.collections | where: "label", page.collection | first %}
<!-- {% assign theCol = site.collections | where: "label", page.collection | first %} -->
{% assign filename = page.slug | append: '.md' %}
<a "target="_blank" href="https://github.com/{{theCol.basepath}}/{{filename}}{% unless page.url contains "index.html" %}{% endunless %}" class="btn btn-default githubEditButton" role="button">
<a "target="_blank" href="https://github.com/{{site.github_editme_path}}/{{page.relative_path}}{% unless page.url contains "index.html" %}{% endunless %}" class="btn btn-default githubEditButton" role="button">
<span data-uk-icon="icon: pencil; ratio: 1.2"></span> Edit this page on Github</a>

2
_includes/post-meta.html

@ -15,5 +15,5 @@
<time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
{% assign date_format = site.date_format | default: "%b %-d, %Y" %}
{{ page.date | date: date_format }}
{% include editme.html %} <span style="font-family:Wingdings">&#119;</span>
{% include editme.html %}
</time>

Loading…
Cancel
Save