Skip to content

Commit

Permalink
Improve sharing title
Browse files Browse the repository at this point in the history
  • Loading branch information
xinbenlv committed Dec 28, 2019
1 parent 0a6ba2b commit 0567822
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pages/revision/_wiki/_revid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
<template>
<section>
<div class="container small-screen-padding" style="margin-top:80px">
<h1 >Revision {{wikiRevId}}</h1>
<div class="col-12 p-2">
<StaticRevisionCard
:wikiRevId="wikiRevId"
Expand Down Expand Up @@ -94,8 +93,8 @@
*
* @return {{meta: *[], title: *}}
*/
head ({$axios}) {
let title = `WikiLoop Battlefield (${this.wikiRevId})`;
head ({ params }) {
let title = `${this.revision.title} (rev:${this.$route.params.revid})`;
let desc = `Is this Wikipedia edit good or bad? Come share your opinion at WikiLoop Battlefield. (${this.wikiRevId})`;
let host = `battlefield.wikiloop.org`;
let img = `http://${host}/wikiloop-battlefield-logo.png`; // TODO(xinbenlv) use relative URL
Expand Down

0 comments on commit 0567822

Please sign in to comment.