Skip to content

Commit

Permalink
feat: Sort by name of blog file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Harold-Anderson committed Jul 8, 2024
1 parent c1f85cd commit ea2ccc7
Show file tree
Hide file tree
Showing 18 changed files with 29 additions and 9 deletions.
9 changes: 9 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Chrome against localhost",
"type": "chrome",
"request": "launch",
"url": "http://localhost:4321",
"webRoot": "${workspaceFolder}",
"sourceMaps": true,
"skipFiles": ["node_modules/**/*.js"]
},
{
"command": "./node_modules/.bin/astro dev",
"name": "Development server",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ tags:
- cpg
- basics
image: "~/assets/images/building_blocks.webp"

---

Welcome to the inaugural blog post of Anderson CFO! Our mission is to guide brands towards sustainable growth and help them navigate the challenges that more often than not lead to failure. The reality is that while most Consumer Packaged Goods (CPG) brands start with the best intentions, many lack the critical knowledge of potential pitfalls and essential strategies for success.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ tags:
- forecasting
- fractional cfo
image: "~/assets/images/hourglass.jpeg"
postID: 2
---

It may seem obvious, but companies need to have a deep understanding of if and when they will run out of money. Insolvency is the inability to meet current obligations. Even though sales may be increasing, it is possible to run out of money for a variety of reasons. This causes unnecessary stress for everyone in the company, especially the Accounts Payable staff.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ tags:
- inventory
- systems
- manufacturing
postID: 3
---

At Expo West this year, when I asked prospective customers what they were most concerned about, I was somewhat surprised to hear them discuss the difficulties they are having with their Enterprise Resource Planning (ERP) system. Having run a CPG manufacturer for seven years where I performed system selection and implementation, as well as production, sales, accounting, and IT, I have spent much time evaluating and integrating different systems.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ tags:
- venture capital
- venture debt
image: "~/assets/images/Searching for money.svg"
postID: 4
---

### Early-Stage Equity
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ tags:
- capital raises
- SAFE
image: "~/assets/images/legal.jpeg"
postID: 6
---

One of the most frequent topics that comes up among founders is the basic legal structures and rules that all companies must follow. Unless you are a lawyer, it isn’t a fun topic. But it is one that everyone has to deal with. So much has been written on this topic, but I feel that I can add by dealing with all the basics at once.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ tags:
- deductions
- accounting
- revenue recognition
postID: 7
---

import Logo from '~/components/Logo.astro';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ image: ~/assets/images/crystal_ball.jpeg
tags:
- forecasting
- fp&a
postID: 9
---

The only thing that is certain is death and taxes. For corporations, there is even less certainty. Yet companies cannot operate without an idea of what may occur and the consequences. There is a range of plausible outcomes, and these must be prepared for. But how?
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ tags:
- leadership
- management
image: "~/assets/images/Inventory.jpeg"
postID: 11
---

On a recent call with a small business owner who was looking for a Fractional CFO, the business owner proudly said that she had avoided nearly $100,000 in taxes by deducting her inventory as an expense at the time of purchase rather than booking it as an asset. If she had booked the inventory as an asset (sometimes called capitalization), that would have raised the business’ taxable income, since the expense deduction would not have been taken. The business was in California, where federal and state taxes amount to nearly 30%. Understandably, $100,000 is a lot for any small business. Since she was interviewing me as a potential CFO, she wanted my reaction to this important question for her business.
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/pages/[...blog]/[...page].astro
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const metadata = {

<Layout metadata={metadata}>
<section class="px-6 sm:px-6 py-12 sm:py-16 lg:py-20 mx-auto max-w-4xl">
<Headline subtitle="These are in reverse chronological order. You may wish to start from the beginning instead.">
<Headline subtitle="These are ordered from most to least important for the average founder.">
Anderson CFO Blog
</Headline>
<BlogList posts={page.data} />
Expand Down
9 changes: 4 additions & 5 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import Brands from '~/components/widgets/Brands.astro';
import Hero from '~/components/widgets/Hero.astro';
import Features2 from '~/components/widgets/Features2.astro';
import Content from '~/components/widgets/Content.astro';
import BlogHighlightedPosts from '~/components/widgets/BlogHighlightedPosts.astro';
import CallToAction from '~/components/widgets/CallToAction.astro';
import BlogLatestPosts from '~/components/widgets/BlogLatestPosts.astro';
const metadata = {
title: 'Anderson CFO - Fractional CFO',
Expand Down Expand Up @@ -197,12 +197,11 @@ const metadata = {

<!-- HighlightedPosts Widget ******* -->

<BlogHighlightedPosts
<BlogLatestPosts
title="Read Our Blog"
information={`These articles are in reverse chronological order. It is best to start at the beginning.
Advanced articles have warnings; feel free to skip those.
information={`This is a selection of featured articles. For the full list,
choose Blog from the main menu or View all posts to the left.
`}
postIds={['2']}
/>

<!-- CallToAction Widget *********** -->
Expand Down
3 changes: 2 additions & 1 deletion src/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { AstroComponentFactory } from 'astro/runtime/server/index.js';
import type { HTMLAttributes, ImageMetadata } from 'astro/types';


export interface Post {
/** A unique ID number that identifies a post. */
id: string;
Expand Down Expand Up @@ -32,7 +33,7 @@ export interface Post {

/** */
metadata?: MetaData;

/** */
draft?: boolean;

Expand Down
5 changes: 3 additions & 2 deletions src/utils/blog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,9 @@ const load = async function (): Promise<Array<Post>> {
const normalizedPosts = posts.map(async (post) => await getNormalizedPost(post));

const results = (await Promise.all(normalizedPosts))
.sort((a, b) => b.publishDate.valueOf() - a.publishDate.valueOf())
.filter((post) => !post.draft);
.filter((post) => !post.draft)
.sort((a, b) => a.id.localeCompare(b.id));


return results;
};
Expand Down
2 changes: 2 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"extends": "astro/tsconfigs/base",
"compilerOptions": {
"strict": false,
"strictNullChecks": true,
"allowJs": true,
"baseUrl": ".",
"sourceMap": true,
"paths": {
"~/*": ["src/*"]
}
Expand Down

0 comments on commit ea2ccc7

Please sign in to comment.