Questions tagged [static-pages]

126 questions
1
vote
1 answer

How can I set a static page (high_voltage) as root in Rails?

I used gem high_voltage to get static pages and it worked, but now I want to define one of them as root. What should I write in Routes.rb since I don't have a controller?
Edi Junior
  • 33
  • 8
1
vote
1 answer

Wrong path in nginx to static page

Although I have the application in django, I want to set up a static page. Using nginx. But I get an error: [alert] 100983#0: *439266 "/path_to_page_on_server/press_page.htmlindex.html" is not a directory, Here is my url: url(r'^press/',…
user9192656
  • 549
  • 3
  • 16
1
vote
1 answer

Hide/Mask API keys or sensible data in react static firebase hosted app

I have a webpage hosted in firebase static hosting. I want to connect it to a firebase database, but don't know how to secure my api keys. Is it necessary to make an oauth2 auth or something like that?
1
vote
2 answers

how to use route to view static apidoc page with laravel

I am currently using http://apidocjs.com/ as my laravel apidoc because I am just used to it before. to view the apidoc, each time I have to drag the index.html into the browser which is quite annoying. Is it possible to make it into a static page so…
Tsuna
  • 2,098
  • 6
  • 24
  • 46
1
vote
2 answers

HTML CSS static site pages display at different sizes

I am relative new, have built some static web pages but not an expert. I apologize if this has been answered else where, I am not sure what the error I am encountering would be called and have tried to search for an answer already and have not been…
Teo Herman
  • 43
  • 5
1
vote
0 answers

Nuxtjs pre rendered in combination with spa

In nuxt.js I want to serve first pages that you get with "nuxt generate", and after it's ready to run spa way of functioning. I see it's possible(VuePress did it), my question is, is that possible with nuxt and how?
OunknownO
  • 1,186
  • 3
  • 21
  • 41
1
vote
1 answer

October CMS Static Pages plugin - hide / show pages in the backend based on user roles?

How can I hide some static pages based on the user's role? I defined the role of users with the name "blabla". Now I want to hide all the pages from these users, except for the page "blabla" in the "Static Pages" backend. How can i do this? sorry…
1
vote
1 answer

Tool for creating a static page showing folder structure apache-like (for use in GitLab)

I have some files stored in a web server, which serves the files using apache like this: Now, I'm planning to move all these folders to a GitLab repository, the problem is that GitLab is slow (please do not offer to use GitHub, I have certainly…
1
vote
1 answer

rails routes link_to specific controller action

For a simple quiz app I'm trying to connect a couple of static pages, but since I'm new to Ruby on Rails I'm having trouble with how to correctly define my routes. I have a static page pages/user_quiz_start with this link that is supposed to send…
megahra
  • 295
  • 2
  • 19
1
vote
1 answer

Middleman: choosing information from data files in frontmatter

I am using Middleman static page generator and I would like to pull information from data files based on selection made in frontmatter. Example I have data file located at data/cta.yaml with different variants of Call-To-Action text that can be…
Rafal
  • 864
  • 10
  • 21
1
vote
0 answers

How to set OctoberCMS permissions to allow editing Content, but not StaticPages?

I have a problem with setting permissions for a backend user in OctoberCMS. We have built a website for a client, using the StaticPages plugin among others. Now I want to give a certain backend user (the client) the permission to edit CMS content…
1
vote
0 answers

How to define a function in a HighVoltage static pages controller for show action?

I use HighVoltage for static pages. I have: get "/filter/:city" => 'pages#show', as: :page, format: false root to: 'pages#show', id: 'home', :defaults => { :city => "Bolu" } in the routes.rb. I have a PagesController: class PagesController <…
DR_
  • 174
  • 1
  • 2
  • 14
1
vote
0 answers

Static landing page refers to my angularjs app

I'm trying to create a static landing page (for seo) which will refer to my angualrjs admin pages when users log in (the login screen & registration is part of the angular side). But the redirect is not working, I can't see the angular pages. I've…
1
vote
1 answer

Hartl Tutorial 3.1: 500 Runtime Error when navigating to 'home' static page

I'm extremely new to coding in general - so be gentle. I'm on Chapter 3, 3.1, in the very end after creating the static_pages, home and help, by entering $ rails generate controller StaticPages home help, I cannot then navigate to the page without…
Fixnpixels
  • 23
  • 6
1
vote
1 answer

RoR - Adding form over a static page

Can someone tell me how do I add a simple form in my rails app? I created a form on a separate page and it works fine, but how do I implement it on my static page? My app/views/contact/_form.html.haml .container %h1 Contact = simple_form_for…
Hassan Yousuf
  • 751
  • 6
  • 12
  • 24
1 2
3
8 9