Skip to content

Commit 8db7a1b

Browse files
committed
LIBRA-1208 Sitemap fixes
1 parent 6e8dd76 commit 8db7a1b

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

app/views/layouts/application.html.erb

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<head>
44
<title>LibraETD</title>
55
<%= csrf_meta_tags %>
6+
<meta name="google-site-verification" content="L6OnCX8mLyKmg7roV8PoKjvO37wOI_sy8AWYeK5LPas" />
67
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
78
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
89
<%= render '/shared/web_component_headers' %>

config/sitemap.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
SitemapGenerator::Sitemap.default_host = "https://libraetd.lib.virginia.edu"
33

44
SitemapGenerator::Sitemap.create do
5-
constraints = "embargo_state_tesim:open"
5+
constraints = "draft_tesim:false"
66
GenericWork.search_in_batches( constraints ) do |group|
77
group.each do |work|
88
mod_date = work['date_modified_dtsi']

public/robots.txt

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
# To ban all spiders from the entire site uncomment the next two lines:
44
# User-agent: *
55
# Disallow: /
6+
SiteMap: https://libraetd.lib.virginia.edu/sitemap.xml.gz

0 commit comments

Comments
 (0)