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.
Questions tagged [static-site-generation]
178 questions
0
votes
1 answer
Nuxt generate failing with self is not defined in a vue dist file
I'm preparing to deploy my first Static app from a Nuxt.js 2 project.
While the static routes are generated fine, my dynamic routes are not. Once I remembered they were hidden in my dropdown menu - duhh - I created a /generate page which renders all…

JeremyW
- 241
- 1
- 2
- 9
0
votes
0 answers
Next.js - pre-fetch data for big amount of dynamic pages
I have created really big project with page that have over 800,000 variants. In my current React project I just access the url parameter on www.mywebsite.com/my_page/:id and I use useEffect. Here is simplified example:
url=…

Borislav Stefanov
- 533
- 3
- 15
- 38
0
votes
1 answer
How to make a full width table with hugo/markdown?
I'm using the even theme in hugo with Markdown. What would be the best way to make a full width table in a post ?
Let's say we have the following content:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut…

Martin Gergov
- 1,556
- 4
- 20
- 29
0
votes
1 answer
How to add image to the article?
I realize that it should be something like this: {filename}path/to/file or {attach}path/to/file but how to specify path in the template
in order to render properly?

Alex
- 153
- 7
0
votes
1 answer
Does a JSP like static site generator exists outside the JVM?
i really like JSPs as template system and i'm looking for a static site generator that has JSP-like capabilities.
What i really find useful in JSP is that tag files are very powerful and flexible, for instance, you can define a "master" layout as a…

RRoman
- 741
- 9
- 19
0
votes
2 answers
How do I generate static HTML for my homepage from Create React App?
I have a CRA and want to have the first page generated statically to improve load time and SEO. The idea is to run a NodeJS script that renders the App document inside index.html.
Here is my code:
const { renderToString } =…

ulu
- 5,872
- 4
- 42
- 51
0
votes
1 answer
How to specify outputDir for my processed images in @11ty/eleventy-img?
I am trying to specify an output directory for my processed images that run through eleventy-img.
const Image = require("@11ty/eleventy-img");
(async () => {
let url = "./img/home/";
let stats = await Image(url, {
widths: [300],
…

justGoscha
- 24,085
- 15
- 50
- 61
0
votes
1 answer
How to store nuxtjs dynamically generated routes in vuex store
I'm trying to leverage nuxtjs SSG capabilities by creating a static web site where the pages content and navigation are fetched from an API.
I already found my way around on how to dynamically generate the routes by defining a module where I use the…

Bruno Tavares
- 450
- 1
- 4
- 18
0
votes
0 answers
Next.js, make POST request on button click (SSG)
I'm doing an ssg website, it doesn't have backend, but it does start to have some features that fetch some data from another server. I checked the SWR and it works, the issue is I need to make a post request on button click, and it gets me an…

Felix
- 55
- 9
-1
votes
0 answers
How to create a dedictaed search page for a static website with Algolia-based search?
I am supporting a static website that uses Algolia-based search (TypeSense). Search results are displayed in a dropdown menu beside the search bar. Site users would like to see a traditional dedicated search page with results.
I tried to search for…

Vladimir Markiev
- 263
- 1
- 13
-1
votes
0 answers
How to use SSG/Prerender in Vue3
The project uses vue3 + Vue Cli, only need to prerender home.vue to improve SEO, after searching a lot, still can't find a better solution.
It doesn't need SSG on whole website, so "Nuxt.js", "Vuepress" are not an option.
The project don't use vite,…

GC_Alison
- 1
- 1
-1
votes
1 answer
(ssg-wsg) Keep getting errors with CorpPass
I have assigned API access with Corp Pass but each time i log into ssg-wsg and enter my email i get the error - an error has occurred, please try again later.
Anyone else having these issues or know how to fix it?
Thanks,
Aidan

Aidan
- 1
-2
votes
1 answer
Static Site generator, mvc, laravel or plain includes... what to use
I am having some difficulties of finding the right tools.
Of course the main sentence is: "it depends..."
I am still building small company sites while using "includes" for nav, footer, contactform and so on,
but what would be a better approach? No…

beetlejays
- 13
- 3