From a10ad0a99ba6e44a35253c3bcaff80c90e99348e Mon Sep 17 00:00:00 2001 From: Karl Hallsby Date: Sun, 3 Oct 2021 00:10:58 -0500 Subject: Revert ALL jekyll-text-theme configuration files I am changing the theme of the site, and need to revert these changes to make everything work. Revert "Add jekyll-text-theme YAML files" This reverts commit 61b34a5f260db45575d448d766ea29c0fb273ed3. Revert "Bring all of jekyll-text-theme _includes into site" This reverts commit c6bf5f7c895287d2028f6024265913b59784a154. Revert "Bring all of jekyll-text-theme assets to site" This reverts commit 7b69c2e5975f98da09d932ba6c70bdd71b1601a7. Remove jekyll text theme from Gemfile --- _includes/snippets/assign.html | 9 --------- _includes/snippets/get-article-title.html | 11 ----------- _includes/snippets/get-lang.html | 6 ------ _includes/snippets/get-locale-string.html | 12 ------------ _includes/snippets/get-nav-url.html | 8 -------- _includes/snippets/get-sources.html | 2 -- _includes/snippets/get-string-from-locale-config.html | 7 ------- _includes/snippets/is_collection.html | 6 ------ _includes/snippets/page-url.html | 2 -- _includes/snippets/prepend-baseurl.html | 4 ---- _includes/snippets/prepend-path.html | 1 - 11 files changed, 68 deletions(-) delete mode 100644 _includes/snippets/assign.html delete mode 100644 _includes/snippets/get-article-title.html delete mode 100644 _includes/snippets/get-lang.html delete mode 100644 _includes/snippets/get-locale-string.html delete mode 100644 _includes/snippets/get-nav-url.html delete mode 100644 _includes/snippets/get-sources.html delete mode 100644 _includes/snippets/get-string-from-locale-config.html delete mode 100644 _includes/snippets/is_collection.html delete mode 100644 _includes/snippets/page-url.html delete mode 100644 _includes/snippets/prepend-baseurl.html delete mode 100644 _includes/snippets/prepend-path.html (limited to '_includes/snippets') diff --git a/_includes/snippets/assign.html b/_includes/snippets/assign.html deleted file mode 100644 index c2691f5..0000000 --- a/_includes/snippets/assign.html +++ /dev/null @@ -1,9 +0,0 @@ -{%- if include.source1 == nil -%} - {%- if include.source0 == nil -%} - {%- assign __return = include.target -%} - {%- else -%} - {%- assign __return = include.source0 -%} - {%- endif -%} -{%- else -%} - {%- assign __return = include.source1 -%} -{%- endif -%} diff --git a/_includes/snippets/get-article-title.html b/_includes/snippets/get-article-title.html deleted file mode 100644 index 395b793..0000000 --- a/_includes/snippets/get-article-title.html +++ /dev/null @@ -1,11 +0,0 @@ -{%- assign _title = include.article.title | default: layout.title -%} -{%- assign _titles = include.article.titles | default: layout.titles -%} - -{%- if _title -%} - {%- assign __return = _title -%} -{%- elsif _titles -%} - {%- include snippets/get-string-from-locale-config.html locale=_titles -%} - {%- assign __return = __return -%} -{%- else -%} - {%- assign __return = nil -%} -{%- endif -%} diff --git a/_includes/snippets/get-lang.html b/_includes/snippets/get-lang.html deleted file mode 100644 index 028c52a..0000000 --- a/_includes/snippets/get-lang.html +++ /dev/null @@ -1,6 +0,0 @@ -{%- assign __return = site.data.variables.default.lang -%} -{%- if page.lang -%} - {%- assign __return = page.lang -%} -{%- elsif site.lang -%} - {%- assign __return = site.lang -%} -{%- endif -%} diff --git a/_includes/snippets/get-locale-string.html b/_includes/snippets/get-locale-string.html deleted file mode 100644 index a7069ae..0000000 --- a/_includes/snippets/get-locale-string.html +++ /dev/null @@ -1,12 +0,0 @@ -{%- include snippets/get-lang.html -%} -{%- assign _lang = __return -%} -{%- assign _local_lang = site.data.locale[_lang] -%} -{%- assign _local_lang_en = site.data.locale.en -%} -{%- if _local_lang == nil -%} - {%- assign _local_lang = _local_lang_en -%} -{%- endif -%} -{%- if _local_lang[include.key] -%} - {%- assign __return = _local_lang[include.key] -%} -{%- else -%} - {%- assign __return = _local_lang_en[include.key] -%} -{%- endif -%} diff --git a/_includes/snippets/get-nav-url.html b/_includes/snippets/get-nav-url.html deleted file mode 100644 index 3b1b122..0000000 --- a/_includes/snippets/get-nav-url.html +++ /dev/null @@ -1,8 +0,0 @@ -{%- assign _pre7 = include.path | slice: 0, 7 -%} -{%- assign _pre8 = include.path | slice: 0, 8 -%} -{%- if _pre7 == 'http://' or _pre8 == 'https://' -%} - {%- assign __return = include.path -%} -{%- else -%} - {%- include snippets/prepend-baseurl.html path=include.path -%} - {%- assign __return = __return -%} -{%- endif -%} diff --git a/_includes/snippets/get-sources.html b/_includes/snippets/get-sources.html deleted file mode 100644 index 0de1cb5..0000000 --- a/_includes/snippets/get-sources.html +++ /dev/null @@ -1,2 +0,0 @@ -{%- assign _sources = site.sources | default: site.data.variables.default.sources -%} -{%- assign __return = site.data.variables.sources[_sources] -%} diff --git a/_includes/snippets/get-string-from-locale-config.html b/_includes/snippets/get-string-from-locale-config.html deleted file mode 100644 index 03325fa..0000000 --- a/_includes/snippets/get-string-from-locale-config.html +++ /dev/null @@ -1,7 +0,0 @@ -{%- include snippets/get-lang.html -%} -{%- assign _lang = __return -%} -{%- if include.locale[_lang] -%} - {%- assign __return = include.locale[_lang] -%} -{%- else -%} - {%- assign __return = include.locale.en -%} -{%- endif -%} diff --git a/_includes/snippets/is_collection.html b/_includes/snippets/is_collection.html deleted file mode 100644 index 559a624..0000000 --- a/_includes/snippets/is_collection.html +++ /dev/null @@ -1,6 +0,0 @@ -{%- assign _page_path_first_char = include.page.path | slice: 0, 1 -%} -{%- if _page_path_first_char == '_' -%} - {%- assign __return = true -%} -{%- else -%} - {%- assign __return = false -%} -{%- endif -%} diff --git a/_includes/snippets/page-url.html b/_includes/snippets/page-url.html deleted file mode 100644 index 3e9815d..0000000 --- a/_includes/snippets/page-url.html +++ /dev/null @@ -1,2 +0,0 @@ -{%- include snippets/prepend-baseurl.html path=page.url -%} -{{ __return | prepend: site.url }} \ No newline at end of file diff --git a/_includes/snippets/prepend-baseurl.html b/_includes/snippets/prepend-baseurl.html deleted file mode 100644 index d5d24ef..0000000 --- a/_includes/snippets/prepend-baseurl.html +++ /dev/null @@ -1,4 +0,0 @@ -{%- assign _include_path_replace_index = include.path | replace: 'index.html', '' -%} -{%- include snippets/prepend-path.html - path=_include_path_replace_index - prepend_path=site.baseurl -%} \ No newline at end of file diff --git a/_includes/snippets/prepend-path.html b/_includes/snippets/prepend-path.html deleted file mode 100644 index 5f6e904..0000000 --- a/_includes/snippets/prepend-path.html +++ /dev/null @@ -1 +0,0 @@ -{%- assign __return = include.path | prepend: '/' | prepend: include.prepend_path | replace:'///','/' | replace:'//','/' -%} -- cgit v1.2.3