rename blog images and make helper
Before Width: | Height: | Size: 228 KiB After Width: | Height: | Size: 228 KiB |
Before Width: | Height: | Size: 134 KiB After Width: | Height: | Size: 134 KiB |
Before Width: | Height: | Size: 201 KiB After Width: | Height: | Size: 201 KiB |
Before Width: | Height: | Size: 64 KiB |
|
@ -1,8 +1,11 @@
|
|||
module BlogHelper
|
||||
def page_content(page)
|
||||
Kramdown::Document.new(page.content).to_html.html_safe
|
||||
end
|
||||
|
||||
def blog_image(name)
|
||||
image_tag "blog/#{name}" , class: :large
|
||||
end
|
||||
def blog_header(name)
|
||||
image_tag "blog/#{name}"
|
||||
end
|
||||
def page_summary(page)
|
||||
content = page_content(page)
|
||||
content[0 ... 200]
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
And it’s not always clear where to
|
||||
= ext_link "begin" , "https://webdev.camp/"
|
||||
acquiring those skills once you’ve decided to take the first step.
|
||||
= image_tag "blog/goforit.png"
|
||||
= blog_image "goforit.png"
|
||||
|
||||
%h2 The Rise Of The Coding Bootcamp
|
||||
|
||||
|
@ -45,7 +45,7 @@
|
|||
=ext_link "exploded" , "http://www.techrepublic.com/article/coding-school-graduates-are-they-worth-hiring"
|
||||
in popularity since first rising to prominence in 2012.
|
||||
%p
|
||||
= image_tag "blog/image4.jpg"
|
||||
= blog_image "group.jpg"
|
||||
%p
|
||||
The number of bootcamp graduates in 2017 is
|
||||
=ext_link "expected" , "https://www.switchup.org/research/are-coding-bootcamps-worth-it-job-placement-market"
|
||||
|
@ -72,7 +72,7 @@
|
|||
In surveying over 1,000 bootcamp graduates, Switchup found that 63% of respondents reported
|
||||
an increase in salary post-graduation.
|
||||
%p
|
||||
= image_tag "blog/image7.png"
|
||||
= blog_image "salery.png"
|
||||
%h3
|
||||
=image_tag "blog/cost.png"
|
||||
%p
|
||||
|
@ -106,7 +106,7 @@
|
|||
%p
|
||||
You also get more directed help with how to write resumes, how to find the right
|
||||
companies, and the best ways to approach them.
|
||||
%p
|
||||
%h3
|
||||
=image_tag "blog/environment.png"
|
||||
%p
|
||||
Bootcamps offer a much more intimate, albeit intensely-paced, learning environment
|
||||
|
@ -134,7 +134,7 @@
|
|||
%h3
|
||||
|
||||
%p
|
||||
=image_tag "blog/distraction_free.jpg"
|
||||
=blog_image "distraction_free.jpg"
|
||||
%p
|
||||
One of the biggest challenges with attending a bootcamp locally is that you’re
|
||||
most likely going to be interrupted by constant distractions that will test your
|
||||
|
@ -168,7 +168,6 @@
|
|||
WYSE Travel Confederation’s study “Travel Improves Educational Attainment & Future Success”
|
||||
found that educational travel programs, including international service-learning
|
||||
trips, immediately improved academic performance.
|
||||
=image_tag "blog/travel.jpg"
|
||||
|
||||
%h3 Networking
|
||||
|
||||
|
@ -202,7 +201,7 @@
|
|||
but many students find they can better de-stress and unwind in more natural
|
||||
locales in-between their rigorous studies.
|
||||
%p
|
||||
=image_tag "blog/nature.jpg"
|
||||
=blog_image "nature.jpg"
|
||||
%p
|
||||
Whether you’re getting some fresh air on a quick hike through the forest during breaks
|
||||
or if you’re feeling stuck, learning in a place where you’re surrounded by nature
|
||||
|
|