Skip to content

Commit 35b8789

Browse files
authored
Add Copilot instructions, update README, and implement new features in the theme (#71)
1 parent feae43f commit 35b8789

File tree

5 files changed

+25
-7
lines changed

5 files changed

+25
-7
lines changed
File renamed without changes.

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Our Ghost v5 Theme made for [SREDevOps.org](https://sredevops.org) based on Tail
2020
- [ ] Ghost Cards assets CSS Cleanup
2121
- [ ] Migrate Tailwind classes from inline styles into stylesheets files
2222
- ~~[ ] Improve Algolia Search~~ (Replaced with Ghost Search)
23-
- [ ] Implement custom options
23+
- [x] Implement custom options
2424

2525
## Repo
2626

@@ -70,7 +70,8 @@ Check out the live demo at [SREDevOps.org](https://sredevops.org).
7070
- Sidebar main navigation
7171
- Dark schema
7272
- Responsive design
73-
- Customizable image sizes
73+
- Customizable sections for sidebar navigation and post sharing
74+
- Optional lazy loading for images in homepage
7475

7576
## Contributing
7677

package.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "sredevopsorg-ghost-theme",
33
"description": "Ghost v5 Theme made for SREDevOps.org (https://sredevops.org) based on Tailwind CSS v3, responsive, dark color schema, SVG icons, sidebar + footer navgation, customized tags and recommendations pages.",
44
"demo": "https://sredevops.org",
5-
"version": "1.2.4",
5+
"version": "1.2.5",
66
"engines": {
77
"ghost": ">=5.0.0"
88
},
@@ -76,6 +76,18 @@
7676
"default": true,
7777
"description": "Enable share buttons on posts",
7878
"group": "post"
79+
},
80+
"show_langs": {
81+
"type": "boolean",
82+
"default": false,
83+
"description": "Enable language menu in sidebar",
84+
"group": "homepage"
85+
},
86+
"show_sso": {
87+
"type": "boolean",
88+
"default": false,
89+
"description": "Enable SSO menu in sidebar",
90+
"group": "homepage"
7991
}
8092
},
8193
"image_sizes": {

partials/components/footer.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
<section class="flex flex-col items-center gap-1 mx-auto text-xs text-light">
44
<ul class="text-center">
55
<li>
6-
<a href="{{@site.url}}" rel="me" alt="{{@site.title}}" aria-label="SREDevOps.org">
7-
<img src="{{@site.logo}}" alt="SREDevOps.org" />
6+
<a href="{{@site.url}}" rel="me" alt="{{@site.title}}" aria-label="{{@site.title}}">
7+
<img src="{{@site.logo}}" alt="{{@site.title}}" />
88
</a>
99
</li>
1010

1111
<li>
1212
<p xmlns:cc="http://creativecommons.org/ns#" xmlns:dct="http://purl.org/dc/terms/">
13-
<a property="dct:title" rel="cc:attributionURL" href="https://sredevops.org">SREDevOps.org</a>
13+
<a property="dct:title" rel="cc:attributionURL" href="{{@site.url}}">{{@site.title}}</a>
1414
<a rel="cc:attributionURL dct:creator" property="cc:attributionName" href="https://sredevops.org/author/ngeorger" class="hidden ">by Nicolás Georger</a>
1515
is licensed under <a href="https://creativecommons.org/licenses/by/4.0/" target="_blank" rel="license noopener noreferrer">CC BY 4.0</a>
1616
</p>

partials/components/nav.hbs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
</kbd>
3838
</button>
3939
</section>
40+
{{#match @custom.show_langs}}
4041
<section class="mb-6">
4142
<button type="button" class="inline-flex justify-between w-full px-4 py-2 border rounded-md border-dark bg-dark text-lighter" id="languageMenuButton" aria-expanded="true" aria-haspopup="true">
4243
<svg class="w-5 h-5 text-light" role="img" aria-label="{{label}}">
@@ -61,11 +62,14 @@
6162
</div>
6263
</div>
6364
</section>
64-
65+
{{/match}}
6566
<!-- Main menu -->
6667
<section id="nav" class="mb-6">
6768
{{navigation}}
6869
</section>
70+
71+
{{#match @custom.show_sso}}
72+
6973
<section id="members" class="pb-4 text-light">
7074
{{#if @member}}
7175
{{!-- Add CryptoJS library --}}
@@ -93,5 +97,6 @@
9397
{{> "social-sso"}}
9498
{{/if}}
9599
</section>
100+
{{/match}}
96101
</aside>
97102

0 commit comments

Comments
 (0)