Skip to content

Commit

Permalink
Merge pull request #1 from indieweb/test-4-and-5
Browse files Browse the repository at this point in the history
Fix test 4 and add test 5
  • Loading branch information
aaronpk committed May 24, 2019
2 parents 93030b7 + 79171c4 commit 2f9ab53
Show file tree
Hide file tree
Showing 5 changed files with 104 additions and 1 deletion.
Binary file added public/images/basho.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions public/index.html
Expand Up @@ -65,6 +65,11 @@ <h3>Authorship Discovery</h3>
-
Entry with rel=author to an h-card with rel=me
</li>
<li>
<a href="/test/5">Discovery Test #5</a>
-
Entry with rel=author to an h-card with u-url and u-uid
</li>
</ul>

<p>
Expand Down Expand Up @@ -93,6 +98,11 @@ <h4>JSON</h4>
"name": "Virginia Woolf",
"url": "https://authorship.rocks/test/4/about-virginia-woolf",
"photo": "https://authorship.rocks/images/virginia-woolf.jpg"
},
"https://authorship.rocks/test/5": {
"name": "Basho",
"url": "https://authorship.rocks/test/5/about-basho",
"photo": "https://authorship.rocks/images/basho.jpg"
}
}</textarea>
</section>
Expand Down
4 changes: 3 additions & 1 deletion public/test/4/about-virginia-woolf/index.html
Expand Up @@ -5,10 +5,12 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

<title>Authorship discovery test 3</title>
<title>Authorship discovery test 4</title>
<link href="/assets/semantic.min.css" rel="stylesheet">
<link href="/assets/style.css" rel="stylesheet">
<link href="/assets/test.css" rel="stylesheet">

<link href="/test/4/about-virginia-woolf" rel="me">
</head>
<body>

Expand Down
38 changes: 38 additions & 0 deletions public/test/5/about-basho/index.html
@@ -0,0 +1,38 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

<title>Authorship discovery test 5</title>
<link href="/assets/semantic.min.css" rel="stylesheet">
<link href="/assets/style.css" rel="stylesheet">
<link href="/assets/test.css" rel="stylesheet">
</head>
<body>

<div class="single-column explanation">
<section class="content">
<p>
This page is about Basho, for more information see
<a href="https://en.wikiquote.org/wiki/Basho">Wikiquote</a>.
</p>
</section>
</div>

<div class="post-container">
<div class="post-main">
<div class="left">
<div class="h-card">
<a href="/test/5/about-basho" class="u-url u-uid">
<img src="/images/basho.jpg" class="u-photo">
<div class="p-name">Basho</div>
</a>
</div>
</div>
</div>
</div>

</body>
</html>
53 changes: 53 additions & 0 deletions public/test/5/index.html
@@ -0,0 +1,53 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

<title>Authorship discovery test 5</title>
<link href="/assets/semantic.min.css" rel="stylesheet">
<link href="/assets/style.css" rel="stylesheet">
<link href="/assets/test.css" rel="stylesheet">
</head>
<body>

<div class="single-column explanation">
<section class="content">
<p>
This is a haiku by <span class="answer">Basho</span>.
His URL is <span class="answer"><code>https://authorship.rocks/test/5/about-basho</code></span>,
and his photo is at
<span class="answer"><code>https://authorship.rocks/images/basho.jpg</code></span>,
</p>

<p>
This page shows an <code>h-entry</code> without author information. At the bottom of the page,
there is a link with <code>rel=&quot;author&quot;</code>. That page contains an <code>h-card</code>,
where the <code>u-url</code> and <code>u-uid</code> pointing to itself.
You will need to fetch this second page to solve this test.
</p>
</section>
</div>

<div class="post-container h-entry">
<div class="post-main">
<div class="left">
<!-- nothing about the author -->
</div>
<div class="right">
<p class="p-name e-content">
古池や<br>
蛙飛び込む<br>
水の音
</p>
</div>
</div>

<div class="footer-text">
<a href="/test/5/about-basho" rel="author">about Basho</a>
</div>
</div>

</body>
</html>

0 comments on commit 2f9ab53

Please sign in to comment.