mirror of
https://github.com/wezm/wezm.net.git
synced 2024-12-18 18:29:54 +00:00
HTML escape titles and excerpts
This commit is contained in:
parent
1d84e0e583
commit
a663455cf6
5 changed files with 6 additions and 5 deletions
|
@ -6,7 +6,7 @@
|
||||||
<span class="year"><%= post_date.year %></span>
|
<span class="year"><%= post_date.year %></span>
|
||||||
</abbr>
|
</abbr>
|
||||||
<p>
|
<p>
|
||||||
<strong><a href="<%= @article.reps.first.path %>"><%= @article[:title] %></a></strong>
|
<strong><a href="<%= @article.reps.first.path %>"><%=h @article[:title] %></a></strong>
|
||||||
<%= @article[:extra] %>
|
<%=h @article[:extra] %>
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width" />
|
<meta name="viewport" content="width=device-width" />
|
||||||
<title><%= [@item[:title], 'WezM.net'].compact.join(' • ') %></title>
|
<title><%=h [@item[:title], 'WezM.net'].compact.join(' - ') %></title>
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<script src="/js/html5.js"></script>
|
<script src="/js/html5.js"></script>
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<body class="articles">
|
<body class="articles">
|
||||||
<%= render '_header' %>
|
<%= render '_header' %>
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<h1>Archives</h1>
|
<h1><%= h(@item[:title] || 'Articles') %></h1>
|
||||||
|
|
||||||
<%
|
<%
|
||||||
menu = [
|
menu = [
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<body<%= %Q( class="#{@item[:body_class]}") if @item[:body_class] %>>
|
<body<%= %Q( class="#{@item[:body_class]}") if @item[:body_class] %>>
|
||||||
<%= render '_header' %>
|
<%= render '_header' %>
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<h1><a href="<%= @item.reps.first.path %>"><%= @item[:title] %></a></h1>
|
<h1><a href="<%= @item.reps.first.path %>"><%=h @item[:title] %></a></h1>
|
||||||
<%= yield %>
|
<%= yield %>
|
||||||
</div>
|
</div>
|
||||||
<%= render '_footer' %>
|
<%= render '_footer' %>
|
||||||
|
|
|
@ -6,4 +6,5 @@ require 'json'
|
||||||
include Nanoc3::Helpers::Rendering
|
include Nanoc3::Helpers::Rendering
|
||||||
include Nanoc3::Helpers::Blogging
|
include Nanoc3::Helpers::Blogging
|
||||||
include Nanoc3::Helpers::XMLSitemap
|
include Nanoc3::Helpers::XMLSitemap
|
||||||
|
include Nanoc3::Helpers::HTMLEscape
|
||||||
include WezM::Helpers::Articles
|
include WezM::Helpers::Articles
|
||||||
|
|
Loading…
Reference in a new issue