Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a69388d9b8 | |||
| 600c50c71c | |||
| 36e3e4c09c | |||
| 803821d7e8 |
@@ -8,7 +8,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout to latest commit
|
- name: Checkout to latest commit
|
||||||
uses: actions/checkout@v4.1.1
|
uses: actions/checkout@v4.1.2
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4.1.1
|
uses: actions/checkout@v4.1.2
|
||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# checkout to the commit that has been pushed
|
# checkout to the commit that has been pushed
|
||||||
- uses: actions/checkout@v4.1.1
|
- uses: actions/checkout@v4.1.2
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
@@ -35,7 +35,7 @@ jobs:
|
|||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4.1.1
|
- uses: actions/checkout@v4.1.2
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
@@ -87,6 +87,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# checkout to latest commit
|
# checkout to latest commit
|
||||||
- uses: actions/checkout@v4.1.1
|
- uses: actions/checkout@v4.1.2
|
||||||
# run markdown linter
|
# run markdown linter
|
||||||
- uses: gaurav-nelson/github-action-markdown-link-check@1.0.15
|
- uses: gaurav-nelson/github-action-markdown-link-check@1.0.15
|
||||||
|
|||||||
@@ -39,6 +39,8 @@ window.addEventListener('load', async () => {
|
|||||||
|
|
||||||
// save preference to local storage
|
// save preference to local storage
|
||||||
saveScheme(newScheme)
|
saveScheme(newScheme)
|
||||||
|
|
||||||
|
setImages(newScheme)
|
||||||
}
|
}
|
||||||
|
|
||||||
setScheme(loadScheme())
|
setScheme(loadScheme())
|
||||||
@@ -50,3 +52,19 @@ window.addEventListener('load', async () => {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
function setImages(newScheme) {
|
||||||
|
const els = Array.from(document.getElementsByClassName('logo-holder'));
|
||||||
|
for (const el of els) {
|
||||||
|
const light = el.querySelector('.light-logo');
|
||||||
|
const dark = el.querySelector('.dark-logo');
|
||||||
|
if (newScheme === "dark" && dark !== null) {
|
||||||
|
if (light !== null) light.style.display = 'none'
|
||||||
|
dark.style.display = 'inline'
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
if (light !== null) light.style.display = 'inline'
|
||||||
|
if (dark !== null) dark.style.display = 'none'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
<section class="content-section" id="content-section">
|
<section class="content-section" id="content-section">
|
||||||
<div class="content container-fluid" id="content">
|
<div class="content container-fluid" id="content">
|
||||||
<div class="container-fluid post-card-holder" id="post-card-holder">
|
<div class="container-fluid post-card-holder" id="post-card-holder">
|
||||||
<div id="search-results" style="display: flex;">
|
<div id="search-results" style="display: flex; flex-wrap: wrap;">
|
||||||
|
|
||||||
<script id="search-result-template" type="text/x-js-template">
|
<script id="search-result-template" type="text/x-js-template">
|
||||||
<div class="post-card">
|
<div class="post-card">
|
||||||
|
|||||||
@@ -157,8 +157,8 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<!-- Keep backward compatibility with old config.yaml -->
|
<!-- Keep backward compatibility with old config.yaml -->
|
||||||
{{ if site.DisqusShortname }}
|
{{ if .Site.Config.Services.Disqus.Shortname }}
|
||||||
{{ partial "comments/disqus.html" (dict (slice "disqus" "shortName") site.DisqusShortname) }}
|
{{ partial "comments/disqus.html" (dict (slice "disqus" "shortName") .Site.Config.Services.Disqus.Shortname) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -56,6 +56,6 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<!-- Keep backwards compatibility and consistency with HUGO defaults -->
|
<!-- Keep backwards compatibility and consistency with HUGO defaults -->
|
||||||
{{ if site.GoogleAnalytics }}
|
{{ if .Site.Config.Services.GoogleAnalytics.ID }}
|
||||||
{{ template "_internal/google_analytics.html" . }}
|
{{ template "_internal/google_analytics.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
@@ -33,9 +33,13 @@
|
|||||||
<div class="degree-info card">
|
<div class="degree-info card">
|
||||||
|
|
||||||
{{ $logoImage:= resources.Get .institution.logo}}
|
{{ $logoImage:= resources.Get .institution.logo}}
|
||||||
|
{{ $darkLogoImage:= resources.Get .institution.darkLogo}}
|
||||||
{{ if $logoImage }}
|
{{ if $logoImage }}
|
||||||
<div class="logo-holder">
|
<div class="logo-holder">
|
||||||
<img class="company-logo" src="{{ $logoImage.RelPermalink }}" alt="{{ .name }}" />
|
<img class="company-logo light-logo" src="{{ $logoImage.RelPermalink }}" alt="{{ .name }}" />
|
||||||
|
{{ if $darkLogoImage }}
|
||||||
|
<img class="company-logo dark-logo" src="{{ $darkLogoImage.RelPermalink }}" alt="{{ .name }}" />
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|||||||
@@ -33,9 +33,13 @@
|
|||||||
<div class="degree-info card">
|
<div class="degree-info card">
|
||||||
|
|
||||||
{{ $logoImage:= resources.Get .institution.logo}}
|
{{ $logoImage:= resources.Get .institution.logo}}
|
||||||
|
{{ $darkLogoImage:= resources.Get .institution.darkLogo}}
|
||||||
{{ if $logoImage }}
|
{{ if $logoImage }}
|
||||||
<div class="logo-holder">
|
<div class="logo-holder">
|
||||||
<img class="company-logo" src="{{ $logoImage.RelPermalink }}" alt="{{ .name }}" />
|
<img class="company-logo light-logo" src="{{ $logoImage.RelPermalink }}" alt="{{ .name }}" />
|
||||||
|
{{ if $darkLogoImage }}
|
||||||
|
<img class="company-logo dark-logo" src="{{ $darkLogoImage.RelPermalink }}" alt="{{ .name }}" />
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,15 @@
|
|||||||
<div class="col-10 col-lg-8">
|
<div class="col-10 col-lg-8">
|
||||||
<div class="experience-entry-heading">
|
<div class="experience-entry-heading">
|
||||||
{{ $logoImage:= resources.Get .company.logo}}
|
{{ $logoImage:= resources.Get .company.logo}}
|
||||||
{{ if $logoImage }}
|
{{ $darkLogoImage:= resources.Get .company.darkLogo}}
|
||||||
<div class="logo-holder">
|
{{ if $logoImage }}
|
||||||
<img class="company-logo" src="{{ $logoImage.RelPermalink }}" alt="{{ .name }}" />
|
<div class="logo-holder">
|
||||||
</div>
|
<img class="company-logo light-logo" src="{{ $logoImage.RelPermalink }}" alt="{{ .name }}" />
|
||||||
|
{{ if $darkLogoImage }}
|
||||||
|
<img class="company-logo dark-logo" src="{{ $darkLogoImage.RelPermalink }}" alt="{{ .name }}" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
<!-- Total experience duration on a company is time between the starting date of the oldest position and ending date of most recent position -->
|
<!-- Total experience duration on a company is time between the starting date of the oldest position and ending date of most recent position -->
|
||||||
{{ $oldestPosition := index (last 1 .positions) 0}}
|
{{ $oldestPosition := index (last 1 .positions) 0}}
|
||||||
{{ $mostRecentPosition := index (first 1 .positions) 0}}
|
{{ $mostRecentPosition := index (first 1 .positions) 0}}
|
||||||
|
|||||||
Reference in New Issue
Block a user