now with improve content include
This commit is contained in:
parent
e40c641a14
commit
d86e9480e1
6 changed files with 42 additions and 8 deletions
|
@ -24,6 +24,10 @@ description: "»Feeling Responsive« is a responsive theme for Jekyll based on t
|
||||||
url: "http://phlow.github.io/feeling-responsive"
|
url: "http://phlow.github.io/feeling-responsive"
|
||||||
baseurl: ""
|
baseurl: ""
|
||||||
|
|
||||||
|
# This is for the editing function in _/includes/improve_content.html
|
||||||
|
# Leave it empty if your site is not on GitHub/GitHub Pages
|
||||||
|
improve_content: https://github.com/Phlow/feeling-responsive/edit/gh-pages
|
||||||
|
|
||||||
# This URL points directly to the images directory making
|
# This URL points directly to the images directory making
|
||||||
# things easier to link to images in posts and templates. It needs a slash.
|
# things easier to link to images in posts and templates. It needs a slash.
|
||||||
#
|
#
|
||||||
|
|
|
@ -17,4 +17,7 @@ if_you_are_not_redirected_automatically: "If you are not redirected automaticall
|
||||||
click_here: "click here"
|
click_here: "click here"
|
||||||
next_post_in: "Next Post in"
|
next_post_in: "Next Post in"
|
||||||
previous_post_in: "Previous Post in"
|
previous_post_in: "Previous Post in"
|
||||||
breadcrumb_start: "Start"
|
breadcrumb_start: "Start"
|
||||||
|
edit: "Edit"
|
||||||
|
this_content_is_open_source: "This content is open source."
|
||||||
|
help_improve_it: "Help improve it"
|
19
_includes/improve_content.html
Normal file
19
_includes/improve_content.html
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{% comment %}
|
||||||
|
*
|
||||||
|
* If your content is on Jekyll you can use this include
|
||||||
|
* to automatically generate a »Edit on GitHub Link« to
|
||||||
|
* give people a possibility to improve your content.
|
||||||
|
*
|
||||||
|
{% endcomment %}
|
||||||
|
<div class="row">
|
||||||
|
<div class="small-12 columns">
|
||||||
|
<div class="panel radius" style="padding-bottom: 21px;">
|
||||||
|
<a class="button left r15 tiny radius" href="{{ site.improve_content }}/{{ page.path }}">{{ site.data.language.edit }}</a>
|
||||||
|
<p style="margin-top: 3px;">
|
||||||
|
{{ site.data.language.this_content_is_open_source }}
|
||||||
|
<a href="{{ site.improve_content }}/{{ page.path }}">{{ site.data.language.help_improve_it }}</a>.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -8,24 +8,22 @@
|
||||||
------------------------------------------------------------------- */
|
------------------------------------------------------------------- */
|
||||||
|
|
||||||
a,
|
a,
|
||||||
a:link {
|
a:link {}
|
||||||
color: $ci-1;
|
|
||||||
}
|
|
||||||
|
|
||||||
a:visited {
|
a:visited {
|
||||||
border-bottom: $grey-2;
|
border-bottom: $grey-2;
|
||||||
}
|
}
|
||||||
|
|
||||||
a:hover {
|
a:hover {
|
||||||
color: darken( $ci-1, 10% ) ;
|
color: darken( $ci-1, 10% );
|
||||||
}
|
}
|
||||||
|
|
||||||
a:focus {
|
a:focus {
|
||||||
color: lighten( $ci-1, 20% ) ;
|
color: lighten( $ci-1, 20% );
|
||||||
}
|
}
|
||||||
|
|
||||||
a:active {
|
a:active {
|
||||||
color: darken( $ci-1, 20% ) ;
|
color: darken( $ci-1, 20% );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,8 @@ header:
|
||||||
permalink: "/changelog/"
|
permalink: "/changelog/"
|
||||||
---
|
---
|
||||||
2015-02-25 // Version 0.99.1
|
2015-02-25 // Version 0.99.1
|
||||||
: Added support for Google Analtics. Added `_include/next-previous-post-in-category.html` to generate links from one post in a category to another post in that same category. Example at the bottom of [Grid & Colors]({{ site.url }}/design/grid/#bottom). Added `noindex`-variable for search engine optimization ([read more](https://support.google.com/webmasters/answer/93710?hl=en)). Changed code for breadcrumb.
|
: Added support for Google Analtics. Added `_include/next-previous-post-in-category.html` to generate links from one post in a category to another post in that same category. Example at the bottom of [Grid & Colors]({{ site.url }}/design/grid/#bottom). Added `noindex`-variable for search engine optimization ([read more](https://support.google.com/webmasters/answer/93710?hl=en)). Changed code for breadcrumb. Added [Improve-Content-Include]({{ site.url }}/documentation/#improvecontenthtml).
|
||||||
|
|
||||||
|
|
||||||
2015-02-19 // Version 0.99
|
2015-02-19 // Version 0.99
|
||||||
: Yes! Now *Feeling Responsive* uses the built-in sass-support by Jekyll. Open `_sass` and dig deeper into customizing this theme using your colors, typography and so on...
|
: Yes! Now *Feeling Responsive* uses the built-in sass-support by Jekyll. Open `_sass` and dig deeper into customizing this theme using your colors, typography and so on...
|
||||||
|
|
|
@ -20,6 +20,7 @@ header:
|
||||||
|
|
||||||
|
|
||||||
<div class="medium-8 medium-pull-4 columns" markdown="1">
|
<div class="medium-8 medium-pull-4 columns" markdown="1">
|
||||||
|
{% include improve_content.html %}
|
||||||
|
|
||||||
## Different Page/Posts Formats {#formats}
|
## Different Page/Posts Formats {#formats}
|
||||||
|
|
||||||
|
@ -240,6 +241,13 @@ This include creates a next/previous link to a post of the same category using t
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
|
||||||
|
### improve_content.html
|
||||||
|
|
||||||
|
If your content is on Jekyll you can use this include to automatically generate a »Edit on GitHub Link« to give people a possibility to improve your content. Got the idea from [Ben Balters Blog](http://ben.balter.com/).
|
||||||
|
|
||||||
|
~~~
|
||||||
|
{% raw %}{% include improve_content.html %}{% endraw %}
|
||||||
|
~~~
|
||||||
|
|
||||||
|
|
||||||
<small markdown="1">[Up to table of contents](#toc)</small>
|
<small markdown="1">[Up to table of contents](#toc)</small>
|
||||||
|
@ -264,6 +272,7 @@ I only added one other javascript-module: [`backstretch`][3] by Scott Robbin. Th
|
||||||
/foundation/js/jquery.backstretch.js'
|
/foundation/js/jquery.backstretch.js'
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
{% include improve_content.html %}
|
||||||
|
|
||||||
</div><!-- /.medium-8.columns -->
|
</div><!-- /.medium-8.columns -->
|
||||||
</div><!-- /.row -->
|
</div><!-- /.row -->
|
||||||
|
|
Reference in a new issue