Skip to content

Commit

Permalink
support publish flag
Browse files Browse the repository at this point in the history
  • Loading branch information
EndangeredMassa committed Sep 30, 2023
1 parent 54cb20f commit 0fc1212
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 4 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@
- clean up styling
- add redirects for old slug to new slug
- 404 protection: https://remysharp.com/2023/09/26/no-more-404
- allow `published: false`
- add search: https://pagefind.app/
7 changes: 7 additions & 0 deletions app/article-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,49 @@ let articles =
[
{
"slug": "theme-pact",
"published": true,
"title": "Theme Pact: Goal Setting Framework with no Goals",
"date": "2023-02-02",
"description": "Pulling from several sources, my framework for goal setting includes:<br><ul><li><b>Theme:</b> a guiding light, a default decision</li><li><b>PACT Goals:</b> specific personal outputs I commit to</li><li><b>Habits:</b> systems for making sure I achieve those outputs</li></ul>"
},
{
"slug": "conventional-comments",
"published": true,
"title": "Conventional Comments: Streamlining Feedback",
"date": "2022-03-15",
"description": "How I use Conventional Comments to make it clear (1) what kind of comment it is, (2) what specifically I want, and (3) how important it is that my comment is resolved."
},
{
"slug": "detangling-the-code-review",
"published": true,
"title": "Detangling the Code Review: Questions, Preferences, Suggestions, Conventions, Requirements",
"date": "2022-03-14",
"description": "Teams can have more effective code reviews if they default to approval and have a framework for delivering and managing feedback."
},
{
"slug": "detangling-the-standup",
"published": true,
"title": "Detangling the Standup: Status Reports, Team Planning, Context Sharing, and Community Building",
"date": "2022-01-04",
"description": "Standups are often applied without understanding the problem they are solving. This leads to:<br><br>1. Not clearly solving a specific problem<br>2. Not solving a problem with the best solution<br>3. A daily interruption to deep work<br><br>What follows is a pragmatic and ideal approach to resolving this situation. The pragmatic approach is to understand so you can excel within that system. The ideal solution tries to change the system to better serve the team."
},
{
"slug": "detangling-the-manager",
"published": true,
"title": "Detangling the Manager: Supervisor, Team Lead, Mentor",
"date": "2021-11-18",
"description": "The term Manager means a lot of different things to different companies. It can include Project Manager, Product Manager, Technical Lead, Team Lead, Mentor, Coach, Supervisor, as well as Individual Contributor. Most often, in my experience, a manager is responsible for at least these roles: Supervisor, Mentor, and Team Lead.<br><br>There is great value in having those roles played by separate people."
},
{
"slug": "developers-guide-a11y",
"published": true,
"title": "A Developer's Guide to Better Accessibility",
"date": "2017-12-07",
"description": "Melanie Sumner and I wrote about the <a href=\"https://www.24a11y.com/2017/a-developers-guide-to-better-accessibility/\">Six Pillars of Accessibility</a> as a structured guide for developers to move the needle on accessibility."
},
{
"slug": "how-to-start-linting-projects",
"published": true,
"title": "An Incremental Approach to Linting to Your Projects",
"date": "2017-08-08",
"description": "I have gone through the process of adding linting to existing, large projects a couple of times. I've learned some lessons about how to approach this so that it's not disruptive to the team doing other work. Follow these steps to get robust linting into your project without pulling team velocity to a halt!"
Expand Down
8 changes: 5 additions & 3 deletions app/templates/articles.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ import articles from '../article-data';
export default RouteTemplate(
<template>
{{#each articles as |article|}}
<ArticleCard
@article={{article}}
/>
{{#if article.published}}
<ArticleCard
@article={{article}}
/>
{{/if}}
{{/each}}
</template>
);
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"ember-svg-jar": "^2.4.6",
"ember-template-imports": "^3.4.2",
"ember-template-lint": "^5.11.2",
"ember-truth-helpers": "^4.0.3",
"loader.js": "^4.7.0",
"prember": "^2.0.0",
"qunit": "^2.19.4",
Expand Down
47 changes: 47 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0fc1212

Please sign in to comment.