Questions tagged [static-pages]
126 questions
2
votes
1 answer
How to handle `unsafe-eval` using bitbucket static sites
I coded a static page using gatsby and deployed it. :80 is no problem, also when i hosted it on a github static page the console didnt spammed errors.
For each i am using in my project, i get this chrome-console-error on my static…

Paulquappe
- 144
- 2
- 6
- 15
2
votes
1 answer
Cookies for static site: Cookie will be soon rejected(SameSite) issue
I am creating a static website (to be published on github pages) and want to use cookies to store website state for the user. But I get the following error while setting cookies:
Cookie “buttonState” will be soon rejected because it has the…

Saurav Shah
- 81
- 1
- 7
2
votes
1 answer
Cannot excecute make devserver command
I am new to pelican and when I try execute the following command it, fails.
make devserver
It gives me this error
make: *** No rule to make target `devserver'. Stop.
I am new to pelican and building blogs. Please help me here.

Karthik Katragadda
- 176
- 1
- 2
- 11
2
votes
1 answer
Bolt CMS Static html page gets 404
recently i have started to use Bolt CMS. i have made a theme with Angular JS but i wanted to use some static pages. as they mentioned in their Doc https://docs.bolt.cm/3.0/templates/templates-routes#automatic-template-selection i have added my link…

5cel
- 64
- 5
2
votes
2 answers
Node.js cannot GET static files every third refresh
I have a static page set up to point to my images directory that is being pulled by a website on a separate server. For some reason, when I go directly to the image URL the image loads up (Chrome) and if I refresh the page it gives me an error like…

Peter Poliwoda
- 563
- 2
- 7
- 19
2
votes
2 answers
Use Hugo to render html files
I am using Hugo http://hugo.spf13.com/overview/introduction to render a folder with html/css/js files as localhost in my laptop.
I have html files in /content and all js/css/img files in /static folder
This is content in config.toml
baseurl =…

HP.
- 19,226
- 53
- 154
- 253
2
votes
3 answers
database structure for static pages
please help me on this one:)
Most of the time I am creating static pages like Contact Us, About Us, FAQs etc
If I want to store some dynamic items in the page, how will my table look like?
Let's say for the FAQ page, I am to store the question and…

yretuta
- 7,963
- 17
- 80
- 151
2
votes
1 answer
rails - Adding static html pages without controller support
I have a problem.
Well, I've got an website with some sitemap and I want to keep active links to several html pages due to their high ranking in Google. Sample page has the address: http://domain.com/my_important_page.html - this is a static page in…

justi
- 3,887
- 2
- 18
- 24
2
votes
1 answer
Minifying html with Docpad
Is there a way to render out minified html with Docpad? For reasons I'm too lazy to explain, grunt plugins are not a viable solution for me.

SirDemon
- 1,758
- 15
- 24
1
vote
3 answers
Banner Image Zooms in on Mobile
I have a static html page https://www.poggenamp.com with a mobile version. The mobile manner appears zoomed in, and I am not sure how to fix it. Checking through Chrome's Inspector as well as my iPhone 13 Pro. I have added my CSS code that is…

Param
- 13
- 4
1
vote
0 answers
How to set nuxt static page rendering with bootstrap and scss
I am currently merging a project from server-side rendering to static page rendering. According to the docs since nuxt 2.13 You can set the target to static inside of nuxt.config and run nuxt generate. This is correctly generating an html file for…

Fabricio Policarpo
- 53
- 2
- 9
1
vote
0 answers
Display custom post type to static page
I have a custom post type "cs_portfolio" for my project. What I want to achieve is to be able the user to choose a specific page to display all the data of "cs_portfolio".
Example of this is the blog post when you set in Settings > Reading the…

johnC
- 11
- 2
1
vote
0 answers
Display Different Content from a Post In Different Pages (The Post and the Index Page)
Let's say I have a MarkDown file which is a post in a Jekyll static web site. It resides in _posts and it is named 2020-05-16-my-post.md. Assume its content is given by:
---
title: 'My Post'
date: 2020-05-16
author: My Name
layout: post
class: …

Royi
- 4,640
- 6
- 46
- 64
1
vote
1 answer
Rails High_Voltage error: undefined method 'page_path' for #<#
I used to link to static pages with a dedicated controller / view for each of them but, of course, this is odd.
I just installed the High_Voltage gem in my Rails (Rails 5.1.7 on Debian) app in order to create simpler, easily readable links.
I…

Wallace and Gromit
- 49
- 2
1
vote
2 answers
Wordpress/PHP create a static copy of the page
I need to make a static page from the dynamic one with all assets downloaded and all the links converted to local ones and download it in some tmp folder. Like when you press Ctrl+S in a browser. I tried using wget with shell_exec:
shell_exec("wget…

Dmytro Duplyka
- 332
- 2
- 14