FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
mary-python.github.io/_includes/category-list.html at master · mary-python/mary-python.github.io · GitHub
mary-python
/
mary-python.github.io
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
mary-python.github.io
/
_includes
/
category-list.html
Copy path
More file actions
More file actions
Latest commit
History
History
History
30 lines (26 loc) · 1.35 KB
Breadcrumbs
mary-python.github.io
/
_includes
/
category-list.html
Copy path
File metadata and controls
30 lines (26 loc) · 1.35 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{% include base_path %}
{% include base_path %}
{% case site.category_archive.type %}
{% when "liquid" %}
{% assign path_type = "#" %}
{% when "jekyll-archives" %}
{% assign path_type = nil %}
{% endcase %}
{% if site.category_archive.path %}
{% comment %}
<!-- Sort alphabetically regardless of case e.g. a B c d E -->
<!-- modified from http://www.codeofclimber.ru/2015/sorting-site-tags-in-jekyll/ -->
{% endcomment %}
{% capture page_categories %}{% for category in page.categories %}{{ category | downcase }}#{{ category }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
{% assign category_hashes = (page_categories | split: ',' | sort:0) %}
<
p
class
="
page__taxonomy
"
>
<
strong
>
<
i
class
="
fa fa-fw fa-folder-open
"
aria-hidden
="
true
"
>
</
i
>
{{ site.data.ui-text[site.locale].categories_label | default: "Categories:" }}
</
strong
>
<
span
itemprop
="
keywords
"
>
{% for hash in category_hashes %}
{% assign keyValue = hash | split: '#' %}
{% capture category_word %}{{ keyValue[1] | strip_newlines }}{% endcapture %}
<
a
href
="
{{ base_path }}{{ category_word | slugify | prepend: path_type | prepend: site.category_archive.path }}
"
class
="
page__taxonomy-item
"
rel
="
tag
"
>
{{ category_word }}
</
a
>
{% unless forloop.last %}
<
span
class
="
sep
"
>
,
</
span
>
{% endunless %}
{% endfor %}
</
span
>
</
p
>
{% endif %}
Back
|
FazBrowse Home
|
New Git URL