mirror of
https://github.com/wezm/wezm.net.git
synced 2024-11-14 03:18:02 +00:00
Make v1 banner less intrusive (only show on some pages)
This commit is contained in:
parent
9ab8e66a0e
commit
472fef1823
5 changed files with 4 additions and 1 deletions
|
@ -9,4 +9,3 @@
|
||||||
</li>
|
</li>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
<div class=" archive-banner">This is an old version of my website with posts from 2003–2019. For newer posts <a href="/v2/">visit the new version</a>.</div>
|
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
</head>
|
</head>
|
||||||
<body class="articles">
|
<body class="articles">
|
||||||
<%= render '_header' %>
|
<%= render '_header' %>
|
||||||
|
<div class=" archive-banner">This is an old version of my website with posts from 2003–2019. For newer posts <a href="/v2/">visit the new version</a>.</div>
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<h1><%= h(@item[:title] || 'Articles') %></h1>
|
<h1><%= h(@item[:title] || 'Articles') %></h1>
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
<div class=" archive-banner">This is an old version of my website with posts from 2003–2019. For newer posts <a href="/v2/">visit the new version</a>.</div>
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<h1><a href="<%= @item.reps[:default].path %>"><%=h @item[:title] %></a></h1>
|
<h1><a href="<%= @item.reps[:default].path %>"><%=h @item[:title] %></a></h1>
|
||||||
<%= yield %>
|
<%= yield %>
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
</head>
|
</head>
|
||||||
<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 class=" archive-banner">This is an old version of my website with posts from 2003–2019. For newer posts <a href="/v2/">visit the new version</a>.</div>
|
||||||
|
|
||||||
<img src="<%= @item[:photo] %>" alt="<%= @item[:photo_alt] %>" class="cover-photo" />
|
<img src="<%= @item[:photo] %>" alt="<%= @item[:photo_alt] %>" class="cover-photo" />
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
</head>
|
</head>
|
||||||
<body class="weather">
|
<body class="weather">
|
||||||
<%= render '_header' %>
|
<%= render '_header' %>
|
||||||
|
<div class=" archive-banner">This is an old version of my website with posts from 2003–2019. For newer posts <a href="/v2/">visit the new version</a>.</div>
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<h1><a href="<%= @item.reps[:default].path %>"><%=h @item[:title] %></a></h1>
|
<h1><a href="<%= @item.reps[:default].path %>"><%=h @item[:title] %></a></h1>
|
||||||
<%= yield %>
|
<%= yield %>
|
||||||
|
|
Loading…
Reference in a new issue