Skip to content

Commit

Permalink
Merge pull request #42 from setchy/feat/update-beautiful-jekyll
Browse files Browse the repository at this point in the history
feat: update template
  • Loading branch information
setchy authored Feb 23, 2025
2 parents 72a0c07 + 0564252 commit 0131271
Show file tree
Hide file tree
Showing 8 changed files with 132 additions and 96 deletions.
1 change: 1 addition & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
permalink: /404.html
title: Oops!
layout: default
---

Expand Down
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ social-network-links:
# medium: yourname
# reddit: yourname
linkedin: adamsetch
untappd: setchy
# xing: yourname
# stackoverflow: "3943160/yourname"
# snapchat: yourname
Expand All @@ -81,6 +80,7 @@ social-network-links:
# hackerrank: yourname
# gitlab: yourname
# itchio: yourname
untappd: setchy

# If you want your website to generate an RSS feed, provide a description
# The URL for the feed will be https://<your_website>/feed.xml
Expand Down
26 changes: 2 additions & 24 deletions _includes/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,10 @@

<script src="https://unpkg.com/simple-jekyll-search@latest/dest/simple-jekyll-search.min.js"></script>
<script>
var searchjson = '[ \
{% for post in site.posts %} \
{ \
"title" : "{% if post.title != "" %}{{ post.title | strip_html | escape }}{% else %}{{ post.excerpt | strip_html | escape | strip }}{%endif%}", \
"desc" : "{% if post.title != "" %}{{ post.title | strip_html | escape }}{% else %}{{ post.excerpt | strip_html | escape | strip }}{%endif%}", \
"category" : "{{ post.tags | join: \', \' }}", \
"url" : "{{ site.baseurl }}{{ post.url | escape }}", \
"date" : "{{ post.date | date: "%B %e, %Y" | default: "January 1, 1970" }}" \
}, \
{% endfor %} \
{% for page in site.html_pages %}{% if page.title != "{title}" and page.title != "404 - Page not found" %} \
{ \
"title" : "{% if page.title != "" %}{{ page.title | strip_html | escape }}{% else %}{{ page.excerpt | strip_html | escape | strip }}{% endif %}", \
"desc" : "{% if page.title != "" %}{{ page.title | strip_html | escape }}{% else %}{{ page.excerpt | strip_html | escape | strip }}{% endif %}", \
"category" : "{% if page.tags %}{{ page.tags | join: \', \' }}{% else %}page{% endif %}", \
"url" : "{{ site.baseurl }}{{ page.url }}", \
"date" : "{{ page.date | date: '%B %e, %Y' | default: "January 1, 1970" }}" \
}{% unless forloop.last %},{% endunless %} \
{% endif %}{% endfor %} \
]';
searchjson = JSON.parse(searchjson);

var sjs = SimpleJekyllSearch({
SimpleJekyllSearch({
searchInput: document.getElementById('nav-search-input'),
resultsContainer: document.getElementById('search-results-container'),
json: searchjson
json: '{{ site.baseurl }}/assets/data/searchcorpus.json'
});
</script>
</div>
Expand Down
14 changes: 9 additions & 5 deletions _includes/social-networks-links.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,12 @@
{%- endif -%}

{%- if network[0] == "reddit" -%}
{% assign reddit_start = network[1] | split: "/" | first -%}
{% unless reddit_start == 'r' or reddit_start == 'u' -%}
{% assign reddit_url_prefix = 'u/' -%}
{% endunless -%}
<li class="list-inline-item">
<a href="https://reddit.com/u/{{ network[1] }}" title="Reddit">
<a href="https://reddit.com/{{ reddit_url_prefix }}{{ network[1] }}" title="Reddit">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-reddit fa-stack-1x fa-inverse"></i>
Expand Down Expand Up @@ -272,7 +276,7 @@
<a rel="me" href="https://bsky.app/profile/{{ network[1] }}" title="Bluesky">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fas fa-square fa-stack-1x fa-inverse"></i>
<i class="fas fa-brands fa-bluesky fa-stack-1x fa-inverse"></i>
</span>
<span class="sr-only">Bluesky</span>
</a>
Expand Down Expand Up @@ -314,7 +318,7 @@
</a>
</li>
{%- endif -%}

{%- if network[0] == "medium" -%}
<li class="list-inline-item">
<a href="https://medium.com/@{{ network[1] }}" title="Medium">
Expand All @@ -338,7 +342,7 @@
</a>
</li>
{%- endif -%}

{%- if network[0] == "discord" -%}
{% assign discord_start = network[1] | split: "/" | first -%}
{% unless discord_start == 'users' or discord_start == 'invite' -%}
Expand All @@ -354,7 +358,7 @@
</a>
</li>
{%- endif -%}

{%- if network[0] == "kaggle" -%}
<li class="list-inline-item">
<a href="https://www.kaggle.com/{{ network[1] }}" title="Kaggle">
Expand Down
6 changes: 3 additions & 3 deletions _posts/0000-00-00-industry.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ date: 2024-10-12 00:00:00 -0400
tags: [graphql, api, community, champion, launchdarkly, owasp, dependency-track]
published: true
permalink: industry
redirect_from:
- /case-studies/
- /vids/
# redirect_from:
# - /case-studies/
# - /vids/
---

A collection of my industry contributions through conference presentations, webinars and case studies.
Expand Down
8 changes: 4 additions & 4 deletions _posts/0000-00-00-library.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ date: 2024-10-25 00:00:00 -0400
tags: [blog, blogs, podcast, podcasts, ebook, ebooks]
published: true
permalink: library
redirect_from:
- /blogs/
- /podcasts/
- /ebooks/
# redirect_from:
# - /blogs/
# - /podcasts/
# - /ebooks/
---

A collection of my favorite technology resources that I use to keep up-to-date with the technology industry:
Expand Down
Loading

0 comments on commit 0131271

Please sign in to comment.