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
6
votes
4 answers

jekyll to watch haml and sass

I already had a project with .haml and .scss files in various folders. I followed this guide here http://winstonyw.com/2013/02/24/jekyll_haml_sass_and_github_pages/ to create _plugins/haml.rb and _plugins/sass.rb I moved all my .scss files into…
HP.
  • 19,226
  • 53
  • 154
  • 253
6
votes
1 answer

Error with SCSS generation in Jekyll 2.0

I have my project laid out like so: -Project -css -import.scss -_sass/ main.scss The contents of import.scss are: --- --- @import "main.scss"; What I expected to happen was for main.scss to be imported into import.scss, then,…
6
votes
5 answers

Dump my MVC site to static files

I want to build a simple site with MVC but then render the "pages" and corresponding "assets" (js, css, images, etc) to what one might call a "static site". In other words, I don't want to deploy to an IIS server that supports MVC. I simply want to…
Matt Kocaj
  • 11,278
  • 6
  • 51
  • 79
5
votes
1 answer

NextJS advice for SSG/SSR and Google Analytics/cookies

I have a NextJS site which is statically generated at build (SSG). There are two things I need to implement next Google Analytics GDPR compliant opt-in cookie options The first one is easy enough to do, however i'm struggling with making this GDPR…
5
votes
0 answers

using jquery and sticky-kit in gatsby/react

i found a post here showing me how to use jquery with gatsby and that works fine. Now my main problem is using sticky kit, a jquery plugin and i am getting the error "$(...).stick_in_parent is not a function", i have checked all possible…
user13468285
5
votes
1 answer

Jekyll collection with subdirectories and own index.html

Hello and thank you in advance for any help/suggestions regarding my issue, Background information: I have been working with the Jekyll static-site generator, The theme I am using has one blog feature being posts this is in use already. The existing…
5
votes
1 answer

Implementing "Login with GitHub" on a GitHub Pages static site

I'm trying to write a website that can be hosted a static site on GitHub Pages, that will support a "Login with GitHub" option. The user credentials will then be used to access and contribute to the repository that the GitHub Pages website is based…
5
votes
1 answer

How to use Next.js Automatic Static Site Optimization and still export for Netlify?

I have been working on implementing some of the updates from Next 9.3. I have been moving from getInitialProps to getServerSideProps and noticed that my exportPathMap became unhappy with these pages becoming dynamic. Everything works fine running…
camiblanch
  • 3,866
  • 2
  • 19
  • 31
5
votes
0 answers

Setting up static website project with TypeScript in Visual Studio

I can find only samples on how to set up a TypeScript project in conjuction with some server technology (ASP.NET Core for instance). I want to use Visual Studio in order to be able to write my client-side code in TypeScript which then gets…
David
  • 2,426
  • 3
  • 24
  • 36
5
votes
4 answers

How to add search functionality to a static website?

I'm developing an encyclopedia-type site, of sorts. Essentially the site contains pages for words, definitions, concepts, and blog posts, and I intend to add a new page/post every week or so. I currently have about 40 HTML pages for each post.…
sortarobin
  • 71
  • 2
  • 4
5
votes
1 answer

Communicate with devices on local network using client-side Javascript

I'm trying to build a website that allows you to transfer files to devices connected on your local network. This website is static, and will be hosted on GitHub pages. Is it possible to use Javascript to communicate with (i.e. transfer files/text)…
Lumin
  • 373
  • 6
  • 21
5
votes
0 answers

How can I debug nextjs export

I have a thousand-pages site built with nextjs and mysql. When I generate static pages using the next export command I sometimes get the Hangup warning. There isn't any useful information about what is going wrong. Each page requests data from…
Sergey
  • 5,396
  • 3
  • 26
  • 38
5
votes
2 answers

Add CSS rules to Pelican without creating a theme

I rather like the default Pelican theme notmyidea. It serves my purposes nicely. However, in order to implement the Python-Markdown admonishments extension, I need to add a few css rules to the template. Nothing I can find in the documentation (or…
mas
  • 1,155
  • 1
  • 11
  • 28
5
votes
0 answers

Is it possible to pre-render some, but not all, Vue JS components?

I'm relatively new to Vue JS but I've wanted to build something with it for some time. What I want to do is build an entire site as Vue JS components, have most of the site pre-rendered as static HTML, JS, and CSS, but keep a couple components as…
MJR
  • 91
  • 2
  • 10
5
votes
1 answer

Repeat string multiple times in Jekyll

How do you repeat string multiple times in Jekyll? For eg: in Python, you can do "hello" * 5 to get 'hellohellohellohellohello'. In Jekyll is there an easier way of doing the same thing than this. {% for i in (1..5) %} Hello {% endfor…
Ishan
  • 3,931
  • 11
  • 37
  • 59