Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 609f5e4

Browse files
committedNov 1, 2021
posts
1 parent 7873249 commit 609f5e4

File tree

4 files changed

+11
-47
lines changed

4 files changed

+11
-47
lines changed
 

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ _site
33
.jekyll-cache
44
.jekyll-metadata
55
vendor
6+
.DS_Store

‎_drafts/2021-09-04-basic-meta-tags.md

-46
This file was deleted.

‎_posts/2021-10-28-meta-tags-without-a-gem.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,15 @@ Some most common meta tags:
1616
* tags
1717
* author
1818

19-
### 1. without a gem
19+
Here's how they can look in the `<head>` of an HMTL document:
20+
```html
21+
<meta content="online education, course platform, video tutorials" name="keywords"/>
22+
<meta content="Online Learning and Skill sharing platform" name="description"/>
23+
<meta content="Yaroslav Shmarov" name="author"/>
24+
<%= favicon_link_tag 'thumbnail.png' %>
25+
<title>SupeRails</title>
26+
```
27+
### 1. Ruby on Rails: without a gem
2028

2129
app/views/application.html.erb
2230
```ruby
@@ -32,6 +40,7 @@ app/views/inboxes/index.html.erb
3240
<% content_for :title do %>
3341
<%= controller_name.humanize %>
3442
<%= action_name.humanize %>
43+
<%= Inbox.count %>
3544
<% end %>
3645
```
3746

‎favicon.png

-6.54 KB
Loading

0 commit comments

Comments
 (0)
Please sign in to comment.