Skip to content

Commit a7f5b96

Browse files
committed
Fix build for page-title change
This allows the tutorial to build again, but more work is needed to properly integrate/introduce the page-title change into the content of the tutorial.
1 parent 9b4ccd6 commit a7f5b96

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/markdown/tutorial/part-1/01-orientation.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,9 @@ The development server has a feature called *live reload*, which monitors your a
265265
As text on the welcome page pointed out, the source code for the page is located in `app/templates/application.hbs`. Let's try to edit that file and replace it with our own content:
266266
267267
```run:file:patch lang=handlebars cwd=super-rentals filename=app/templates/application.hbs
268-
@@ -1,5 +1 @@
268+
@@ -1,7 +1 @@
269+
-{{page-title "SuperRentals"}}
270+
-
269271
-{{!-- The following component displays Ember's default welcome message. --}}
270272
-<WelcomePage />
271273
-{{!-- Feel free to remove this! --}}

src/markdown/tutorial/part-1/02-building-pages.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@ This time, we would like the page to be served on the `/about` URL. In order to
2929
The place to manage what pages are available is the *[router][TODO: link to router]*. Go ahead and open `app/router.js` and make the following change:
3030

3131
```run:file:patch lang=js cwd=super-rentals filename=app/router.js
32-
@@ -9,2 +9,3 @@
33-
Router.map(function() {
32+
@@ -8,2 +8,4 @@
33+
34+
-Router.map(function () {});
35+
+Router.map(function () {
3436
+ this.route('about');
35-
});
37+
+});
3638
```
3739

3840
This adds a *[route](../../../routing/defining-your-routes/)* named "about", which is served at the `/about` URL by default.

0 commit comments

Comments
 (0)