Questions tagged [static-pages]
126 questions
0
votes
1 answer
Add Links and Excerpts to other Posts on my Blog in the Bottom of each Post
I'd like to add to the bottom of my post few (2-4) links to other posts. At first I thought they should be correlated but I guess random ones work as well.
I'm using Jekyll and am looking for a plugin or an easy way to just reference other…

peter
- 14,348
- 9
- 62
- 96
0
votes
0 answers
How to solve Tumblr image resizing on a static page?
I'm working on a Tumblr blog and I want to put big images in a static page called "about".
I found a lot of solutions for the image resizing but i didn't work with my issue, maybe because I'm not using images in photo posts but just on a static…

Davide Giorgetta
- 65
- 2
- 12
0
votes
1 answer
Background Color not changing bug
I cannot figure out where the bug is in this code. I'm trying to change the background color to anything using the following css:
body {
background-color: black;
padding: 0px;
margin:0px;
height: 1500px;
}
But its not changing…

Virge Assault
- 1,356
- 6
- 18
- 40
0
votes
2 answers
Hosting static website on Dropbox,Github,Heroku,Amazon S3 - Compare
I'm a rails developer. I'm looking to host my static website without paying monthly subscription.I'm expecting users between 50,000 - 100,000. Heroku provides 512mb free dyno and Amazon S3 gives 20000 get request for free.
Do you think hosting…

Ray.Rai
- 43
- 6
0
votes
2 answers
serve static views from subdirs using a single controller in rails 4
If have some static pages in a tree structure. The ones at the first level are served using static_pages_controller.rb and in my routes.rb I have :
get '/static_pages/news' , :to => 'static_pages#news' , :as => 'news'
get '/static_pages/index' ,…

Yios
- 133
- 1
- 8
0
votes
0 answers
how does the ApplicationController class work in Rails
In rails if you were to render static pages you would use a class like below:
class StaticPagesController < ApplicationController
def home
end
def about
end
end
how does the ApplicationController process these functions so as to produce a…

Zach Smith
- 8,458
- 13
- 59
- 133
0
votes
0 answers
How to incorporate static pages
I have an existing application to modify. The requirement is to add a few static HTML pages (like about us, terms of use etc) to the existing home page, which is a JSF page.
I did research and found out that, to deliver a JSF page, there needs to…

janenz00
- 3,315
- 5
- 28
- 37
0
votes
0 answers
Rails 4 - OSX Lion , cannot access my routed pages from iPhone via Bonjour
(Rails 4 / Ruby 2.0 / gem high_voltage (1.2.4) )
I am running fine my project in dev mode on my desktop having :
- my static xxxxx.html.erb page in /app/views/pages
my routes defined :
get 'home' => 'high_voltage/pages#show', :id =>…
user762579
0
votes
4 answers
Dynamic link to static link?
In stackoverflow, the page url is like
How to store post variables value
But when we use php to create web pages, its most likely has a url like
www,somewebsite.com/mypage?someid=123
And then the content is displayed.
I want to know how to convert
…

user2454340
- 1,210
- 2
- 12
- 15
0
votes
1 answer
Proper setup of custom theme for single page website + separate blog page
I am creating my first WordPress theme with a one-page parallax scrolling style.
I have created my entire website (statically) in the index.php file. It works fine if I set the Admin->Reading setting to 'Your Latest Posts'.
But now I am trying to…

JimmyJammed
- 9,598
- 19
- 79
- 146
0
votes
1 answer
Routing with static pages
I have a routing problem with my static pages. It worked fine and then I added a resource production and now I can't display my static pages. I don't know if this can be related. It shows me this error: ArgumentError in…

Elie Génard
- 1,673
- 3
- 21
- 34
0
votes
0 answers
URL is not persistent
I've created a static "thank you" page. But everytime I go to /thanks it forwards me to a URL like this one: /thanks#.UVQswKt-WyK
I've added this in my routes.rb:
match '/thanks', to: 'static_pages#thanks'
and the file in static pages is called…

Thomas Kuhlmann
- 325
- 5
- 13
0
votes
1 answer
C# VirtualPathProvider Static-Pages
I've got a virtual path provider (VPP) that serves simple aspx pages.
The problem lies when I introduce static references such as *.css, *.jpg files, etc ...
I noticed my VPP is capturing these requests. I don't want this to happen.
I want the…

downatone
- 1,936
- 2
- 23
- 30
0
votes
1 answer
Overwrite conflict app/controllers/static_pages_controller.rb?
I am trying to create a static page. I typed $ rails generate controller StaticPages home help --no-test-framework and got the output below.
conflict app/controllers/static_pages_controller.rb
Overwrite …

LearningHowToCode
- 125
- 1
- 2
- 8
0
votes
2 answers
Problems with large number of static pages in website
We have 2 million businesses in our database. My client wants to create 1 static page for each business so that the pages are indexed by Google. He wants each page to have the following URL structure:-
http://website/business-name/category/city/zip/…

Sparky
- 4,769
- 8
- 37
- 52