Support ads: false

This commit is contained in:
Rico Sta. Cruz 2017-08-28 14:45:03 +08:00
parent a5f055fb55
commit 5bdc34c20a
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
3 changed files with 11 additions and 3 deletions

View File

@ -33,6 +33,6 @@ Each sheet supports these metadata:
title: React.js title: React.js
category: React category: React
layout: 2017/sheet # 'default' | '2017/sheet' layout: 2017/sheet # 'default' | '2017/sheet'
ads: true # Add this for ads ads: false # Add this to disable ads
--- ---
``` ```

View File

@ -6,9 +6,9 @@ type: article
{% include 2017/top-nav.html page=page %} {% include 2017/top-nav.html page=page %}
<div class='body-area'> <div class='body-area'>
<div class='main-heading {% if page.ads %}-with-ads{% endif %}'> <div class='main-heading {% if page.ads != false %}-with-ads{% endif %}'>
<h1 class='h1'>{{ page.title }} <em>cheatsheet</em></h1> <h1 class='h1'>{{ page.title }} <em>cheatsheet</em></h1>
{% if page.ads %} {% if page.ads != false %}
<div class='HeadlineAd ad'> <div class='HeadlineAd ad'>
<script async src='//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=ricostacruzcom' id="_carbonads_js"></script> <script async src='//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=ricostacruzcom' id="_carbonads_js"></script>
</div> </div>

8
vim.md
View File

@ -218,9 +218,15 @@ Do these in visual mode.
### Marks ### Marks
| Shortcut | Description |
| --- | --- |
| <code>`^</code> | Last position of cursor in insert mode | | <code>`^</code> | Last position of cursor in insert mode |
| <code>`.</code> | Last change | | <code>`.</code> | Last change |
| <code>``</code> | Last jump | | <code>``</code> | Last jump |
| --- | --- |
| `ma` | Mark this cursor position as `a` |
| `'a` | Jump to cursor position `a` |
{: .-shortcuts}
### Misc ### Misc
@ -230,6 +236,7 @@ Do these in visual mode.
| `]p` | paste under the current indentation level | | `]p` | paste under the current indentation level |
| --- | --- | | --- | --- |
| `zz` | Center this line | | `zz` | Center this line |
{: .-shortcuts}
### Command line ### Command line
@ -237,6 +244,7 @@ Do these in visual mode.
| --- | --- | | --- | --- |
| `<C-r><C-w>` | insert current word into the command line | | `<C-r><C-w>` | insert current word into the command line |
| `<C-r>"` | paste from " register | | `<C-r>"` | paste from " register |
{: .-shortcuts}
### Text alignment ### Text alignment