Questions tagged [static-pages]

126 questions
9
votes
1 answer

Is it possible to schedule posts with Jekyll?

I suspect that one of the limitations of running a static site is that the administrator has to be at the helm when he wants a post to be published. I'm looking for that suspicion to be validated. Is there a method I haven't discovered?
Corey
  • 6,612
  • 4
  • 20
  • 28
8
votes
1 answer

Can I redirect a local static html page to an online resource?

I'm writing a small application extension and the only way to include some help is by a local, static html page (like c:\program files\help.htm). I can't use PHP for it. Is there any way to redirect such a page to an online page?
RubenGeert
  • 2,902
  • 6
  • 32
  • 50
6
votes
1 answer

Access the queried data from Vue component using Gridsome

I am new to Gridsome as well as to GraphQL. However I'm not using the GraphQL for this project. I just have a Gridsome project setup and some JSON data and I'm trying to define it globally so that I can access it from all my Vue pages and…
Subhan Asadli
  • 330
  • 2
  • 17
5
votes
3 answers

Routing in static html landing page

I have a small portfolio landing page based on js/css/html. No frameworks/CMS, just pure static html. Entry point is index.html file with content on English language. I want to use translations on my site: index.ru.html, index.ua.html, but I don't…
Sogl
  • 782
  • 3
  • 9
  • 29
5
votes
6 answers

Making static pages in Symfony 1

Im new to symfony and have some simple questions. I am trying to understand the module system, but I dont understand how I create the actual homepage or other pages that are not based off of a model from the db. For example, the simple about page…
Danny
  • 4,724
  • 6
  • 42
  • 55
4
votes
2 answers

In October CMS, how can I make an image editable in a Static Page?

I'd like to set up a generic marketing template using the October CMS "Static Pages" plug-in. The intention is to allow my clients to create their own marketing pages. Let's assume that my layout contains HTML similar to this:
clone45
  • 8,952
  • 6
  • 35
  • 43
4
votes
1 answer

How to return a HTML page from struts.xml itself without going to an action?

If a request is made to a HTML page, how to return it directly from struts.xml without going to an action?
lupchiazoem
  • 8,026
  • 6
  • 36
  • 42
3
votes
2 answers

How can I route HTTP requests through a python script?

I've thoroughly searched for the answer for my question, but I don't think I know the correct terminology to make my searches effective. Anyway, I'm looking to set up my web server to route a request for a static page through a Python "PageBuilder"…
weberc2
  • 7,423
  • 4
  • 41
  • 57
3
votes
2 answers

make nodejs manage to serve static angular pages after deploy

Newbie to nodejs. I have a an API folder - whenever the server get an API request - it should execute the function binded to that route. However - whenever there is a non-API request, I want the nodejs server serve the static files so that the…
Guy E
  • 1,775
  • 2
  • 27
  • 55
3
votes
5 answers

Rails 3 can't find route to static page

Am working my way thru Ruby on Rails Tutorial: Learn Rails by Example. I'm in the section entitled Mostly Static Pages. I get an error after I create an HTML page in the public directory which is called public/hello.html and should appear as in…
Jeff Y.
  • 41
  • 2
3
votes
1 answer

Justify text in markdowns jekyll

I'm using Jekyll. On markdowns I want to justify text, I can do it using CSS but i don't want to include HTML inside markdowns, is any possible way to justify text, any Jekyll code or something like that ?
user5308956
3
votes
1 answer

Two versions of each blog post in Jekyll

I need two versions of each of my posts in a very simple Jekyll setup: The public facing version and a barebones version with branding specifically for embedding. I have one layout for each type: post.html post_embed.html I could accomplish this…
Chris Wilson
  • 6,599
  • 8
  • 35
  • 71
2
votes
0 answers

How to use a nonce for external scripts when exporting Next.js pages

I’ve got an issue with loading an external script to use Google Analytics (GA) with my site. The GA script gives the following CSP error: Refused to execute inline script because it violates the following Content Security Policy directive:…
2
votes
1 answer

GitHub credential authentication to push files on a repo

This question is some kind of follow up of this one: Authorization when creating a file in Javascript in a GitHub repo using API My goal is to create a static page with GitHub Pages with a simple button. When a user presses this button, a new file…
Pich
  • 61
  • 9
2
votes
0 answers

route to statically generated page based on url with NextJS

I'm building an app where different users can register and get a frontpage. I then assign each user a subdomain (say userA.mydomain.com) and would like to display the user's frontpage when we access his subdomain. I already got it working that the…
Gumbee
  • 53
  • 1
  • 5
1
2 3
8 9