Shortened the head section. v0.04
This commit is contained in:
parent
7b14fd1c04
commit
881011d057
1 changed files with 5 additions and 12 deletions
17
webgen.py
17
webgen.py
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
import sys, os, re, markdown, datetime
|
import sys, os, re, markdown, datetime
|
||||||
|
|
||||||
|
# Getoptions
|
||||||
try:
|
try:
|
||||||
parameters = sys.argv[1]
|
parameters = sys.argv[1]
|
||||||
except:
|
except:
|
||||||
|
@ -36,26 +37,18 @@ else:
|
||||||
html_out_file = sys.stdout
|
html_out_file = sys.stdout
|
||||||
title_of_text = mark_down_file
|
title_of_text = mark_down_file
|
||||||
|
|
||||||
|
|
||||||
head1 = (
|
head1 = (
|
||||||
'<!DOCTYPE HTML>\n\
|
'<!DOCTYPE HTML>\n\<html>\n\<head>\n\
|
||||||
<html>\n\
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">\n\<title>'
|
||||||
<head>\n\
|
|
||||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">\n\
|
|
||||||
<title>'
|
|
||||||
+ title_of_text
|
+ title_of_text
|
||||||
+ '</title>\n\
|
+ '</title>\n\
|
||||||
<meta name="Generator" content="Vim/8.1">\n\
|
|
||||||
<meta name="plugin-version" content="vim8.1_v1">\n\
|
|
||||||
<meta name="syntax" content="markdown">\n\
|
<meta name="syntax" content="markdown">\n\
|
||||||
<meta name="settings" content="use_css,pre_wrap,no_foldcolumn,expand_tabs,prevent_copy=">\n\
|
<meta name="settings" content="use_css,pre_wrap,no_foldcolumn,expand_tabs,prevent_copy=">\n\
|
||||||
<meta name="ctime" content="'
|
<meta name="ctime" content="'
|
||||||
+ creationtime
|
+ creationtime
|
||||||
+ '">\n\
|
+ '">\n\ <style type="text/css"> '
|
||||||
<style type="text/css"> '
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
styles = " <!--\n\
|
styles = " <!--\n\
|
||||||
* { font-family: monospace; color: #00f020; background-color: #1c1414; font-size: 1.15em;}\n\
|
* { font-family: monospace; color: #00f020; background-color: #1c1414; font-size: 1.15em;}\n\
|
||||||
body { font-family: monospace; }\n\
|
body { font-family: monospace; }\n\
|
||||||
|
@ -75,4 +68,4 @@ with open(mark_down_file) as infile:
|
||||||
html_out_file.write(a)
|
html_out_file.write(a)
|
||||||
html_out_file.write(foot)
|
html_out_file.write(foot)
|
||||||
|
|
||||||
print(new_file_name)
|
print(new_file_name)
|
||||||
|
|
Loading…
Reference in a new issue