This is a plugin meant for Jekyll.
Example use:
Easily embed a YouTube video. Just drop this file in your _plugins directory.
{% youtube oHg5SJYRHA0 %}
This is a plugin meant for Jekyll.
Example use:
Easily embed a YouTube video. Just drop this file in your _plugins directory.
{% youtube oHg5SJYRHA0 %}
| <section id="archive"> | |
| <h3>This year's posts</h3> | |
| {%for post in site.posts %} | |
| {% unless post.next %} | |
| <ul class="this"> | |
| {% else %} | |
| {% capture year %}{{ post.date | date: '%Y' }}{% endcapture %} | |
| {% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %} | |
| {% if year != nyear %} | |
| </ul> |
| let lastSelectedText; | |
| const SLACK_HOOK_URL = 'URL TO INCOMING HOOK'; | |
| $(document).keydown(e => { | |
| if ((e.keyCode == 10 || e.keyCode == 13) && e.ctrlKey) { | |
| const selectedText = utils.getSelectionText(); | |
| if ( | |
| lastSelectedText === selectedText || | |
| selectedText.replace(/ /g, '') === '' | |
| ) { | |
| console.warn('Текст не выделен или это повторная ошибка'); |