Skip to content

Commit

Permalink
Use the github link macro more
Browse files Browse the repository at this point in the history
  • Loading branch information
leouieda committed Mar 27, 2024
1 parent 970da92 commit 656d752
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
3 changes: 1 addition & 2 deletions _templates/base.html
Expand Up @@ -163,8 +163,7 @@ <h1>
<p>
Built with <a href="https://nene.leouieda.com">Nēnē</a> {{ build.nene_version }}
from source code at
<i class="fab fa-github" aria-label="GitHub"></i>
<a href="https://github.com/{{ config.repository }}">{{ config.repository }}</a>
{{ macros.github_link(config.repository) }}
(<a href="https://github.com/{{ config.repository }}/commit/{{ build.commit }}">{{ build.commit }}</a>).
<strong>
Found a typo/mistake?
Expand Down
1 change: 1 addition & 0 deletions _templates/macros.html
Expand Up @@ -73,6 +73,7 @@


{%- macro github_link(repo) -%}
<i class="fab fa-github" aria-label="GitHub"></i>
<a href="https://github.com/{{ repo }}" target="_blank">{{ repo }}</a>
{%- endmacro -%}

Expand Down
10 changes: 4 additions & 6 deletions cv/index.md
Expand Up @@ -60,15 +60,13 @@ sections:

**Looking for a career summary?**
Here is a
<a href="https://github.com/leouieda/cv/raw/pdf/cv.pdf" target="_blank" type="application/pdf" rel="external noopener noreferrer"><i class="fa fa-file-pdf" aria-label="PDF file"></i> short CV</a>.
(LaTeX source code is in the {{ macros.github_link("leouieda/cv") }} GitHub
repository).
<a href="https://github.com/leouieda/cv/raw/pdf/cv.pdf" target="_blank" type="application/pdf" rel="external noopener noreferrer">short CV</a>
(LaTeX source at {{ macros.github_link("leouieda/cv") }}).

**Want to read a narrative version?**
I wrote an
<a href="https://github.com/leouieda/memorial2023/raw/gh-pages/memorial.pdf" target="_blank" type="application/pdf" rel="external noopener noreferrer"><i class="fa fa-file-pdf" aria-label="PDF file"></i> academic autobiography</a> (in Portuguese)
as part of my application for my current job at USP (LaTeX source code is in
the {{ macros.github_link("leouieda/memorial2023") }} GitHub repository).
<a href="https://github.com/leouieda/memorial2023/raw/gh-pages/memorial.pdf" target="_blank" type="application/pdf" rel="external noopener noreferrer">academic autobiography</a>
(in Portuguese) in 2023 (LaTeX source at {{ macros.github_link("leouieda/memorial2023") }}).

</div>

Expand Down

0 comments on commit 656d752

Please sign in to comment.