Skip to content

Commit 4a80d51

Browse files
committed
GH Pages: minor template tweaks
* Always display link to the project on GH. The `site.github.is_project_page` key does not seem to be reliable. * Display the version number of the last release, if available. * Always display the "Maintained by" link. * Remove duplicate `header` close tag.
1 parent 265bff6 commit 4a80d51

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

docs/_layouts/default.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,24 @@
1616
<div class="wrapper">
1717
<header>
1818
<h1><a href="{{ "/" | absolute_url }}">{{ site.title | default: site.github.repository_name }}</a></h1>
19-
19+
2020
{% if site.logo %}
2121
<img src="{{site.logo | absolute_url }}" alt="Logo" />
2222
{% endif %}
2323

2424
<p>{{ site.description | default: site.github.project_tagline }}</p>
2525

26-
{% if site.github.is_project_page %}
27-
<p class="view"><a href="{{ site.github.repository_url }}">Visit the Project on GitHub <small>{{ site.github.repository_nwo }}</small></a></p>
28-
{% endif %}
29-
3026
<p class="docs"><a href="{{ "/phpdoc/index.html" | absolute_url }}">Read the Documentation</a></p>
3127

3228
<div class="install">
3329
<a href="https://packagist.org/packages/{{ site.phpcsutils.packagist }}">Install using Composer:</a><br>
3430
<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>composer require <span class="s">{{ site.phpcsutils.packagist }}</span></code></pre></div></div>
3531
</div>
3632

33+
{% if site.github.latest_release.tag_name %}
34+
<p>Latest release: <strong>{{ site.github.latest_release.tag_name }}</strong></p>
35+
{% endif %}
36+
3737
{% if site.show_downloads %}
3838
<ul class="downloads">
3939
<li><a href="{{ site.github.zip_url }}">Download <strong>ZIP File</strong></a></li>
@@ -42,9 +42,9 @@ <h1><a href="{{ "/" | absolute_url }}">{{ site.title | default: site.github.repo
4242
</ul>
4343
{% endif %}
4444

45-
<p><a href="https://twitter.com/share" class="twitter-share-button" data-related="{{ site.twitter.username }}" data-count="none" data-hashtags="{{ site.twitter.hashtags }}">Tweet about it</a></p>
45+
<p class="view"><a href="{{ site.github.repository_url }}">Visit the Project on GitHub <small>{{ site.github.repository_nwo }}</small></a></p>
4646

47-
</header>
47+
<p><a href="https://twitter.com/share" class="twitter-share-button" data-related="{{ site.twitter.username }}" data-count="none" data-hashtags="{{ site.twitter.hashtags }}">Tweet about it</a></p>
4848

4949
</header>
5050
<section>

docs/assets/css/style.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,13 @@ p code {
8989
}
9090

9191
/* FAQ */
92-
#faq h4 {
92+
.faq h3 {
9393
font-size: 18px;
9494
line-height: 1.1;
9595
margin-top: 0;
9696
}
9797

98-
#faq h4::first-letter, #faq h4 + p::first-letter {
98+
.faq h3::first-letter, .faq h3 + p::first-letter {
9999
color:#267CB9;
100100
font-weight: bold;
101101
}

0 commit comments

Comments
 (0)