diff options
-rw-r--r-- | archives.html | 1 | ||||
-rw-r--r-- | article.html | 1 | ||||
-rw-r--r-- | install.sh | 5 | ||||
-rw-r--r-- | print.css | 11 |
4 files changed, 17 insertions, 1 deletions
diff --git a/archives.html b/archives.html index 8526535..e0213b4 100644 --- a/archives.html +++ b/archives.html @@ -7,6 +7,7 @@ <meta name="author" content="<?fugitive-install name ?>" /> <meta name="description" content="<?fugitive-install name ?>'s blog" /> <link rel="stylesheet" href="fugitive.css" type="text/css" media="screen" charset="utf-8" /> + <link rel="stylesheet" href="print.css" type="text/css" media="print" charset="utf-8" /> </head> <body> <div id="container"> diff --git a/article.html b/article.html index 1fd6dda..c1525e2 100644 --- a/article.html +++ b/article.html @@ -7,6 +7,7 @@ <meta name="author" content="<?fugitive-install name ?>" /> <meta name="description" content="<?fugitive-install name ?>'s blog" /> <link rel="stylesheet" href="fugitive.css" type="text/css" media="screen" charset="utf-8" /> + <link rel="stylesheet" href="print.css" type="text/css" media="print" charset="utf-8" /> </head> <body> <div id="container"> @@ -47,10 +47,13 @@ EOF #INCLUDE:archives.html# EOF echo "done." - echo -n "Writing default css file... " + echo -n "Writing default css files... " (base64 -d | gunzip) > fugitive.css <<EOF #INCLUDE:fugitive.css# EOF + (base64 -d | gunzip) > print.css <<EOF +#INCLUDE:print.css# +EOF echo "done." fugitive_install_hooks echo -n "Importing files into git repository... " diff --git a/print.css b/print.css new file mode 100644 index 0000000..c386764 --- /dev/null +++ b/print.css @@ -0,0 +1,11 @@ +#container { + width: auto; + padding: 1em; + margin: 0; +} +nav, header, footer { + display: none; +} +article header, article footer { + display: block; +} |