diff options
-rw-r--r-- | _pages/about.txt | 24 | ||||
-rwxr-xr-x | build.py | 13 | ||||
-rw-r--r-- | design/sass/_writing_details.scss | 13 | ||||
-rw-r--r-- | design/templates/details/page.html | 4 |
4 files changed, 40 insertions, 14 deletions
diff --git a/_pages/about.txt b/_pages/about.txt index 86f343b..0443fe3 100644 --- a/_pages/about.txt +++ b/_pages/about.txt @@ -12,28 +12,34 @@ Luxagraf is written and published by Scott Gilbertson. Photo by [@lagsolo][twi] - +If you must have more details about me, or if you'd like to hire me, check out [scottgilbertson.net](http://www.scottgilbertson.net/) ##Acknowledgments -I don't have some super-hip magical publishing system. Luxagraf is created with a lot of tools loosely joined. Most of these tools are free software that you can use and modify as you see fit. Without these tools I wouldn't be able to do this -- many thanks to the people who created and maintain them. +I don't use a pre-packaged publishing system that you can go download and use yourself. Luxagraf is created primarily by hand, with a lot of tools loosely joined. Most of these tools are free software that you too can use and modify as you see fit. Without these amazing tools I wouldn't be able to do this -- many thanks to the people who created and maintain them. + +[GeoDjango framework][geo] -- Behind the scenes this handles a few things, like geographic queries and putting everything on a map. If you have any interest in working with geographic data, this is by far the best tool I've used. -[GeoDjango framework][geo] -- behind the scenes this handles a few things, like geographic queries and putting everything on a map. If you have any interest in working with geodata, this is hands down the best geodata tool I've ever used. +[Python][py] -- GeoDjango of course depends on Python, which in turn runs on my [Linux server](http://www.debian.org/) hosted by [Digital Ocean](https://www.digitalocean.com/). [Nginx](http://nginx.org/) serves the flat HTML files you're looking at here. -[Python][py] -- GeoDjango of course depends on Python, which in turn runs on my Linux server hosted by Digital Ocean. +[OpenStreetMap][osm] -- I use OpenStreetMap data for all the maps on this site. OpenStreetMap is like the Wikipedia of maps, except that it isn't wrong half the time. Whenever I feel skeptical about the so-called collective power of people on the internet, I remember OpenStreetMap and feel a little better. -[OpenStreetMap][osm] -- I use openstreet map data for all the maps on this site. OpenStreetMap is like the Wikipedia of maps, except that it isn't wrong half the time. Whenever I feel skeptical about the so-called collective power of people on the internet, I remember OpenStreetMap and feel a little better. +[Leaflet.js][leaf] -- This is the JavaScript Library that makes it really easy to load all the pretty maps you see on luxagraf. The map tiles themselves were developed by a company call ESRI and are credited with links on the various maps. -[Leaflet.js][leaf] -- This is the JavaScript Library that makes it really easy to load all the pretty maps you see on luxagraf. The map tiles themselves were developed by a company call ESRI. +[Vim][vim] -- The text editor I used to type up most things, including these words right now. -[Vim][vim] -- The editor I used to type up most things, including these words, right now. +The site validates as HTML5 and uses something the kids call responsive web design. I may or may not have written an entire [book on responsive web design](http://longhandpixels.net/books/responsive-web-design). -The site validates as HTML5 and uses something the kids call responsive web design. I may or may not have written an entire [book on responsive web design](http://longhandpixels.net/books/responsive-web-design). Luxagraf should work in every web browser. If you have trouble, or see something that just doesn't seem right, please [let me know](/contact). +Luxagraf should work in every web browser. If you have trouble, or see something that just doesn't seem right, please [let me know](/contact). ## Photography -Currently photos are taken with a Panasonic GF1. In the past I have used a Panasonic LX2 and a Canon S45. Minimal processing is done with Adobe Lightroom and Photoshop. The [photo gallery layout][gal] was inspired by the lovely (and now defunct) [Pictory][pic] photo showcase. Also note that while the writing is copyrighted to me, the photos are licensed under a Creative Commons [attribution, share-alike license][lic], which means you're free to use them so long as you attribute them to me. +Currently photos are taken with a Panasonic GF1. This is hands down the best digital camera I have ever used and second only to my old Nikon F3. In the past I have used a Panasonic LX2 and a Canon S45. + +Minimal photo processing is done with either Adobe Lightroom and Photoshop on OS X or Darktable and GIMP on Linux. + +The [photo gallery layout][gal] was inspired by the lovely (and now defunct) [Pictory][pic] photo showcase. Also note that while the writing is copyrighted to me, the photos are licensed under a Creative Commons [attribution, share-alike license][lic], which means you're free to use them so long as you attribute them to me. [geo]: http://docs.djangoproject.com/en/dev/ref/contrib/gis/ "Geodjango: a world-class geographic web framework" [pic]: http://www.pictorymag.com/ "Pictory Mag" diff --git a/build.py b/build.py new file mode 100755 index 0000000..1c20f4e --- /dev/null +++ b/build.py @@ -0,0 +1,13 @@ +import os +import sys +import site +from os.path import dirname, abspath +SERVER_ROOT = abspath(dirname(dirname(__file__))) + '/' +site.addsitedir(SERVER_ROOT + 'venv/lib/python3.4/site-packages') +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings") +sys.path = [SERVER_ROOT, ] + sys.path +sys.path.insert(0, os.path.join(SERVER_ROOT, "app")) +sys.path.insert(0, os.path.join(SERVER_ROOT, "app/lib")) +sys.path.insert(0, os.path.join(SERVER_ROOT, "config")) +from pages.models import PageGenerator +PageGenerator(os.path.join(SERVER_ROOT, "_pages")).write_files() diff --git a/design/sass/_writing_details.scss b/design/sass/_writing_details.scss index 8f0a9a9..4e4df36 100644 --- a/design/sass/_writing_details.scss +++ b/design/sass/_writing_details.scss @@ -16,6 +16,13 @@ margin-top: 4em; } } +.page--title { + @include constrain_narrow(); + @include breakpoint(beta) { + text-align: left; + margin-top: 2em; + } +} .post--location { @include smcaps; @include fontsize(11); @@ -111,9 +118,9 @@ max-width: 960px; } @include breakpoint(delta) { - margin-left: -245px; - width: 1155px; - max-width: 1155px; + margin-left: -220px; + width: 1170px; + max-width: 1170px; } } diff --git a/design/templates/details/page.html b/design/templates/details/page.html index 8db04ff..833523a 100644 --- a/design/templates/details/page.html +++ b/design/templates/details/page.html @@ -10,8 +10,8 @@ <li>{{object.title}}</li> </ul> <article role="main"> - <h1 class="hide">{{object.title}}</h1> - <div class="post-body-single"> + <h1 class="page--title">{{object.title}}</h1> + <div class="post--article"> {{object.body_html|safe|smartypants|widont}} </div> </article> |