Skip to content

Commit d121b1b

Browse files
committed
fix fontawesome issues
1 parent b8738a8 commit d121b1b

5 files changed

Lines changed: 15 additions & 6 deletions

File tree

‎_includes/content_filelinks.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="content_links">
33
{% assign value = include.content.base_value %}{% if include.content.status=="featured" %}{% assign value = value | times: site.data.ga.featured_value_multiplier %}{% endif %}
44
{% if include.content.external_url %}
5-
<a class="btn" {% if include.newtab %}target="_blank"{% endif %} data-content-path="{{ content_path }}" ga-event-value="{{ value }}" href="{{ include.content.external_url }}"><i class="fa{% if include.content.external_url contains "youtu" %}b fa-youtube"></i> YouTube{% else %}s fa-{% assign ext = include.content.external_url | slice: -4, 4 %}{% if ext == ".pdf" %}file-pdf"></i> pdf{% elsif ext == ".mp3" %}file-audio"></i> mp3{% elsif ext == ".zip" %}file-archive"></i> zip{% else %}{% case include.content.category %}{% when "av" %}volume-up{% when "booklets" %}book-open{% when "monographs" %}book-open{% else %}globe{% endcase %}"></i> Online{% endif %}{% endif %}</a>
5+
<a class="btn" {% if include.newtab %}target="_blank"{% endif %} data-content-path="{{ content_path }}" ga-event-value="{{ value }}" href="{{ include.content.external_url }}"><i class="fa{% if include.content.external_url contains "youtu" %}b fa-youtube"></i> YouTube{% elsif include.content.external_url contains "//www.academia.edu/" %}c-academia"></i>cademia.edu{% else %}s fa-{% assign ext = include.content.external_url | slice: -4, 4 %}{% if ext == ".pdf" %}file-pdf"></i> pdf{% elsif ext == ".mp3" %}file-audio"></i> mp3{% elsif ext == ".zip" %}file-archive"></i> zip{% else %}{% case include.content.category %}{% when "av" %}volume-up{% when "booklets" %}book-open{% when "monographs" %}book-open{% else %}globe{% endcase %}"></i> Online{% endif %}{% endif %}</a>
66
{% endif %}
77
{% if include.content.file_links.size > 0 %}
88
{%- for link in include.content.file_links -%}

‎_includes/social.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<ul class="social-media-list">
22
{%- if site.tinyletter_username -%}<li><a href="https://tinyletter.com/{{ site.tinyletter_username | cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/imgs/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_repo }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/imgs/minima-social-icons.svg#github' | relative_url }}"></use></svg> <span class="username">GitHub</span></a></li>{%- endif -%}
3+
{%- if site.github_repo -%}<li><a href="https://github.com/{{ site.github_repo }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/imgs/minima-social-icons.svg#github' | relative_url }}"></use></svg> <span class="username">GitHub</span></a></li>{%- endif -%}
44
{%- if site.twitter_username -%}<li><a href="https://www.twitter.com/{{ site.twitter_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/imgs/minima-social-icons.svg#twitter' | relative_url }}"></use></svg> <span class="username">Twitter</span></a></li>{%- endif -%}
55
{%- if site.rss -%}<li><a href="{{ 'feed' | relative_url }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/imgs/minima-social-icons.svg#rss' | relative_url }}"></use></svg> <span>{{ site.rss | escape }}</span></a></li>{%- endif -%}
66
</ul>

‎_sass/nimitta.scss‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,9 @@ h5 {
269269

270270
$new-tab-icon-size: 0.95em;
271271
a[target="_blank"]:after {
272-
font-family: 'Font Awesome 5 Free';
272+
font-family: 'Font Awesome 6 Free';
273273
font-weight: 900;
274-
content: " \f35d"; // https://fontawesome.com/v5/cheatsheet
274+
content: " \f08e";
275275
vertical-align: super;
276276
font-size: 65%;
277277
}
@@ -397,6 +397,14 @@ i.fac-fojing {
397397
i.fac-fojing:after {
398398
content: "佛經";
399399
}
400+
i.fac-academia {
401+
font-style: normal;
402+
}
403+
i.fac-academia:after {
404+
font-family: serif;
405+
font-weight: bold;
406+
content: "A";
407+
}
400408

401409
.simple_content p {
402410
margin-left: 1.5em;

‎assets/css/courselist.scss‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,10 @@ div.descrow div.cicon {
7272
min-width: 145px;
7373
text-align: center;
7474
font-size: 65px;
75+
padding-bottom: 15px;
7576
@include media-query($on-palm) {
7677
float: left;
77-
padding: 0 15px 0 0;
78+
padding: 0 15px 15px 0;
7879
}
7980
@media screen and (min-width: 450px) {
8081
max-width: 145px;

‎courses.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Courses hosted on other websites.
9393

9494
<div class="coursedesc">
9595
<div class="descrow">
96-
<div onclick="goto('http://www.nettletibetan.ca/',0.5)" class="cicon"><i class="fas fa-tram"></i></div>
96+
<div onclick="goto('http://www.nettletibetan.ca/',0.5)" class="cicon"><i class="fas fa-person-hiking"></i></div>
9797
<div class="cdesc">Two courses introducing the Tibetan Language courtesy of the University of Toronto, taking you from identifying words all the way up to translating your first Buddhist text. <b>Note</b>: This class assumes prior comfort with <a target="_blank" href="https://en.wikipedia.org/wiki/Tibetan_script">the Tibetan script</a>. If that's not you, see e.g. <i>Translating Buddhism from Tibetan</i> Ch.1–8 before taking this course.</div>
9898
<div class="ccredits"><i class="fas fa-weight-hanging"></i> 4</div>
9999
</div>

0 commit comments

Comments
 (0)