aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes/snippets
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-05-07 02:32:33 +0000
committerEgor Tensin <Egor.Tensin@gmail.com>2020-05-07 02:32:33 +0000
commit22a21c142fd10f4caf0b89478f44bb4030f0c11b (patch)
tree4e581597fe7486b5ee21f605ce8acd0ba3163bd2 /_includes/snippets
parentbind-mounts: rename the file (diff)
downloadblog-22a21c142fd10f4caf0b89478f44bb4030f0c11b.tar.gz
blog-22a21c142fd10f4caf0b89478f44bb4030f0c11b.zip
use "remote" Jekyll theme
I moved _includes/, _layouts/, css/ to egor-tensin/jekyll-theme.
Diffstat (limited to '')
-rw-r--r--_includes/snippets/footer.html5
-rw-r--r--_includes/snippets/header.html14
-rw-r--r--_includes/snippets/section.html25
3 files changed, 0 insertions, 44 deletions
diff --git a/_includes/snippets/footer.html b/_includes/snippets/footer.html
deleted file mode 100644
index d60469c..0000000
--- a/_includes/snippets/footer.html
+++ /dev/null
@@ -1,5 +0,0 @@
- </div>
- {% if page.snippets_collapsible %}
- </div>
- {% endif %}
-</div>
diff --git a/_includes/snippets/header.html b/_includes/snippets/header.html
deleted file mode 100644
index 673fc5a..0000000
--- a/_includes/snippets/header.html
+++ /dev/null
@@ -1,14 +0,0 @@
-{% capture snippet_basename %}{{ include.snippet_path | split:"/" | last }}{% endcapture %}
-{% capture snippet_id %}{{ include.snippet_path | replace:'/','_' | replace:'.','_' }}{% endcapture %}
-<div class="panel panel-default">
- <div class="panel-heading">
- {% if page.snippets_collapsible %}
- <a id="{{ snippet_id }}" data-toggle="collapse" data-parent="#accordion_{{ include.section_id }}" href="#collapse_{{ snippet_id }}">{{ snippet_basename }}</a>
- {% else %}
- <div id="{{ snippet_id }}">{{ snippet_basename }}</div>
- {% endif %}
- </div>
- {% if page.snippets_collapsible %}
- <div id="collapse_{{ snippet_id }}" class="panel-collapse collapse">
- {% endif %}
- <div class="panel-body">
diff --git a/_includes/snippets/section.html b/_includes/snippets/section.html
deleted file mode 100644
index cbb778f..0000000
--- a/_includes/snippets/section.html
+++ /dev/null
@@ -1,25 +0,0 @@
-{% if page.snippets_collapsible %}
-<div class="panel-group" id="accordion_{{ include.section_id }}">
-{% else %}
-<div class="panel-group">
-{% endif %}
-
-{% for i in page.snippets[include.section_id] %}
- {% include snippets/header.html snippet_path=i section_id=include.section_id %}
-
-{% capture snippet %}
-```{{ page.snippets_language }}
-{% include_relative {{ page.snippets_root_directory }}/{{ i }} %}```
-{% endcapture %}
-
-{{ snippet | markdownify }}
-
- {% include snippets/footer.html %}
-{% endfor %}
-
-</div>
-
-{% for i in page.snippets[include.section_id] %}
- {% capture snippet_id %}{{ i | replace:"/","_" | replace:".","_" }}{% endcapture %}
-[{{ i }}]: #{{ snippet_id }}
-{% endfor %}