Skip to content

Commit 5c2cf32

Browse files
committed
some more design fixes
1 parent 75556d9 commit 5c2cf32

8 files changed

Lines changed: 87 additions & 6 deletions

File tree

‎_config.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ baseurl: "" # the subpath of your site, e.g. /blog
2323
url: "https://buddhist-uni.github.io" # the base hostname & protocol for your site, e.g. http://example.com
2424
google_analytics: UA-159403467-1
2525
github_username: buddhist-uni
26+
tinyletter_username: buddhist-uni
2627
header_pages: [courses.md, library.md, blog.md, about.md]
2728
timezone: "Asia/Bangkok"
2829

‎_includes/social.html‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<ul class="social-media-list">
2+
{%- if site.tinyletter_username -%}<li><a href="https://tinyletter.com/{{ site.tinyletter_username | cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/tinyletter-icon.svg#theicon' | relative_url }}"></use></svg> <span class="username" style="font-style: italic; font-family: Georgia, Times, serif;">TinyLetter</span></a></li>{%- endif -%}
3+
{%- if site.github_username -%}<li><a href="https://github.com/{{ site.github_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#github' | relative_url }}"></use></svg> <span class="username">GitHub</span></a></li>{%- endif -%}
4+
{%- if site.rss -%}<li><a href="{{ 'feed.xml' | relative_url }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#rss' | relative_url }}"></use></svg> <span>{{ site.rss | escape }}</span></a></li>{%- endif -%}
5+
</ul>

‎_layouts/content.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ <h2 class="author">Read by {% if reader %}<a href="{{ reader.url }}">{{ reader.t
116116
One of the best works in existence{% if tags %} on {% else %}.{% endif %}
117117
{% endcase %}
118118
{% if tags %}{{ tags | array_to_sentence_string: joiner }}.{% endif %}
119-
<i>See <a href="{% link tags.md %}">all of our tags here</a>.
119+
<i>See <a href="{% link tags.md %}">all of our tags here</a>.</i>
120120
</p>
121121

122122
{% if page.course %}

‎_layouts/post.html‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
layout: default
3+
---
4+
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
5+
6+
<header class="post-header">
7+
<h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
8+
<p class="post-meta">
9+
Sent on
10+
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
11+
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
12+
{{ page.date | date: date_format }}</time>.
13+
For the latest, <a href="https://tinyletter.com/buddhist-uni">subscribe here</a>.
14+
</p>
15+
</header>
16+
17+
<div class="post-content e-content" itemprop="articleBody">
18+
{{ content }}
19+
</div>
20+
21+
{%- if site.disqus.shortname -%}
22+
{%- include disqus_comments.html -%}
23+
{%- endif -%}
24+
25+
<a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
26+
</article>

‎_sass/frontpage.scss‎

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,20 @@
3535
padding-bottom: 0px;
3636
}
3737

38-
.frontpage div.herotext {
38+
.frontpage h1, .frontpage p {
3939
text-align: center;
40+
}
41+
42+
.frontpage .welcome h1 {
43+
letter-spacing: -2px;
44+
margin-bottom: 6px;
45+
}
46+
47+
.frontpage .page-content {
48+
padding-top: 10px;
49+
}
50+
51+
.frontpage div.herotext {
4052
max-width: 30em;
4153
margin-left: auto;
4254
margin-right: auto;
@@ -70,7 +82,11 @@
7082
}
7183

7284
.frontpage footer.site-footer p {
73-
color: #aaa;
85+
color: #A8A8A8;
86+
}
87+
88+
.frontpage footer.site-footer .social-media-list svg {
89+
fill: white;
7490
}
7591

7692
.frontpage footer.site-footer li {

‎_sass/nimitta.scss‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,16 @@ figure figcaption {
4242
}
4343
}
4444

45+
// Fix a couple rediculous bugs in the Minima theme
46+
.site-header {
47+
z-index: 2;
48+
}
49+
50+
.social-media-list .svg-icon {
51+
padding: 0;
52+
margin-right: 5px;
53+
}
54+
4555
.site-nav {
4656
@include media-query($on-palm) {
4757
right: initial;

‎assets/tinyletter-icon.svg‎

Lines changed: 23 additions & 0 deletions
Loading

‎index.html‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
<main class="page-content" aria-label="Content">
1414
<div class="wrapper">
15-
<h1><a href="{% link _posts/2020-03-13-welcome.md %}">Welcome to the Open Buddhist University</a></h1>
16-
<p>A place to chill and learn about Buddhism.</p>
15+
<div class="welcome"><h1><a href="{% link _posts/2020-03-13-welcome.md %}">Welcome to the Open Buddhist University</a></h1>
16+
<p>A place to chill and learn about Buddhism.</p></div>
1717
<h2>What kind of learning do you prefer?</h2>
1818

1919
<div class="learning_styles"><ul>
@@ -25,7 +25,7 @@ <h2>What kind of learning do you prefer?</h2>
2525
<li onclick="location.href='/tags/';">
2626
<div class="ls_name"><a href="/tags/">Self-Guided</a></div>
2727
<div class="ls_icon"><i class="fas fa-boxes"></i></div>
28-
<div class="ls_desc">Explore our <a href="/library/">library</a> of interesting material gathered from <a href="{% link sources.md %}">around the web</a>.</div>
28+
<div class="ls_desc">Explore our <a href="/library/">library</a> of material gathered from <a href="{% link sources.md %}">around the web</a>.</div>
2929
</li>
3030
</ul></div>
3131

0 commit comments

Comments
 (0)