What are the reasons for using a static website? If you’re curious, here’s a friendly lesson for exploring GitHub. GitHub is a visual way to use git, a system for versioning: keeping track of changes to computer files (including code and text documents) over time (as explained above). GitHub Pages is a free place to store the files that run a website and host that website for people to visit (it only works for particular types of website, like basic HTML sites or Jekyll sites, and does not host databases). Read more about Jekyll here or static site generators here. helps you combine and track different people’s work), but it’s also useful when writing or running a website on your own. Versioning is great when working with a team (e.g. “How did the original About page describe this project?”). two students are writing a blog post together, and you want to combine their two versions), or when you want compare files to look for differences among them (e.g. Versioning is especially helpful when you need to merge two files (e.g. Jekyll isn’t actually “running” the live website rather, Jekyll is a “static site generator”: it helps you create the static site files, which you then host just as you would any other HTML website.īecause static sites are really just text files (no database to complicate matters), you can easily version a static site-that is, use a tool to keep track of the different versions of the site over time by tracking how the text files that compose the site have been altered. Jekyll is software that creates websites. Note that when someone refers to a “Jekyll website”, they really mean a static (plain HTML) website that has been created using Jekyll. Jekyll doesn’t need to do anything like querying a database and creating a new HTML page (or filling in a partial one) when you visit a webpage it’s already got the HTML pages fully formed, and it just updates them when/if they ever change. a file for each blog post on the site) to generate full HTML pages for website visitors to see. These templates are combined with other files with specific information (e.g. Jekyll takes page templates-those things like main menus and footers that you’d like shared across all the web pages on your site, where manually writing the HTML to include them on every webpage would be time-consuming. Jekyll is software that helps you “generate” or create a static website (you may see Jekyll described as a “static site generator”). The HTML pages that make up a static site can be completely written by hand, or you can offload some of this work using something like Jekyll. Static websites, on the other hand, do not use a database to store information instead, all information to be displayed on each webpage is already contained in an HTML file for that webpage. When you search for a book on, for example, the search results page you are shown didn’t already exist as a full HTML page instead, has a template for search results page that includes things all results pages share (like the main menu and Amazon logo), but it queries the database to insert the results of that search you initiated into that template. See the “Read more” section below if you’d like to know even more about these terms! Dynamic websites, static websites, & Jekyllĭynamic websites, such as those created and managed by a content management system such as Drupal, WordPress, and Omeka, pull information from a database to fill in the content on a webpage. This tutorial is built on the official Jekyll Documentation written by the Jekyll community.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |