This repository has been archived by the owner on Aug 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 967
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1891 from sendgrid/develop
6/8/2016 Docs Updates
- Loading branch information
Showing
8 changed files
with
180 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# | ||
# Author: Matt Bernier | ||
# Make a bootstrap column | ||
# | ||
# Outputs the HTML for a bootstrap column of size 4 with id "best_column" | ||
# | ||
# {% html_column md-4 best_column %} | ||
# Some content | ||
# {% endhtml_column %} | ||
# ... | ||
# <div id="best_column" class="col-md-4"> | ||
# <p>Some content</p> | ||
# </div> | ||
# | ||
module Jekyll | ||
|
||
class Bootstrap_Column_Nop < Liquid::Block | ||
|
||
def initialize(tag_name, markup, tokens) | ||
parameters = markup.shellsplit | ||
|
||
@size = "col-#{parameters[0]}" | ||
|
||
@class = defined?(parameters[1]) ? " #{parameters[1]}" : "" | ||
|
||
@id = parameters[2]; | ||
|
||
if defined?(parameters[2].to_str) | ||
if !empty?(parameters[2].to_str) | ||
@id = "id=\"#{parameters[2]}\"" | ||
end | ||
end | ||
|
||
|
||
super | ||
end | ||
def render(context) | ||
output = super | ||
output = <<HTML | ||
<div #{@id} class="#{@size}#{@class}">#{output}</div> | ||
HTML | ||
|
||
#html = Kramdown::Document.new(output).to_html | ||
return Liquid::Template.parse(output).render context | ||
end | ||
end | ||
end | ||
Liquid::Template.register_tag('html_column_nop', Jekyll::Bootstrap_Column_Nop) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# | ||
# Author: Matt Bernier | ||
# Make a bootstrap column | ||
# | ||
# Outputs the HTML for a bootstrap column of size 4 with id "best_column" | ||
# | ||
# {% html_column md-4 best_column %} | ||
# Some content | ||
# {% endhtml_column %} | ||
# ... | ||
# <div id="best_column" class="col-md-4"> | ||
# <p>Some content</p> | ||
# </div> | ||
# | ||
module Jekyll | ||
|
||
class Bootstrap_Column < Liquid::Block | ||
|
||
def initialize(tag_name, markup, tokens) | ||
parameters = markup.shellsplit | ||
|
||
@size = "col-#{parameters[0]}" | ||
|
||
@class = defined?(parameters[1]) ? " #{parameters[1]}" : "" | ||
|
||
@id = parameters[2]; | ||
|
||
if defined?(parameters[2].to_str) | ||
if !empty?(parameters[2].to_str) | ||
@id = "id=\"#{parameters[2]}\"" | ||
end | ||
end | ||
|
||
|
||
super | ||
end | ||
def render(context) | ||
output = super | ||
output = <<HTML | ||
<div #{@id} class="#{@size}#{@class}"><p>#{output}</p></div> | ||
HTML | ||
|
||
#html = Kramdown::Document.new(output).to_html | ||
return Liquid::Template.parse(output).render context | ||
end | ||
end | ||
end | ||
Liquid::Template.register_tag('html_column', Jekyll::Bootstrap_Column) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# | ||
# Author: Matt Bernier | ||
# Make a bootstrap row | ||
# | ||
# Outputs the HTML for a bootstrap row with id "best_row" | ||
# | ||
# {% html_row md-4 best_row %} | ||
# Wheeee! | ||
# {% endhtml_row %} | ||
# ... | ||
# <div id="best_row" class="row"> | ||
# Wheeee! | ||
# </div> | ||
# | ||
# Use with html_column to output a proper bootstrap row and column pairing | ||
# | ||
# {% html_row md-4 best_row %} | ||
# {% html_column md-4 best_column %} | ||
# Some content | ||
# {% endhtml_column %} | ||
# {% html_column md-4 best_column2 %} | ||
# Some content | ||
# {% endhtml_column %} | ||
# {% html_column md-4 best_column3 %} | ||
# Some content | ||
# {% endhtml_column %} | ||
# {% endhtml_row %} | ||
# ... | ||
# <div id="best_row" class="row"> | ||
# <div id="best_column" class="col-md-4"> | ||
# <p>Some content</p> | ||
# </div> | ||
# <div id="best_column2" class="col-md-4"> | ||
# <p>Some content</p> | ||
# </div> | ||
# <div id="best_column3" class="col-md-4"> | ||
# <p>Some content</p> | ||
# </div> | ||
# </div> | ||
# | ||
module Jekyll | ||
|
||
class Bootstrap_Row < Liquid::Block | ||
|
||
def initialize(tag_name, markup, tokens) | ||
parameters = markup.shellsplit | ||
|
||
@class = defined?(parameters[0]) ? " #{parameters[1]}" : "" | ||
|
||
@id = defined?(parameters[1]) ? "id=\"#{parameters[0]}\"" : "" | ||
|
||
super | ||
end | ||
def render(context) | ||
output = super | ||
output = <<HTML | ||
<div #{@id} class="row#{@class}">#{output}</div> | ||
HTML | ||
|
||
#html = Kramdown::Document.new(output).to_html | ||
return Liquid::Template.parse(output).render context | ||
end | ||
end | ||
end | ||
Liquid::Template.register_tag('html_row', Jekyll::Bootstrap_Row) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 0 additions & 20 deletions
20
..._sendgrid_handles_550_requested_action_not_taken_mailbox_unavailable_bounces.md
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters