| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I just noticed that code font is crazy without Consolas installed (I
recently reinstalled my OS and got rid of Office for Mac 2011 — that's
probably why). The line numbers are all off (since the line heights are
carefully pre-calculated, and fallback fonts of different leadings won't
help). Therefore, I'm moving to the quite nice looking and controllable
Droid Sans Mono. Isn't as satisfactory as Consolas on the web, but
certainly better than Monaco.
Note: I originally copied my list Consolas, Monaco, 'Andale Mono',
monospace (I added Courier since I like it a lot as the primitive
monospace font) from MDN Wiki, but now it looks like a bad choice when I
don't have Consolas any more. By the way, MDN Wiki renders line numbers
using JS, so at least they are able to calculate the line heights. I'm
serving everything statically, so this is a problem.
|
| |
|
|
|
|
| |
the shabby and boring old bookmark system from Stone Age strikes back.
|
|
|
|
|
| |
Also added a 2048x2048 logo for submission to Apple News Publisher (just
curious).
|
|
|
|
| |
Each lxml.etree._Element.text needs a new CDATA.
|
|
|
|
|
|
| |
Specifically lxml.etree instead of xml.etree.ElementTree.
This allows CDATA without hack.
|
| |
|
|
|
|
|
| |
Subtitle was added along with RSS, but I accidentally used <title>
instead of <subtitle> for the tag.
|
| |
|
| |
|
|
|
|
| |
Fixes #2.
|
|
|
|
|
| |
Use canonical format for BLOG_HOME, and use urllib.parse.join for safe
concatenation.
|
|
|
|
|
|
| |
For one thing, the top attribute is not recommended in feeds (see
https://github.com/zmwangx/zmwangx.github.io/issues/2). Also, extracting
line numbers (which are useless in feeds) make the feeds smaller.
|
|
|
|
| |
turns to ==> turns into (not sure why I was thinking).
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
And other minor changes.
|
| |
|
|
|
|
| |
Now reading date directly from post.
|
| |
|
| |
|
| |
|
|
|
|
| |
Somehow the linter failed to catch the obvious syntax errors.
|
|
|
|
|
|
|
|
|
|
| |
The way I handle line numbers and the pre block in general is inspired
by the MDN wiki. See, for instance,
https://developer.mozilla.org/en-US/docs/Web/JavaScript/A_re-introduction_to_JavaScript
a screenshot is here: https://i.imgur.com/982TBDc.png
Also tweaked other styles, e.g., changed the primary monospace font to
Consolas, and slightly tweaked a few old posts.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
coreutils
date --iso-8601=s
generates output like
2015-05-13T13:04:24-0700
while the correct format (at least the format Python
datetime.datetime.isoformat() prints, and the format Google expects) is
2015-05-13T13:04:24-07:00
Account for this problem. I didn't read the RFC, so not sure.
|
| |
|
|
|
|
| |
(other than index.html).
|
|
|
|
|
|
| |
Configuration constants are configurable at the top of the source
file. This is not final: they should be put into a YAML/INI config file
in the end.
|
| |
|
| |
|
|
|
|
| |
Also filled in some originally missing alt attributes of img tags.
|
|
|
|
|
| |
It turns out that the version of pandoc (1.9.1.1-1) in precise universe
is just too old to handle metadata.
|
|
|
|
|
|
|
| |
https://travis-ci.org/zmwangx/zmwangx.github.io/builds/61860458
First step in debugging: dump the HTML to see what's missing and how it
missed.
|
|
|
|
|
| |
Also fixed the bugs in pyblog introduced in the last revision and
tweaked the theme a bit.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
branch.
Two other notes:
* Giving up on Heroku deployment since I'll need to write a server
script and a buildpack to serve the static site.
* It is possible to install Pandoc in a container -- use linuxbrew!
However, building the entire Haskell platform and Pandoc is too time
consuming. I might as well just wait in line for a non-container
machine.
|
|
|
|
|
|
|
| |
Also install requirements in .travis.yml.
By the way, I explored ways to install Pandoc in a Travis container
environment (without sudo), but that's just too hard. Giving up.
|
| |
|
|
|
|
|
|
| |
Even after implementing touch, I can't remember to touch a new post
before deploying. Now gen_deploy tries to smartly determine the latest
post and prompts for touching.
|
|
|
|
| |
those!
|
| |
|
| |
|
|
|
|
| |
Plus a few typo fixes in old posts.
|