From ade3bf4418d9584dcc8bd2c81550e9d082c1127f Mon Sep 17 00:00:00 2001 From: codecalm Date: Tue, 18 Oct 2022 20:41:24 +0200 Subject: [PATCH] remove unused tags --- src/pages/_plugins/jekyll-tags.rb | 30 ------------------------------ src/pages/pagination.html | 18 +++++++++++------- 2 files changed, 11 insertions(+), 37 deletions(-) diff --git a/src/pages/_plugins/jekyll-tags.rb b/src/pages/_plugins/jekyll-tags.rb index 671c457c40..6447676367 100644 --- a/src/pages/_plugins/jekyll-tags.rb +++ b/src/pages/_plugins/jekyll-tags.rb @@ -40,40 +40,10 @@ def render(context) ('./' + Pathname('docs/' + @path + '.html').relative_path_from(pageDir).to_s).gsub(/^\.\/\.\./, "..") end end - - class CardBlock < Liquid::Block - def initialize(tag_name, params, tokens) - super - @params = params.strip - - @attributes = {} - params.scan(/(\w+)\s*=\s*((?-mix:(?-mix:"[^"]*"|'[^']*')|(?:[^\s,|'"]|(?-mix:"[^"]*"|'[^']*'))+))/) do |key, value| - @attributes[key] = value.gsub(/^'|"/, '').gsub(/'|"$/, '') - end - end - - def render(context) - card_text = '
' + "\n" - - if @attributes['title'] - card_text += '
' + "\n" - card_text += '
' + @attributes['title'] + '
' + "\n" - card_text += '
' + "\n" - end - - card_text += '
' + "\n" - card_text += super + "\n" - card_text += '
' + "\n" - card_text += '
' - - card_text - end - end end end Liquid::Template.register_tag('removeemptylines', Jekyll::Tags::RemoveEmptyLines) -Liquid::Template.register_tag('card', Jekyll::Tags::CardBlock) Liquid::Template.register_tag('docs_url', Jekyll::Tags::DocsUrl) Liquid::Template.register_tag('hide', Jekyll::Tags::Hide) diff --git a/src/pages/pagination.html b/src/pages/pagination.html index 0be7e604df..3de159275f 100644 --- a/src/pages/pagination.html +++ b/src/pages/pagination.html @@ -6,14 +6,18 @@
- {% card %} - {% include ui/pagination.html %} - {% include ui/pagination.html icons=true %} - {% endcard %} +
+
+ {% include ui/pagination.html %} + {% include ui/pagination.html icons=true %} +
+
- {% card %} - {% include ui/pagination.html count=0 prev-description="Getting started" next-description="Breadcrumbs" %} - {% endcard %} +
+
+ {% include ui/pagination.html count=0 prev-description="Getting started" next-description="Breadcrumbs" %} +
+