Skip to content

Commit

Permalink
Merge branch 'Azure:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
KenKilty authored Aug 22, 2024
2 parents 995cc5c + 80f984d commit 9820c13
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 4 deletions.
10 changes: 9 additions & 1 deletion blog/_includes/nav_list
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,15 @@
<li><a href="{{ site.baseurl }}/categories">Browse all</a></li>
{% for category in site.categories %}
{% capture category_name %}{{ category | first }}{% endcapture %}
<li><a href="{{ site.baseurl }}/category/{{ category_name | slugize}}">{{ category_name | capitalize }}</a></li>
<li>
<a href="{{ site.baseurl }}/category/{{ category_name | slugize}}">
{% if category_name.size <= 2 %}
{{ category_name | upcase }}
{% else %}
{{ category_name | capitalize }}
{% endif %}
</a>
</li>
{% endfor %}
</ul>
</li>
Expand Down
16 changes: 14 additions & 2 deletions blog/_layouts/categories.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@
{% if category[1].size == i %}
<li>
<a href="#{{ category[0] | slugify }}">
<strong>{{ category[0] | capitalize }}</strong> <span class="taxonomy__count">{{ i }}</span>
<strong>
{% if category[0].size <= 2 %}
{{ category[0] | upcase }}
{% else %}
{{ category[0] | capitalize }}
{% endif %}
</strong> <span class="taxonomy__count">{{ i }}</span>
</a>
</li>
{% endif %}
Expand All @@ -30,7 +36,13 @@
{% for category in site.categories %}
{% if category[1].size == i %}
<section id="{{ category[0] | slugify | downcase }}" class="taxonomy__section">
<h2 class="archive__subtitle">{{ category[0] | capitalize }}</h2>
<h2 class="archive__subtitle">
{% if category[0].size <= 2 %}
{{ category[0] | upcase }}
{% else %}
{{ category[0] | capitalize }}
{% endif %}
</h2>
<div class="entries-{{ entries_layout }}">
{% for post in category.last %}
{% include archive-single.html type=entries_layout %}
Expand Down
9 changes: 8 additions & 1 deletion blog/_layouts/category.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@
layout: archive-notitle
---

<h1>{{ page.taxonomy | capitalize }} </h1>
<h1>
{% if page.taxonomy.size <= 2 %}
{{ page.taxonomy | upcase }}
{% else %}
{{ page.taxonomy | capitalize }}
{% endif %}
</h1>

{{ page.taxonomy_description }}

{% assign entries_layout = page.entries_layout | default: 'list' %}
Expand Down
7 changes: 7 additions & 0 deletions blog/_pages/category-ai.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
layout: category
permalink: /category/ai
title: Category
taxonomy: ai
taxonomy_description: Artificial Intelligence and Machine Learning on AKS
---

0 comments on commit 9820c13

Please sign in to comment.