Questions tagged [static-site-generation]

Static Site Generators (SSG) are frameworks that build websites from static content. For example, one can build an online blog from a list of text files.

178 questions
1
vote
1 answer

How Can I apply remark-math, katex to my Elder.js Blog?

May I ask you about my problem? I am trying to apply remark-math to my elder.js blog. It is not rendered properly. Like this. markdown $$ \sin^2x + \cos^2x = 1 h \circ (g \circ f) = (h \circ g) \circ f = h \circ g \circ f $$ rendered html
Stelo
  • 21
  • 4
1
vote
0 answers

How to enable ssg/ssr in next.js with custom App component

I have a custom _app.js which looks like this: function MyApp({ Component, pageProps }) { const Layout = Component.layoutProps?.Layout || React.Fragment const layoutProps = Component.layoutProps?.Layout ? { layoutProps: Component.layoutProps…
1
vote
1 answer

Is it possible to use `addGlobalData` within the .eleventy configuration file?

In the documentation (https://www.11ty.dev/docs/data-global-custom/) for Eleventy it states that you can use the following as one option for adding custom global data: // .eleventy.js module.exports = function(eleventyConfig) { …
Lea Hayes
  • 62,536
  • 16
  • 62
  • 111
1
vote
1 answer

I just installed hexo static site generator on Debian and ran hexo server to see but it gave a TypeError

I am not sure if I did anything wrong. This is all I did, I followed the documentation to do the installation. I had git and nodejs preinstalled, to install hexo cli I ran this, sudo npm install -g hexo-cli Then I checked if hexo is installed by…
Sujee0_0
  • 33
  • 6
1
vote
1 answer

How to delete page from an Eleventy website?

I want to remove a page I created in my Eleventy-generated website, let's call it a-post.md. And I don't know what's the right way to do it. I just remove the "source" page and, sure enough, it disappeared from the site. However, the files it…
ahmed
  • 313
  • 3
  • 15
1
vote
1 answer

Which static site generator has the most full GitLab Flavored Markdown support?

I want to create a static site, which will store documentation, written in GitLab Flavored Markdown. Which static site generator has the most full GitLab Flavored Markdown support?
Shalom Alecheim
  • 143
  • 1
  • 9
1
vote
0 answers

Advice on personal project involving external API

I would like to use Propublica's Congress API in a personal project and I am looking for some direction. They have a 5000 request/day limit, and I asked them if I would be able to store their data in a database, and then send out to clients on a…
D T
  • 93
  • 1
  • 4
1
vote
1 answer

Nikola Table of Contents in Markdown format

I've installed Nikola (https://getnikola.com/) and have created a markdown file which gets displayed as a post successfully. In my conf.py my markdown extensions look like this after install. MARKDOWN_EXTENSIONS = ['markdown.extensions.fenced_code',…
1
vote
2 answers

Get Latest Post To Show on Home Page with Eleventy

I'm diving into the static site generators and trying to build a blog out using the basic eleventy blog: https://github.com/11ty/eleventy-base-blog So far, everything is good, but I'm wondering how to go about to get it to show the latest post on…
ultraloveninja
  • 1,969
  • 5
  • 27
  • 56
1
vote
1 answer

How to add a favicon to a website built with the Publish static site generator?

It looks like the Publish static site generator usually picks up static assets from the Resources directory when I run the generator. I've added a favicon.ico file to this directory, but it isn't copied to the default Output directory. There is a…
Max Desiatov
  • 5,087
  • 3
  • 48
  • 56
0
votes
0 answers

Zola static site generator and localization (l10n)

The problem I'm new to Zola and its templating engine Tera, and I'm struggling with making my own Zola theme easily localizable, even providing some out-of-the-box translations for e.g. English and German. Zolas's fluent integration is not there yet…
tweitzel
  • 333
  • 3
  • 10
0
votes
0 answers

SSG is not creating in Next.js 13.4

In Nextjs 13.4 I am haveing a page portfolio inside this page there is a dynamic page [id] in portfolio page, icons and title of porfolio is shown, clicking in a single portfolio it will go to portfolio/[id]. all the porfolios are stored in a array…
0
votes
0 answers

How to include an admin area in a static site blog

I had built a simple hugo blog for my mother, and hosted it with a Forestry.io + Github + Netlify combo. Forestry provided a nice wysiwyg editor to write her blogs, and netlify hooks would generate static site and update the site. Now that forestry…
Abhinav Kulshreshtha
  • 2,147
  • 1
  • 23
  • 38
0
votes
0 answers

NextJS 13 revalidate ISR on-demand not working in production (self hosted)

I have two problems with NextJS, both are connected I believe. both work fine on my local Windows machine, but not on the production server (Digital Ocean droplet Nginx + NextJS) res.revalidate('/blog/post-1') returns Error: Invalid response 404 I…
0
votes
0 answers

Grouping Markdown elements based on a delimiter and custom tokenizer in MarkedJS

I am trying to build a Static site Generator, and want to extend the markdown with bit of my own syntax using my own syntax. This is the Markdown > section # Section Title1 This is a sample markdown text ### Title This is content of the section >…