Skip to content

Commit e140b00

Browse files
committed
Minor layout and graphics tweaks
- Add a horizontal logo - Reposition a few elements on the home page
1 parent 5b3932c commit e140b00

File tree

6 files changed

+48
-4
lines changed

6 files changed

+48
-4
lines changed

_includes/header.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
<div class="wrapper">
55
{%- assign default_paths = site.pages | map: "path" -%}
66
{%- assign page_paths = site.header_pages | default: default_paths -%}
7-
<a class="site-title" rel="author" href="{{ "/" | relative_url }}"><img src="/img/logos/optech-logo-margin.png" alt="OpTech Logo" height="64" width="64"> {{ site.title | escape }}</a>
7+
<a class="site-title" rel="author" href="{{ "/" | relative_url }}">
8+
<img src="/img/logos/optech-horiz.png" alt="OpTech Logo">
9+
</a>
810

911
{%- if page_paths -%}
1012
<nav class="site-nav">

_layouts/home.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
<h1 class="page-heading">{{ page.title }}</h1>
1010
{%- endif -%}
1111

12-
{{ content }}
12+
<div class="content">
13+
{{ content }}
14+
</div>
1315

1416
{% assign posts=site.posts | where:"lang", 'en' | where:"type", 'posts' | sort:'post.date' %}
1517
{%- if posts.size > 0 -%}

_layouts/page.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
# Forked from the default minima layout to include our main.css
3+
4+
layout: default
5+
---
6+
<link rel="stylesheet" href="/assets/css/main.css">
7+
8+
<article class="post">
9+
10+
<header class="post-header">
11+
<h1 class="post-title">{{ page.title | escape }}</h1>
12+
</header>
13+
14+
<div class="post-content">
15+
{{ content }}
16+
</div>
17+
18+
</article>

assets/css/main.scss

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,23 @@ p.sponsor-quote {
5454
max-width: 100%;
5555
box-shadow: 0 0 0 1px rgba(0,0,0,0.2);
5656
}
57+
58+
a.site-title {
59+
width: 30%;
60+
}
61+
62+
.home .content {
63+
margin-top: 2em;
64+
65+
> .logo {
66+
width: 30%;
67+
float: right;
68+
display: inline-block;
69+
margin-left: 2em;
70+
margin-bottom: 2em;
71+
}
72+
73+
div#sponsors {
74+
margin-top: 4em;
75+
}
76+
}

img/logos/optech-horiz.png

12.1 KB
Loading

index.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44

55
layout: home
66
---
7-
{:style="text-align: center"}
8-
![OpTech Logo](/img/logos/optech.png)
7+
8+
<div class="logo">
9+
<img src="/img/logos/optech.png" alt="Optech logo" />
10+
</div>
911

1012
The Bitcoin Operations Technology Group (Optech) works to bring the best
1113
open source technologies and techniques to Bitcoin-using businesses in

0 commit comments

Comments
 (0)