Reorganise templates for clarity
parent
0271debae1
commit
8b000b15a2
|
|
@ -17,12 +17,12 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<main>
|
<main>
|
||||||
<xsl:copy-of select="document('./fragments/header-cv.xml')"/>
|
<xsl:copy-of select="document('../xml/base/header.xml')"/>
|
||||||
<!-- <xsl:copy-of select="/cv"/> -->
|
<!-- <xsl:copy-of select="/cv"/> -->
|
||||||
<section id="objective">
|
<section id="objective">
|
||||||
<h2>Objective</h2>
|
<h2>Objective</h2>
|
||||||
<!-- select specific objective from xml file -->
|
<!-- select specific objective from xml file -->
|
||||||
<xsl:copy-of select="document('./fragments/objectives.xml')/objectives/objective[@name='web-development']/node()"/>
|
<xsl:copy-of select="document('../xml/objectives.xml')/objectives/objective[@name='web-development']/node()"/>
|
||||||
</section>
|
</section>
|
||||||
<section id="work-history">
|
<section id="work-history">
|
||||||
<h2>Work History</h2>
|
<h2>Work History</h2>
|
||||||
|
|
@ -17,12 +17,12 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<main>
|
<main>
|
||||||
<xsl:copy-of select="document('./fragments/grad-school/header.xml')"/>
|
<xsl:copy-of select="document('../xml/grad-school/header.xml')"/>
|
||||||
<!-- <xsl:copy-of select="/cv"/> -->
|
<!-- <xsl:copy-of select="/cv"/> -->
|
||||||
<section id="motivation">
|
<section id="motivation">
|
||||||
<h2>Motivation</h2>
|
<h2>Motivation</h2>
|
||||||
<!-- select specific objective from xml file -->
|
<!-- select specific objective from xml file -->
|
||||||
<xsl:copy-of select="document('./fragments/objectives.xml')/objectives/objective[@name='grad-school']/node()"/>
|
<xsl:copy-of select="document('../xml/objectives.xml')/objectives/objective[@name='grad-school']/node()"/>
|
||||||
</section>
|
</section>
|
||||||
<section id="education">
|
<section id="education">
|
||||||
<h2>Education</h2>
|
<h2>Education</h2>
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
<link rel="stylesheet" href="../assets/css/print.css" media="print" />
|
<link rel="stylesheet" href="../assets/css/print.css" media="print" />
|
||||||
</head>
|
</head>
|
||||||
<body class="letter">
|
<body class="letter">
|
||||||
<xsl:copy-of select="document('./fragments/header-letter.xml')"/>
|
<xsl:copy-of select="document('../xml/letter/header.xml')"/>
|
||||||
<hr />
|
<hr />
|
||||||
<main id="main">
|
<main id="main">
|
||||||
<header>
|
<header>
|
||||||
|
|
@ -3,5 +3,5 @@ hash="$(git rev-parse HEAD)"
|
||||||
|
|
||||||
mkdir -p ./dist
|
mkdir -p ./dist
|
||||||
|
|
||||||
xsltproc --stringparam hash "$hash" ./templates/cv.xsl cv.xml > ./dist/cv.html
|
xsltproc --stringparam hash "$hash" ./assets/xsl/cv.xsl cv.xml > ./dist/cv.html
|
||||||
weasyprint --quiet ./dist/cv.html ./dist/cv.pdf
|
weasyprint --quiet ./dist/cv.html ./dist/cv.pdf
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
mkdir -p ./dist
|
mkdir -p ./dist
|
||||||
|
|
||||||
# CV
|
# CV
|
||||||
xsltproc ./templates/grad-school.xsl cv.xml > ./dist/cv-grad-school.html
|
xsltproc ./assets/xsl/grad-school.xsl cv.xml > ./dist/cv-grad-school.html
|
||||||
weasyprint --quiet ./dist/cv-grad-school.html ./dist/cv-grad-school.pdf
|
weasyprint --quiet ./dist/cv-grad-school.html ./dist/cv-grad-school.pdf
|
||||||
|
|
||||||
# Personal Statement
|
# Personal Statement
|
||||||
|
|
|
||||||
|
|
@ -8,5 +8,5 @@ signature="$(base64 ./assets/signature.svg)"
|
||||||
|
|
||||||
mkdir -p ./dist
|
mkdir -p ./dist
|
||||||
|
|
||||||
echo $body | xsltproc --stringparam company "$company" --stringparam date "$date" --stringparam addressee "$addressee" --stringparam signature "$signature" ./templates/letter.xsl - > ./dist/letter.html
|
echo $body | xsltproc --stringparam company "$company" --stringparam date "$date" --stringparam addressee "$addressee" --stringparam signature "$signature" ./assets/xsl/letter.xsl - > ./dist/letter.html
|
||||||
weasyprint --quiet ./dist/letter.html ./dist/letter.pdf
|
weasyprint --quiet ./dist/letter.html ./dist/letter.pdf
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue