Skip to content

Commit

Permalink
🩹 Fix author icon links
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Aug 1, 2024
1 parent 6fe9924 commit 0e42ae2
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 28 deletions.
8 changes: 8 additions & 0 deletions _includes/authors.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<div id="authors">
{% assign authors = matter.author | append: ',' | append: matter.contrib | replace: " ","" | split: ',' %}
{% if authors %}
{% for author in authors %}
<a href="//github.com/{{ author }}" data-toggle="tooltip" data-placement="bottom" title="Visit {{ author }}'s profile on Github">{% avatar user=author size=30 %}</a>
{% endfor %}
{% endif %}
</div>
9 changes: 1 addition & 8 deletions _includes/gcode-info.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,7 @@
{% alert info %}This page is under construction and may not have complete or up-to-date information.{% endalert %}
{% endif %}
<div class="col-lg-12 row meta detail-header">
<p id="authors" class="text-right pull-right visible-lg-block hidden-print small custom-pt25">
{% assign authors = gcode.author | append: ',' | append: gcode.contrib | replace: " ","" | split: ',' %}
{% if authors %}
{% for author in authors %}
<a href="//github.com/{{ author }}" data-toggle="tooltip" data-placement="bottom" title="Visit {{ author }}'s profile on Github">{% avatar user=author size=30 %}</a>
{% endfor %}
{% endif %}
</p>
{% assign matter = gcode %}{% include authors.html %}

<h1>{{ gcode.codes | codes_desc }} - {{ gcode.title }}</h1>

Expand Down
9 changes: 1 addition & 8 deletions _includes/setting-info.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,7 @@
{% if page.label %}{% assign title = page.label %}{% else %}{% assign title = false %}{% endif %}
{% if page.since %}{% assign since = page.since %}{% else %}{% assign since = false %}{% endif %}
{% if page.tags %}{% assign tags = page.tags | join: ", " %}{% else %}{% assign tags = false %}{% endif %}
<p id="authors" class="text-right pull-right visible-lg-block hidden-print small custom-pt25">
{% assign authors = conf.author | append: ',' | append: conf.contrib | replace: " ","" | split: ',' %}
{% if authors %}
{% for author in authors %}
<a href="//github.com/{{ author }}" data-toggle="tooltip" data-placement="bottom" title="Visit {{ author }}'s profile on Github">{% avatar user=author size=30 %}</a>
{% endfor %}
{% endif %}
</p>
{% assign matter = conf %}{% include authors.html %}
{% else %}
{% assign ispage = false %}
{% assign h1 = "h4" %}{% assign h3 = "h5" %}
Expand Down
9 changes: 1 addition & 8 deletions _layouts/docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,7 @@
<div class="col-lg-9 col-md-8">
<div class="row">
<div class="col-md-12 custom-article">
<p id="authors" class="text-right pull-right visible-lg-block hidden-print small custom-pt25">
{%- assign authors = page.author | append: ',' | append: page.contrib | replace: " ","" | split: ',' %}
{%- if authors %}
{%- for author in authors %}
<a href="//github.com/{{ author }}" data-toggle="tooltip" data-placement="bottom" title="Visit {{ author }}'s profile on Github">{% avatar user=author size=30 %}</a>
{%- endfor %}
{%- endif %}
</p>
{% assign matter = page %}{% include authors.html %}
<h1 class="custom-article-header">{{ page.title }}</h1>

{%- if page.category contains 'in-review' %}
Expand Down
16 changes: 12 additions & 4 deletions _sass/_custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -918,10 +918,13 @@ div.custom-article, div.col-md-12>.row.long, div.col-md-12>.row.notes {
margin: -1em 0 1em;
padding: 0.5em 0.5em 0.25em;
}
.detail-header h1 { margin-bottom: 4px; }

#authors {
height: 0; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0;
img.avatar { float: right; margin: 8px 0 0 2px; background: white; }
width: 100%;
height: 0;
text-align: right;
padding-right: 2px;
img.avatar { margin: 8px 0 0 2px; }
}

div.custom-article {
Expand Down Expand Up @@ -1330,7 +1333,12 @@ div.options table {
td { font-size: 90% }
}

.detail-header { position: relative; a[name] { position: absolute; top: -5em; } }
.detail-header {
position: relative;
pointer-events: none;
h1 { margin-bottom: 4px; }
a[name] { position: absolute; top: -5em; }
}

div.brief { font-weight: $bold-font-weight; }
div.since { float: right; margin-right: 0.25em; }
Expand Down
1 change: 1 addition & 0 deletions _setting/config_info.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ label: Configuration Info
brief: Information about the configuration itself.
category: [ wip ]
tags: [ info ]
author: thinkyhead

settings:
- name: CONFIGURATION_H_VERSION
Expand Down
1 change: 1 addition & 0 deletions _setting/extruder.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ brief: Extruder settings.
category: [ wip ]
tags: [ hardware, extruder ]
pagetype: toc
author: thinkyhead

settings:

Expand Down
1 change: 1 addition & 0 deletions _setting/hardware.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ brief: Machine electronics and main components.
category: [ wip ]
tags: [ hardware ]
pagetype: toc
author: thinkyhead

settings:
- name: MOTHERBOARD
Expand Down
1 change: 1 addition & 0 deletions _setting/machine_info.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ brief: Human-readable machine information.
category: [ wip ]
tags: [ info ]
pagetype: toc
author: thinkyhead

settings:
- name: CUSTOM_MACHINE_NAME
Expand Down
1 change: 1 addition & 0 deletions _setting/stepper_drivers.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ brief: Basic Stepper Driver settings
category: [ wip ]
tags: [ hardware ]
pagetype: toc
author: thinkyhead

shared:
-
Expand Down
1 change: 1 addition & 0 deletions _setting/temperature.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ brief: Basic Temperature settings
category: [ wip ]
tags: [ hardware, temperature ]
pagetype: toc
author: thinkyhead

settings:
- name: TEMP_SENSOR_0
Expand Down

0 comments on commit 0e42ae2

Please sign in to comment.