How can I create a text-heavy site that’s easy to update yearly?

0
10
Asked By TechyTurtle42 On

I'm looking to create a primarily text-based website, similar to a Wikipedia page, focused on finance. Each year, certain financial thresholds will change, but the underlying mechanics remain consistent. My goal is to find out how to set up the site so that I can easily update those values without manually searching through the entire page. I think I might need a content management system (CMS), but it seems like most CMS options only allow updates to whole pages or sections, rather than specific text within a paragraph. Any advice on how to achieve this would be hugely appreciated!

4 Answers

Answered By DynamicDev101 On

You could write some dynamic HTML where you use something like `{{ getMyDynamicText() }}` within your text to insert changes. This function could call an API to fetch your updated data. Just keep in mind, depending on the framework you choose, the exact syntax might vary. This could be a bit more complex, but it could give you the flexibility to handle updates more seamlessly.

TechyTurtle42 -

This does sound like the kind of thing I’m envisioning, but I worry it might require more coding knowledge than I have.

Answered By QuestionGuru1 On

Are you planning to keep this information public? Also, what coding experience do you have? Understanding your comfort level could help tailor some suggestions just for you!

Answered By WebWizard88 On

You could start by opening a free GitHub account and creating a repository for your site. Using GitHub Pages, you can host a static site easily without needing a fancy URL. Since you’re working with a static site, you'll basically use HTML for the content and CSS for styling. If it’s just a few values that change, you could update them manually once a year. If you're up for it, writing a simple JavaScript script to automatically pull in these updated values could also work, saving you some hassle.

Answered By CreativeCoder73 On

If the page is only updated once a year, why not keep it simple? Just create a basic HTML page and do a find-and-replace each year to change the numbers. For something a bit more sophisticated, you could use a tool like Astro to define variables for financial values and reference them throughout your template. This way, when you update the variables and push your changes, the site automatically rebuilds with the new values. That could streamline the process a lot!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.