static-site Questions

18

Solved

I'm trying to add a favicon to a Next.js static site without much luck. I've tried customising the document with components from 'next/document' https://nextjs.org/docs/#custom-document A straigh...
Attaway asked 20/5, 2019 at 0:15

3

Solved

We are having issues trying to make working a SPA with a client router (react router). We are using the concept of have a DOMAIN -> CDN (CloudFront) -> S3 for serving our static files. We ha...
Timaru asked 3/12, 2019 at 15:33

4

I'm developing an encyclopedia-type site, of sorts. Essentially the site contains pages for words, definitions, concepts, and blog posts, and I intend to add a new page/post every week or so. I cur...
Genip asked 23/11, 2019 at 3:2

2

I have written a shortcode to create a bootstrap dismissable alert box. Below is my shortcode called as layouts/shortcodes/message.html. <div class="alert alert-{{.Get 0}} alert-dismissibl...
Footlambert asked 31/7, 2020 at 20:22

4

Solved

I have currently created a pages/404.vue file, then, in my server settings, I redirect any non existent url to /404.html (the generated page). Apart me having to declare the file extension (it giv...
Braque asked 18/2, 2020 at 15:56

6

Solved

I am getting this error "Error: getStaticPaths is required for dynamic SSG pages and is missing for 'xxx'" when I try to create my page in NextJS. I don't want to generate any static page...
Journalize asked 18/1, 2021 at 22:57

3

Solved

I have succesfully set up a static website on Azure Blob storage using the $web container as advised within the Microsoft documentation. In addition, I have defined index.html for both the 'Index D...

3

Solved

I'm new to Django, and I'm pretty sure I've read or heard about a way to do this, but I can't find it anywhere. Rather than sending the rendered output from a template to a browser, I want to cre...
Tierratiersten asked 4/3, 2014 at 3:3

2

Solved

I have a repo that has the backend and frontend (create-react-app) in two separate folders. For the build command, I have something like cd frontend && npm run build and for the publish dir...
Redhead asked 16/5, 2018 at 7:37

4

Solved

I'm using kramdown with Jekyll on GitHub Pages. I have a piece of markdown that I want to use twice, and don't want to maintain two versions of it. How can I include this in other markdown files? ...
Melli asked 31/1, 2017 at 20:11

5

When I use the command hugo, it generates the index.html in the Public folder. When I open index.html, the site load like this: But when I use the hugo serve command locally, it generates the link...
Aldercy asked 18/3, 2019 at 22:5

4

Solved

I am pretty much familiar with the React.js but new to Gatsby. I want to detect the previous page URL in Gatsby?
Gamboge asked 1/3, 2019 at 9:53

3

Solved

When using NextJS to build a static site, I would like the getInitialProps method to fire only during the build step and not on the client. In the build step, NextJS runs the getInitialProps metho...
Duomo asked 11/9, 2019 at 23:0

3

I have an ALB that currently routes traffic to multiple urls. I'd like to be able to route traffic to a Static S3 site in the event that we need to perform maintenance. We would then display a stat...

2

I am currently working on a 11ty project and really like it. But I have a problem with the links when I deploy the output. I'd like to deploy it to 2 different locations on separate servers. One of...
Larva asked 6/8, 2019 at 6:59

1

I have followed the instructions that Amazon has provided for website hosting using s3 buckets here. I have created two S3 buckets, one named MyWebsite.com and a second one named www.MyWebsite.com...

1

Solved

I have a static site that I am deploying to s3 and then using CloudFront to distribute to users. After I build the site, I want to push the new build to s3. I found 2 approaches to do that. ...
Mephistopheles asked 7/11, 2020 at 13:18

2

Solved

I've set up an example static website on Amazon S3 and I added a custom folder to it with file inside: custom-folder/index.html, but I'm getting Access Denied error when trying to access url /custo...
Harkey asked 31/12, 2017 at 9:25

3

Solved

Given the following code: $('img').mouseenter(function(){ //... }).mouseleave(function(){ //... }); I'd like it to be included in my articles. I'd like to avoid editing the theme if possible so ...
Lettering asked 16/10, 2015 at 5:33

2

I have deployed Angular 7 app to Azure Storage Static Website. Angular app makes calls to .NET Core API which is deployed to Azure App Service. Is it possible to configure URL rewrite (reverse pr...

2

Solved

I rather like the default Pelican theme notmyidea. It serves my purposes nicely. However, in order to implement the Python-Markdown admonishments extension, I need to add a few css rules to the te...
Anschluss asked 4/1, 2019 at 21:19

5

I want to build a simple site with MVC but then render the "pages" and corresponding "assets" (js, css, images, etc) to what one might call a "static site". In other words, I don't want to deploy ...
Sandell asked 11/6, 2012 at 4:15

1

Solved

What do you want exactly? I have a website in Hugo. However I have a peculiar situation. Scientists and Electrical Engineers and others may have specific needs. For Eg: Having a single page that sh...
Regiment asked 10/1, 2020 at 9:22

2

Solved

The error I am getting is that webpack is unable to recognize export as a keyword. I have updated my .babelrc and install the necessary dependencies. I am sure it has something to do with it not un...
Capture asked 1/1, 2020 at 23:14

5

Solved

In pelican, by default, blog articles are listed on the index.html file. What I want instead is that I use a static page as my home page and put all the blog articles on a dedicated "Blog" page. ...
Pox asked 17/5, 2014 at 8:14

© 2022 - 2025 — McMap. All rights reserved.