Skip to content

Commit

Permalink
No need for the absolute_url thing since we now mount on root
Browse files Browse the repository at this point in the history
  • Loading branch information
dhh committed Dec 14, 2021
1 parent 2af9f1b commit 83bfea1
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 39 deletions.
2 changes: 1 addition & 1 deletion 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h1>Page not found.</h1>
<h4>You’ve gone off the Rails!</h4>
</div>
<div class="heading__button">
<a href="{{ '/' | absolute_url }}" class="common-button common-button--text common-button--icon-arrow"><span>Go back home</span></a>
<a href="/" class="common-button common-button--text common-button--icon-arrow"><span>Go back home</span></a>
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions _data/nav.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
items:
- title: Blog
url: /blog
url: /blog/

- title: Guides
url: https://guides.rubyonrails.org
Expand All @@ -15,4 +15,4 @@ items:
url: https://github.com/rails/rails

- title: Team
url: /community
url: /community/
2 changes: 1 addition & 1 deletion _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<footer class="footer common-background--grey common-padding--bottom common-padding--top common-shape--top-white-up-left">
<div class="footer__logo"><a href="{{ '/' | absolute_url }}"></a></div>
<div class="footer__logo"><a href="/"></a></div>

{% if page.id == 'home' %}
<div class="footer__options">
Expand Down
12 changes: 6 additions & 6 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
<meta property="og:site_name" content="{{ site.title }}" />
<meta property="og:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}" />
<meta property="og:description" content="{% if page.collection == 'posts' %}{{ page.excerpt | strip_html | strip_newlines }}{% else %}{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}{% endif %}" />
<meta property="og:image" content="{{ '/assets/images/opengraph.png' | absolute_url }}" />
<meta property="og:image" content="/assets/images/opengraph.png" />
<meta property="og:url" content="{{ page.url | absolute_url }}" />
<meta property="og:type" content="{% if page.collection == 'posts' %}article{% else %}website{% endif %}" />

<meta name="twitter:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}" />
<meta name="twitter:description" content="{% if page.collection == 'posts' %}{{ page.excerpt | strip_html | strip_newlines }}{% else %}{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}{% endif %}" />
<meta name="twitter:image" content="{{ '/assets/images/opengraph.png' | absolute_url }}" />
<meta name="twitter:image" content="/assets/images/opengraph.png" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:creator" content="@{{ site.twitter }}" />
<meta name="twitter:image:alt" content="{{ site.title }}" />
Expand All @@ -33,7 +33,7 @@
"headline": "{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}",
"description": "{% if page.collection == 'posts' %}{{ page.excerpt | strip_html | strip_newlines }}{% else %}{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}{% endif %}",
"url": "{{ page.url | absolute_url }}",
"image": "{{ '/assets/images/opengraph.png' | absolute_url }}"{% if page.collection == 'posts' %},
"image": "/assets/images/opengraph.png"{% if page.collection == 'posts' %},
"author": {
"@type": "Person",
"name": "{{ page.author }}"
Expand All @@ -43,7 +43,7 @@
</script>

<link rel="canonical" href="{{ page.url | absolute_url }}" />
<link rel="icon" href="{{ '/assets/images/favicon.ico' | absolute_url }}" />
<link rel="apple-touch-icon" type="image/png" href="{{ '/assets/images/apple-touch-icon.png' | absolute_url }}" />
<link rel="stylesheet" href="{{ '/assets/css/style.css' | absolute_url }}" />
<link rel="icon" href="/assets/images/favicon.ico" />
<link rel="apple-touch-icon" type="image/png" href="/assets/images/apple-touch-icon.png" />
<link rel="stylesheet" href="/assets/css/style.css" />
</head>
2 changes: 1 addition & 1 deletion _includes/nav.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<nav class="nav">
<a class="nav__logo" href="{{ '/' | absolute_url }}"></a>
<a class="nav__logo" href="/"></a>

{% if page.id == 'home' %}
<input class="nav__checkbox" id="nav__checkbox" type="checkbox" role="button" />
Expand Down
6 changes: 3 additions & 3 deletions blog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
<div class="heading__headline common-headline">
<div class="heading__buttons">
<ul>
<li><a href="{{ '/blog' | absolute_url }}"><span>Everything</span></a></li>
<li><a href="{{ '/category/releases' | absolute_url }}"><span>Releases</span></a></li>
<li><a href="{{ '/category/news' | absolute_url }}"><span>News</span></a></li>
<li><a href="/blog"><span>Everything</span></a></li>
<li><a href="/category/releases"><span>Releases</span></a></li>
<li><a href="/category/news"><span>News</span></a></li>
</ul>
</div>
</div>
Expand Down
10 changes: 5 additions & 5 deletions doctrine/en.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ <h1>The Rails Doctrine.</h1>
</label>
<div class="language__options">
<ul>
<li><a href="{{ '/doctrine/es' | absolute_url }}"><span>Español</span></a></li>
<li><a href="{{ '/doctrine/fr' | absolute_url }}"><span>Français</span></a></li>
<li><a href="{{ '/doctrine/ru' | absolute_url }}"><span>Russian</span></a></li>
<li><a href="{{ '/doctrine/zh_cn' | absolute_url }}"><span>简体中文</span></a></li>
<li><a href="{{ '/doctrine/zh_tw' | absolute_url }}"><span>繁體中文</span></a></li>
<li><a href="/doctrine/es"><span>Español</span></a></li>
<li><a href="/doctrine/fr"><span>Français</span></a></li>
<li><a href="/doctrine/ru"><span>Russian</span></a></li>
<li><a href="/doctrine/zh_cn"><span>简体中文</span></a></li>
<li><a href="/doctrine/zh_tw"><span>繁體中文</span></a></li>
</ul>
</div>
</div>
Expand Down
40 changes: 20 additions & 20 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ <h4>Learn just what you need to get started, then keep leveling up as you go. <s
<div class="video common-background--grey common-shape--top-white-down-left">
<div class="container">
<div class="video__embed">
<video poster="{{ '/assets/videos/rails7-screencast-poster.jpg' | absolute_url }}" width="1920" height="1080" controls>
<video poster="/assets/videos/rails7-screencast-poster.jpg" width="1920" height="1080" controls>
<source src="https://d1snj8sshb5u7m.cloudfront.net/Rails7.mp4" type="video/mp4">
<track kind="captions" label="English" src="{{ '/assets/videos/rails7-screencast-english.vtt' | absolute_url }}" srclang="en" default="false">
<track kind="captions" label="English" src="/assets/videos/rails7-screencast-english.vtt" srclang="en" default="false">
</video>
</div>
</div>
Expand All @@ -49,77 +49,77 @@ <h4>Over the past two decades, Rails has taken countless companies to millions o
<div class="trusted__blocks">
<div class="trusted__block">
<a href="https://basecamp.com">
<img src="{{ '/assets/images/logo-basecamp.svg' | absolute_url }}" alt="" />
<img src="/assets/images/logo-basecamp.svg" alt="" />
</a>
</div>
<div class="trusted__block">
<a href="https://hey.com">
<img src="{{ '/assets/images/logo-hey.svg' | absolute_url }}" alt="" />
<img src="/assets/images/logo-hey.svg" alt="" />
</a>
</div>
<div class="trusted__block">
<a href="https://github.com">
<img src="{{ '/assets/images/logo-github.svg' | absolute_url }}" alt="" />
<img src="/assets/images/logo-github.svg" alt="" />
</a>
</div>
<div class="trusted__block">
<a href="https://shopify.com">
<img src="{{ '/assets/images/logo-shopify.svg' | absolute_url }}" alt="" />
<img src="/assets/images/logo-shopify.svg" alt="" />
</a>
</div>
<div class="trusted__block">
<a href="https://twitch.tv">
<img src="{{ '/assets/images/logo-twitch.svg' | absolute_url }}" alt="" />
<img src="/assets/images/logo-twitch.svg" alt="" />
</a>
</div>
<div class="trusted__block">
<a href="https://dribbble.com">
<img src="{{ '/assets/images/logo-dribbble.svg' | absolute_url }}" alt="" />
<img src="/assets/images/logo-dribbble.svg" alt="" />
</a>
</div>
<div class="trusted__block">
<a href="https://hulu.com">
<img src="{{ '/assets/images/logo-hulu.svg' | absolute_url }}" alt="" />
<img src="/assets/images/logo-hulu.svg" alt="" />
</a>
</div>
<div class="trusted__block">
<a href="https://zendesk.com">
<img src="{{ '/assets/images/logo-zendesk.svg' | absolute_url }}" alt="" />
<img src="/assets/images/logo-zendesk.svg" alt="" />
</a>
</div>
<div class="trusted__block">
<a href="https://airbnb.com">
<img src="{{ '/assets/images/logo-airbnb.svg' | absolute_url }}" alt="" />
<img src="/assets/images/logo-airbnb.svg" alt="" />
</a>
</div>
<div class="trusted__block">
<a href="https://squareup.com">
<img src="{{ '/assets/images/logo-square.svg' | absolute_url }}" alt="" />
<img src="/assets/images/logo-square.svg" alt="" />
</a>
</div>
<div class="trusted__block">
<a href="https://kickstarter.com">
<img src="{{ '/assets/images/logo-kickstarter.svg' | absolute_url }}" alt="" />
<img src="/assets/images/logo-kickstarter.svg" alt="" />
</a>
</div>
<div class="trusted__block">
<a href="https://heroku.com">
<img src="{{ '/assets/images/logo-heroku.svg' | absolute_url }}" alt="" />
<img src="/assets/images/logo-heroku.svg" alt="" />
</a>
</div>
<div class="trusted__block">
<a href="https://coinbase.com">
<img src="{{ '/assets/images/logo-coinbase.svg' | absolute_url }}" alt="" />
<img src="/assets/images/logo-coinbase.svg" alt="" />
</a>
</div>
<div class="trusted__block">
<a href="https://soundcloud.com">
<img src="{{ '/assets/images/logo-soundcloud.svg' | absolute_url }}" alt="" />
<img src="/assets/images/logo-soundcloud.svg" alt="" />
</a>
</div>
<div class="trusted__block">
<a href="https://cookpad.com">
<img src="{{ '/assets/images/logo-cookpad.svg' | absolute_url }}" alt="" />
<img src="/assets/images/logo-cookpad.svg" alt="" />
</a>
</div>
</div>
Expand All @@ -146,7 +146,7 @@ <h4>Over five thousand people have <a href="https://contributors.rubyonrails.org
</div>

<div class="heading__button">
<a href="{{ '/community' | absolute_url }}" class="common-button common-button--text common-button--icon-arrow"><span>Meet the Rails team</span></a>
<a href="/community" class="common-button common-button--text common-button--icon-arrow"><span>Meet the Rails team</span></a>
</div>
</div>
</div>
Expand Down Expand Up @@ -291,7 +291,7 @@ <h1>Optimized for happiness.</h1>
</div>

<div class="heading__button">
<a href="{{ '/doctrine/en' | absolute_url }}" class="common-button common-button--text common-button--icon-arrow"><span>Read the Rails Doctrine</span></a>
<a href="/doctrine/en" class="common-button common-button--text common-button--icon-arrow"><span>Read the Rails Doctrine</span></a>
</div>
</div>
</div>
Expand Down Expand Up @@ -347,7 +347,7 @@ <h3>Contribute on GitHub.</h3>
</div>

<div class="card">
<a href="{{ '/blog' | absolute_url }}">
<a href="/blog">
<div class="card__body">
<div class="card__label">
<h6>Keeping up</h6>
Expand Down

0 comments on commit 83bfea1

Please sign in to comment.