From c8bbc25228a7d199ca6868db7375f1661c3ef6e4 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 23 Mar 2022 16:52:53 +0300 Subject: _includes: move everything to jekyll-theme/ --- _includes/snippets/footer.html | 5 ----- _includes/snippets/header.html | 14 -------------- _includes/snippets/section.html | 25 ------------------------- 3 files changed, 44 deletions(-) delete mode 100644 _includes/snippets/footer.html delete mode 100644 _includes/snippets/header.html delete mode 100644 _includes/snippets/section.html (limited to '_includes/snippets') 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 @@ - - {% if page.snippets_collapsible %} - - {% endif %} - 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 %} -
-
- {% if page.snippets_collapsible %} - {{ snippet_basename }} - {% else %} -
{{ snippet_basename }}
- {% endif %} -
- {% if page.snippets_collapsible %} -
- {% endif %} -
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 %} -
-{% else %} -
-{% 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 %} - -
- -{% for i in page.snippets[include.section_id] %} - {% capture snippet_id %}{{ i | replace:"/","_" | replace:".","_" }}{% endcapture %} -[{{ i }}]: #{{ snippet_id }} -{% endfor %} -- cgit v1.2.3