Questions tagged [static-site]

Static sites are websites that have no dynamic components, e.g. databases or server-side scripting languages. A number of static site generators exist in a variety of languages, such as Jekyll, Wintersmith, and Pelican.

523 questions
0
votes
1 answer

Hexo: How to Query DB in a plugin?

I'm trying to create a plugin for Hexo and it's in the scripts folder. I'm trying to write tests for it as a develop it with jasmine-node. How do I make db queries in my spec file? For instance, I don't have the site variable available and writing…
bill-lamin
  • 343
  • 1
  • 3
  • 19
0
votes
1 answer

Working locally on HTML Static site source files without .htm file name extensions

In (some) cloud based static web sites the headers can be set so that the url www.exmple.com/contact can be served from the file named contact and not contact.htm or contact.html. As long as the headers claim the file's content is text/html the…
Techmag
  • 1,383
  • 13
  • 24
0
votes
1 answer

Local static server without trailing slash

What's the simplest way to run a static server without trailing slashes locally? Ideally, I'd simply like to only use tools that come installed with the latest version of OS X. Unfortunately, python -m SimpleHTTPServer 8000 and ruby -run -ehttpd .…
ma11hew28
  • 121,420
  • 116
  • 450
  • 651
0
votes
1 answer

Producing a searchable portable static HTML site from Confluence XML or HTML

I want to convert documentation from Confluence into a static HTML site. I want the html to be searchable and portable. People need to be able to use it on devices that are not connected to the internet. Ideally, the static html would be responsive…
seb
  • 2,251
  • 9
  • 30
  • 44
0
votes
3 answers

posts per page on a static page + pagination

Thanks for taking the time to check this out. I've spend a couple days going over this. Lots of time on wp.org but i'm just not getting it. Should be an easy fix I'm sure. No matter what i try, i can't limit the number of posts per page nor get…
D. Wall
  • 77
  • 1
  • 1
  • 16
0
votes
1 answer

Dynamic title AND content in Jekyll

I have a page whose structure is somewhat like this --- layout: contents title: contents description: Contents of the posts. permalink: contents/ ---
    {% for post in site.posts %} {% if post.categories…
Diffy
  • 2,339
  • 3
  • 25
  • 47
0
votes
1 answer

A good development workflow for static sites with one or two PHP files?

so I'm still learning a lot about best practices and local development workflows when working on my web projects. At the moment, when I develop a static site locally I tend to use Grunt + Bower + some static site generator to start up a local server…
Leon Aves
  • 739
  • 1
  • 7
  • 24
0
votes
2 answers

Duplicate items appearing in shopping cart

I'm trying to basically build a shopping cart on a static site. Items are displayed on a table. I built this shopping cart from scratch, no external jQuery shopping cart libraries used. There's one feature I can't seem to get to work: When a user…
Fares K. A.
  • 1,273
  • 5
  • 24
  • 47
0
votes
4 answers

A static blog generator with multiple image directories

Question: what software should I use to achieve a static site generator like described below? I'm looking for a static blog generator, which... generates static blogs, of course :). However I need something more, like a nice set of themes to choose…
Szymon Lipiński
  • 27,098
  • 17
  • 75
  • 77
0
votes
1 answer

How to serve a local website (i.e. file://) from OS X to mobile devices?

As I edit some html/css files, I'd like to see not just how they appear on a mac (by pointing to file://) but also how they appear on a couple of mobile devices. How do I launch from the OS X terminal a web server and point it to the root of the…
Calaf
  • 10,113
  • 15
  • 57
  • 120
0
votes
2 answers

jQuery – Loading random images from directory

jQuery noob here, so apologies for the question! I'm writing up a static site for a client and they've given me a rather interesting challenge I'm not sure how to approach. They'd like to have a button on a page that takes random images from a…
Fares K. A.
  • 1,273
  • 5
  • 24
  • 47
0
votes
1 answer

middleman blog at /blog with already made static site?

I already have a site up that's using middleman (template=html), but now I want to add a blog to that site, so that when you go to example.com you see the homepage (not blog), and when you go to example.com/blog you see the blog. This seems like it…
agentem
  • 651
  • 2
  • 8
  • 17
0
votes
0 answers

Capture a copy of a website and then serve it

I'm aware of HTTRack, but it doesn't fit my need: I wonder if there's a program I can run to capture a complete copy of a dynamic site such that I can then serve it on a static server? I know javascript-heavy pages could be complicated to do that…
themirror
  • 9,963
  • 7
  • 46
  • 79
0
votes
1 answer

Generate index.html files in different folders to create extensionless urls

I am using gulp to generate static *.html files. Currently these are all located in the root folder. For example: |- about.html |- contact.html |- faq.html I would like to host these on a static host, but with extensionless urls. To manage this, I…
David Cumps
  • 575
  • 4
  • 18
0
votes
1 answer

Filename length limit in mixture

c_program_to_find_fibonacci_series_using_loop.html tried this filename and mixture giving page not found error when I removed some letters from it then it shows the page. I think this is not limit for filenames. atleast 255 letters can be used. Is…
akshay bhange
  • 2,320
  • 2
  • 28
  • 46