-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(renderer): include authors in 'meta' tag (#544)
Include authors (semicolon-separated list) in a `<meta name="author">` tag in the document head Fixes #543 Signed-off-by: Xavier Coulon <[email protected]>
- Loading branch information
Showing
5 changed files
with
37 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,9 +26,10 @@ v1.0, March 22, 2020: Containment | |
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]--> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta name="generator" content="libasciidoc"> | ||
<meta name="author" content="Xavier"> | ||
<title>Document Title</title> | ||
</head> | ||
<body class="article"> | ||
|
@@ -61,16 +62,17 @@ Last updated {{.LastUpdated}} | |
|
||
It("header with 2 authors and no revision", func() { | ||
source := `= Document Title | ||
John Foo Doe <[email protected]>; Lazarus het_Draeke <[email protected]>` | ||
John Foo Doe <[email protected]>; Jane Doe <[email protected]>` | ||
// top-level section is not rendered per-say, | ||
// but the section will be used to set the HTML page's <title> element | ||
expected := `<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]--> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta name="generator" content="libasciidoc"> | ||
<meta name="author" content="John Foo Doe; Jane Doe"> | ||
<title>Document Title</title> | ||
</head> | ||
<body class="article"> | ||
|
@@ -79,8 +81,8 @@ John Foo Doe <[email protected]>; Lazarus het_Draeke <[email protected]> | |
<div class="details"> | ||
<span id="author" class="author">John Foo Doe</span><br> | ||
<span id="email" class="email"><a href="mailto:[email protected]">[email protected]</a></span><br> | ||
<span id="author2" class="author">Lazarus het Draeke</span><br> | ||
<span id="email2" class="email"><a href="mailto:[email protected]">[email protected]</a></span><br> | ||
<span id="author2" class="author">Jane Doe</span><br> | ||
<span id="email2" class="email"><a href="mailto:[email protected]">[email protected]</a></span><br> | ||
</div> | ||
</div> | ||
<div id="content"> | ||
|
@@ -111,7 +113,7 @@ a paragraph` | |
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]--> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta name="generator" content="libasciidoc"> | ||
<title>Document Title</title> | ||
|
@@ -147,7 +149,7 @@ a paragraph` | |
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]--> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta name="generator" content="libasciidoc"> | ||
<title>Document Title</title> | ||
|
@@ -180,7 +182,7 @@ a paragraph` | |
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]--> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta name="generator" content="libasciidoc"> | ||
<title>Document Title</title> | ||
|
@@ -215,7 +217,7 @@ a paragraph` | |
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]--> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta name="generator" content="libasciidoc"> | ||
<title>Document Title</title> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters