Skip to content

Commit

Permalink
AMP Visual stories
Browse files Browse the repository at this point in the history
  • Loading branch information
ags1773 authored Nov 25, 2021
1 parent 30da3b8 commit 78f7610
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 13 deletions.
3 changes: 2 additions & 1 deletion app/isomorphic/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ export const PAGE_TYPE = Object.freeze({
AUTHOR_PAGE: "author-page",
RESET_PASSWORD_PAGE: "reset-password-page",
PROFILE_PAGE: "profile-page",
USER_LOGIN: "user-login"
USER_LOGIN: "user-login",
VISUAL_STORY: "visual-story"
});
export const TAG_PAGE_URL_PREFIX = "/topic/";
export const storyFields =
Expand Down
5 changes: 5 additions & 0 deletions app/server/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ export const STATIC_ROUTES = [
exact: true,
renderParams: { contentTemplate: "./story-preview" },
disableIsomorphicComponent: false
},
{
path: "/ampstories/*",
pageType: PAGE_TYPE.VISUAL_STORY,
exact: true
}
];

Expand Down
22 changes: 11 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@quintype/arrow": "^2.9.9",
"@quintype/bridgekeeper-js": "^2.8.1",
"@quintype/components": "^2.31.7",
"@quintype/framework": "^6.3.0",
"@quintype/framework": "^6.3.1",
"@quintype/seo": "^1.38.39",
"fontfaceobserver": "^2.1.0",
"lodash": "^4.17.15",
Expand Down

0 comments on commit 78f7610

Please sign in to comment.