Skip to content

Commit cee577c

Browse files
Merge pull request #57 from pycalendar/fix/design-consistency
Match Mastodon links to site design
2 parents ab44f8e + 00b3850 commit cee577c

5 files changed

Lines changed: 55 additions & 4 deletions

File tree

‎.github/copilot-instructions.md‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Instructions for coding agents
2+
3+
This is the Jekyll source for [pycal.org](https://pycal.org). See [README.md](../README.md) to build and run it. Changes must match the site's existing design.
4+
5+
## Content
6+
7+
- Packages, team members, standards and footer links live in `_data/*.yml`, and the pages loop over them. Add a field or an item there and extend the loop. Don't hard-code a one-off element in a template.
8+
- Footer links go in `_data/footer_nav.yml`. Use the optional `rel` field for values like `me`.
9+
10+
## Styling
11+
12+
- All styles live in `assets/css/style.css`. Use the tokens in `:root` for colors and fonts, never raw values.
13+
- Give every new element a class styled like its neighbors. For a new sibling of an existing element, add its class to the existing selector list. An unstyled `<a>` picks up the teal accent and looks out of place.
14+
- No inline `style=` attributes, and no new stylesheets, fonts or frameworks.
15+
- Don't load images or scripts from other domains. Save them under `assets/`.
16+
17+
## Markup
18+
19+
- Build headings with `{% include heading.html title="..." %}`. Other pages link to their anchors, so don't rename headings casually.
20+
- Pages use `layout: page` with `title`, `hero_sub` and `description` front matter.
21+
- External links use `target="_blank" rel="noopener"`.
22+
23+
## Before opening a PR
24+
25+
- `bundle exec jekyll build` must succeed.
26+
- Check the changed page at desktop width and at 640px.
27+
- Follow the [AI policy](https://pycal.org/ai-policy/).

‎.gitignore‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,27 @@
1+
# Jekyll build output and caches
12
_site/
23
.jekyll-cache/
34
.jekyll-metadata
45
.sass-cache/
6+
7+
# Ruby / Bundler
58
Gemfile.lock
69
vendor/
10+
.bundle/
11+
12+
# AI prompt logs (archived into commits by ai-prompt-auto-commit)
713
/.prompts/
14+
15+
# Editors
16+
.vscode/
17+
.idea/
18+
*.swp
19+
*~
20+
21+
# OS files
22+
.DS_Store
23+
Thumbs.db
24+
desktop.ini
25+
26+
# Local environment
27+
.env

‎_data/footer_nav.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ project:
1313
community:
1414
- label: GitHub
1515
url: https://github.com/pycalendar
16+
- label: Mastodon
17+
url: https://fosstodon.org/@pycal
18+
rel: me
1619
- label: NLnet
1720
url: https://nlnet.nl
1821
- label: PyPI

‎_includes/footer.html‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,13 @@ <h4>Project</h4>
2121
<h4>Community</h4>
2222
<ul>
2323
{% for item in site.data.footer_nav.community %}
24-
<li><a href="{{ item.url }}" target="_blank" rel="noopener">{{ item.label }}</a></li>
24+
<li><a href="{{ item.url }}" target="_blank" rel="noopener{% if item.rel %} {{ item.rel }}{% endif %}">{{ item.label }}</a></li>
2525
{% endfor %}
2626
</ul>
2727
</div>
2828
</div>
2929
<div class="footer-bottom">
3030
<p>{{ site.title }}.</p>
31-
<a rel="me" href="https://fosstodon.org/@pycal">Mastodon</a>
3231
</div>
3332
</div>
3433
</footer>

‎assets/css/style.css‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -670,15 +670,17 @@ code {
670670
}
671671

672672
.member-github,
673-
.member-linkedin {
673+
.member-linkedin,
674+
.member-mastodon {
674675
font-size: 0.8rem;
675676
font-family: var(--font-mono);
676677
color: var(--stone-400);
677678
text-decoration: none;
678679
}
679680

680681
.member-github:hover,
681-
.member-linkedin:hover {
682+
.member-linkedin:hover,
683+
.member-mastodon:hover {
682684
color: var(--stone-900);
683685
text-decoration: none;
684686
}

0 commit comments

Comments
 (0)