From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Randby Subject: Re: org to static site? Date: Mon, 5 Jun 2017 12:54:43 -0400 Message-ID: References: <3bf40b12-954f-4d17-9436-efd8e12a7d50@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57660) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHvHL-0006C9-2d for emacs-orgmode@gnu.org; Mon, 05 Jun 2017 12:54:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dHvHJ-0005By-RZ for emacs-orgmode@gnu.org; Mon, 05 Jun 2017 12:54:55 -0400 Received: from mail-it0-x242.google.com ([2607:f8b0:4001:c0b::242]:36047) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dHvHJ-0005Bs-Mf for emacs-orgmode@gnu.org; Mon, 05 Jun 2017 12:54:53 -0400 Received: by mail-it0-x242.google.com with SMTP id i206so23179944ita.3 for ; Mon, 05 Jun 2017 09:54:53 -0700 (PDT) Received: from ?IPv6:2605:a000:121e:108:dc92:f6fe:7e23:2823? ([2605:a000:121e:108:dc92:f6fe:7e23:2823]) by smtp.gmail.com with ESMTPSA id f19sm14060374ioe.1.2017.06.05.09.54.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Jun 2017 09:54:51 -0700 (PDT) In-Reply-To: Content-Language: en-US List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org On 06/05/2017 01:59 AM, John Ankarström wrote: > On June 5, 2017 1:26:15 AM GMT+07:00, Scott Randby wrote: >> >> Maybe this is too primitive, but I keep all the content in one Org >> file >> and export the text under each top-level headline as a single HTML >> page. >> I use some simple macros if I need to export more than one top-level >> headline. I keep the CSS code in a separate file. Keeping all the >> content in one file makes it really easy to add new pages and edit old >> pages. I use a preamble for site navigation. >> >> Scott Randby > > Sounds interesting. > > Do you have any way to generate an index page for your blog? I have an idea about how to generate an index page, but I haven't had time to work out the details. Instead, since it isn't much work, I will add entries by hand to an index page. I don't have an index page right now because it isn't useful for my students. Actually, my site isn't a blog, it is for the classes I teach. I post class notes, class audio, and other items for each class. What I like about using my own site for teaching is that students don't need to log into a learning management system to get the lessons. I've also designed the site so that it works well on mobile devices (which is why the design is very simple). Below is a link to the site I used for one of my courses last semester and a link to a page containing some templates and notes for things I didn't use last semester but might use in the future. I don't have my source code posted anywhere yet, but I'm thinking about setting up a Git repository somewhere as soon as I get a better grasp of Git. Well, I'm also not sure if anyone else cares about such simple code. http://srandby.org/2017-1/356-001/home.html http://srandby.org/lesson-examples/lessons.html Org is amazing. I don't know elisp, I'm certainly not an advanced user of Emacs, and I don't know how to do that really sophisticated Org stuff that others talk about on this list, but I can make a functional web site with Org without trouble by using the basic export functions. Adding new pages, editing old pages, and updating is trivial. I know a lot of people who use Markdown and static site generators, but Org is much better for my purposes. And I can use it for many other things too. Sorry for this unnecessary rant, but I just love Org. Scott > > - John > >