1
0
Fork 0
forked from wezm/wezm.net

Make v1 banner less intrusive (only show on some pages)

This commit is contained in:
Wesley Moore 2020-01-31 08:09:05 +11:00
parent 9ab8e66a0e
commit 472fef1823
No known key found for this signature in database
GPG key ID: BF67766C0BC2D0EE
5 changed files with 4 additions and 1 deletions

View file

@ -9,4 +9,3 @@
</li>
</nav>
</header>
<div class=" archive-banner">This is an old version of my website with posts from 20032019. For newer posts <a href="/v2/">visit the new version</a>.</div>

View file

@ -5,6 +5,7 @@
</head>
<body class="articles">
<%= render '_header' %>
<div class=" archive-banner">This is an old version of my website with posts from 20032019. For newer posts <a href="/v2/">visit the new version</a>.</div>
<div id="content">
<h1><%= h(@item[:title] || 'Articles') %></h1>

View file

@ -1,3 +1,4 @@
<div class=" archive-banner">This is an old version of my website with posts from 20032019. For newer posts <a href="/v2/">visit the new version</a>.</div>
<div id="content">
<h1><a href="<%= @item.reps[:default].path %>"><%=h @item[:title] %></a></h1>
<%= yield %>

View file

@ -11,6 +11,7 @@
</head>
<body<%= %Q( class="#{@item[:body_class]}") if @item[:body_class] %>>
<%= render '_header' %>
<div class=" archive-banner">This is an old version of my website with posts from 20032019. For newer posts <a href="/v2/">visit the new version</a>.</div>
<img src="<%= @item[:photo] %>" alt="<%= @item[:photo_alt] %>" class="cover-photo" />

View file

@ -10,6 +10,7 @@
</head>
<body class="weather">
<%= render '_header' %>
<div class=" archive-banner">This is an old version of my website with posts from 20032019. For newer posts <a href="/v2/">visit the new version</a>.</div>
<div id="content">
<h1><a href="<%= @item.reps[:default].path %>"><%=h @item[:title] %></a></h1>
<%= yield %>