Skip to content

Commit

Permalink
Render author line
Browse files Browse the repository at this point in the history
Resolves #137
  • Loading branch information
oodamien committed Nov 6, 2023
1 parent de06c57 commit 1357d9e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
4 changes: 2 additions & 2 deletions preview-src/index.adoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
= Hardware & Software Requirements
Author Name
= Introduction
:page-author: Jon Doe, Eric Doe
:idprefix:
:idseparator: -
:!example-caption:
Expand Down
9 changes: 9 additions & 0 deletions src/css/doc.css
Original file line number Diff line number Diff line change
Expand Up @@ -816,3 +816,12 @@ html.dark-theme .doc img {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

.doc .page-author {
background: var(--asciidoctor-details-background);
padding: 1rem;
margin-bottom: .5rem;
color: var(--asciidoctor-details-font-color);
font-size: .8em;
font-weight: 600;
}
4 changes: 4 additions & 0 deletions src/partials/article.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
{{#with page.title}}
<h1 id="page-title" class="page">{{{this}}}</h1>
{{/with}}
{{#with page.attributes.author}}
<p class="page-author">{{this}}</p>
{{/with}}
{{log page}}
{{{page.contents}}}
{{> nav-section-summary}}
{{> pagination}}
Expand Down

0 comments on commit 1357d9e

Please sign in to comment.