最終更新日からそのページのコミット履歴に飛べるように

gh-pages
Rui 2019-03-27 21:58:29 +09:00
parent 396ec319a8
commit 825ceebd94
3 changed files with 26 additions and 21 deletions

View File

@ -76,7 +76,11 @@ body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:non
<div class="body">{{ content }}</div> <div class="body">{{ content }}</div>
{% if page.date %} {% if page.date %}
<aside class="main-date">最終更新日: <time>{{ page.date }}</time></aside> <aside class="main-date">
<a title="変更履歴" href="{{ site.github.repository_url }}/commits/gh-pages/{{ page.path }}">
最終更新日: <time>{{ page.date }}</time>
</a>
</aside>
{% endif %} {% endif %}
</article> </article>

View File

@ -43,11 +43,7 @@
margin-bottom: 0.5em; margin-bottom: 0.5em;
} }
h2, h2, h3, h4, h5, h6 {
h3,
h4,
h5,
h6 {
font-weight: bold; font-weight: bold;
line-height: 1.1em; line-height: 1.1em;
margin: 1rem 0; margin: 1rem 0;
@ -79,8 +75,7 @@
} }
p { p {
margin-bottom: 1em; margin: 1em 0;
margin-top: 1em;
} }
pre { pre {
@ -117,10 +112,8 @@
padding: var(--article-pre-code-padding); padding: var(--article-pre-code-padding);
} }
dl { dl dt {
dt {
font-style: normal; font-style: normal;
} }
} }
} }
}

View File

@ -9,7 +9,15 @@
} }
.main-date { .main-date {
color: var(--main-date-color);
text-align: right; text-align: right;
margin: 1em 0; margin: 1em 0;
a {
color: var(--main-date-color);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
} }