-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdefault_layout.patch
41 lines (41 loc) · 1.98 KB
/
default_layout.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
--- _layouts/default.html 2018-08-23 21:23:43.062816346 +0000
+++ _layouts/default.html 2018-08-23 20:24:02.658214333 +0000
@@ -1,3 +1,13 @@
+{% if page.title %}
+ {% assign page-title = page.title | escape %}
+{% else %}
+ {% assign page-title = site.title | escape %}
+{% endif %}
+{% if page.description %}
+ {% assign page-description = page.description | escape %}
+{% else %}
+ {% assign page-description = site.description | escape %}
+{% endif %}
<!DOCTYPE html>
<html lang="{{ site.lang | default: "en-US" }}">
<head>
@@ -20,11 +30,9 @@
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
</head>
<body>
- <a id="skip-to-content" href="#content">Skip to the content.</a>
-
<header class="page-header" role="banner">
- <h1 class="project-name">{{ site.title | default: site.github.repository_name }}</h1>
- <h2 class="project-tagline">{{ site.description | default: site.github.project_tagline }}</h2>
+ <h1 class="project-name">{{ page-title | default: site.github.repository_name }}</h1>
+ <h2 class="project-tagline">{{ page-description | default: site.github.project_tagline }}</h2>
{% if site.github.is_project_page %}
<a href="{{ site.github.repository_url }}" class="btn">View on GitHub</a>
{% endif %}
@@ -41,7 +49,9 @@
{% if site.github.is_project_page %}
<span class="site-footer-owner"><a href="{{ site.github.repository_url }}">{{ site.github.repository_name }}</a> is maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a>.</span>
{% endif %}
- <span class="site-footer-credits">This page was generated by <a href="https://pages.github.com">GitHub Pages</a>.</span>
+ <div style="text-align:center">
+ <a href="https://twitter.com/secumod"><img alt="https://twitter.com/ignatkn" width="40" height="40" src="/img/twitter-blue.png" /></a>
+ </div>
</footer>
</main>
</body>