mirror of
https://github.com/jekyll/jekyll.git
synced 2026-04-28 03:01:03 -04:00
@@ -11,4 +11,4 @@ Second paragraph
|
||||
|
||||
Third paragraph
|
||||
|
||||
[link]: http://www.jekyllrb.com/
|
||||
[link]: https://jekyllrb.com/
|
||||
|
||||
@@ -21,4 +21,4 @@ Second paragraph
|
||||
|
||||
Third paragraph
|
||||
|
||||
[link]: http://www.jekyllrb.com/
|
||||
[link]: https://jekyllrb.com/
|
||||
|
||||
@@ -12,4 +12,4 @@ Second paragraph
|
||||
|
||||
Third paragraph
|
||||
|
||||
[link]: http://www.jekyllrb.com/
|
||||
[link]: https://jekyllrb.com/
|
||||
|
||||
@@ -7,9 +7,9 @@ Jekyll is a simple, blog-aware, static site generator. It takes a template
|
||||
directory containing raw text files in various formats, runs it through
|
||||
[Markdown](http://daringfireball.net/projects/markdown/) (or
|
||||
[Textile](http://redcloth.org/textile)) and
|
||||
[Liquid](http://wiki.shopify.com/Liquid)
|
||||
[Liquid](https://help.shopify.com/themes/liquid/basics)
|
||||
converters, and spits out a complete, ready-to-publish static website suitable
|
||||
for serving with your favorite web server. Jekyll also happens to be the engine
|
||||
behind [GitHub Pages](http://pages.github.com), which means you can use Jekyll
|
||||
behind [GitHub Pages](https://pages.github.com/), which means you can use Jekyll
|
||||
to host your project’s page, blog, or website from GitHub’s servers **for
|
||||
free**.
|
||||
|
||||
@@ -7,9 +7,9 @@ Jekyll is a simple, blog-aware, static site generator. It takes a template
|
||||
directory containing raw text files in various formats, runs it through
|
||||
[Markdown](http://daringfireball.net/projects/markdown/) (or
|
||||
[Textile](http://redcloth.org/textile)) and
|
||||
[Liquid](http://wiki.shopify.com/Liquid)
|
||||
[Liquid](https://help.shopify.com/themes/liquid/basics)
|
||||
converters, and spits out a complete, ready-to-publish static website suitable
|
||||
for serving with your favorite web server. Jekyll also happens to be the engine
|
||||
behind [GitHub Pages](http://pages.github.com), which means you can use Jekyll
|
||||
behind [GitHub Pages](https://pages.github.com/), which means you can use Jekyll
|
||||
to host your project’s page, blog, or website from GitHub’s servers **for
|
||||
free**.
|
||||
|
||||
@@ -93,12 +93,12 @@ class TestExcerpt < JekyllUnitTest
|
||||
context "before render" do
|
||||
should "be the first paragraph of the page" do
|
||||
expected = "First paragraph with [link ref][link].\n\n[link]: "\
|
||||
"http://www.jekyllrb.com/"
|
||||
"https://jekyllrb.com/"
|
||||
assert_equal expected, @excerpt.content
|
||||
end
|
||||
|
||||
should "contain any refs at the bottom of the page" do
|
||||
assert @excerpt.content.include?("[link]: http://www.jekyllrb.com/")
|
||||
assert @excerpt.content.include?("[link]: https://jekyllrb.com/")
|
||||
end
|
||||
end
|
||||
|
||||
@@ -110,13 +110,13 @@ class TestExcerpt < JekyllUnitTest
|
||||
end
|
||||
|
||||
should "be the first paragraph of the page" do
|
||||
expected = "<p>First paragraph with <a href=\"http://www.jekyllrb.com/\">link "\
|
||||
expected = "<p>First paragraph with <a href=\"https://jekyllrb.com/\">link "\
|
||||
"ref</a>.</p>\n\n"
|
||||
assert_equal expected, @extracted_excerpt.output
|
||||
end
|
||||
|
||||
should "link properly" do
|
||||
assert @extracted_excerpt.content.include?("http://www.jekyllrb.com/")
|
||||
assert @extracted_excerpt.content.include?("https://jekyllrb.com/")
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user