Skip to content

Commit 5c323ed

Browse files
committed
Iterate on color scheme article
1 parent 3a2ca0e commit 5c323ed

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

app/content/pages/articles/custom-color-schemes-with-ruby-on-rails.html.mdrb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
title: Custom color schemes with Ruby on Rails
33
author: Ross Kaffenberger
44
layout: article
5-
description: This post embeds a demo of a custom color scheme previewer while highlighting the benefits of Rails, Hotwire, and CSS variables. You can edit the color scheme of this website right in content of this blog post.
6-
summary: This post embeds a demo of a custom color scheme previewer while highlighting the benefits of Rails, Hotwire, and CSS variables. You can edit the color scheme of this website right in content of this blog post.
5+
description: You can edit the color scheme of this website right in content of this blog post. Play with the controls while we highlight the benefits of Rails, Hotwire, and CSS variables.
6+
summary: You can edit the color scheme of this website right in content of this blog post. Play with the controls while we highlight the benefits of Rails, Hotwire, and CSS variables.
77
published: '2024-07-14'
88
image: articles/custom-color-schemes-with-ruby-on-rails/rainbows.jpg
99
draft: true
@@ -12,7 +12,7 @@ tags:
1212
- Rails
1313
---
1414

15-
This blog post lets you edit the color scheme of this site.
15+
This blog post lets you edit the color scheme of this site, [Joy of Rails](/).
1616

1717
Give it a try.
1818

@@ -144,10 +144,10 @@ For a solo developer with a busy home life and a full-time job, saving time and
144144

145145
Would you like to see an in-depth tutorial on how to build the custom color scheme functionality? Did you find a bug or do you have questions about the content? Please [send me an email](mailto:[email protected]). You can also connect with me on [Twitter](https://twitter.com/rossta), [Github](https://github.com/rossta), [Mastodon](https://ruby.social/@rossta), and [Linkedin](https://www.linkedin.com/in/rosskaffenberger).
146146

147-
Curious to peek behind the curtain and get a glimpse of the magic? [Joy of Rails is open source on Github](https://github.com/joyofrails/joyofrails.com).
147+
Curious to peek behind the curtain and get a glimpse of the magic? [Joy of Rails is open source on Github](https://github.com/joyofrails/joyofrails.com). Feel free to look through the code and contribute.
148148

149-
If I’ve captured your interest and you’d like to learn more, please <%= link_to "subscribe", "#newsletter-signup" %> to hear more from me and get notified of new articles by email.
149+
And if I’ve captured your interest, please <%= link_to "subscribe", "#newsletter-signup" %> to hear more from me and get notified of new articles by email.
150150

151-
I hope I was able to demonstrate a tiny peek into what’s possible with Rails. I hope you enjoyed it.
151+
That does it for another glimpse into what’s possible with Ruby on Rails. I hope you enjoyed it.
152152

153153
![Rainbow](articles/custom-color-schemes-with-ruby-on-rails/rainbows.jpg 'Rainbow, by Jasper (my son)')

app/views/color_schemes/form.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def view_template
4040

4141
markdown do
4242
<<~MARKDOWN
43-
This site uses a monochromatic color scheme. You can select a new color scheme to preview below. I have curated over a hundred options for you from [uicolors.app](https://uicolors.app). Get a random one if you’re feeling lucky.
43+
The color scheme for this site is monochromatic. You can use the select menu to preview a new color scheme with a different base color. I have curated over a hundred options for you from [uicolors.app](https://uicolors.app). Get a random one if you’re feeling lucky.
4444
MARKDOWN
4545
end
4646

app/views/components/pages/header.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ def view_template
2222
if @published_on
2323
span(class: "block") do
2424
# <time datetime="2024-03-13T00:00:00Z" itemprop="datePublished" class="dt-published"> March 13th, 2024 </time>
25-
time_tag @published_on, itemprop: "datePublished", class: "dt-published"
25+
em do
26+
time_tag @published_on, itemprop: "datePublished", class: "dt-published"
27+
end
2628
end
2729
end
2830
end

0 commit comments

Comments
 (0)