Sample cover letter, letter submodule
Custom sitemap layout to hide letters.
This commit is contained in:
7
.gitmodules
vendored
Normal file
7
.gitmodules
vendored
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
[submodule "content/letter"]
|
||||||
|
path = content/letter
|
||||||
|
url = ssh://git@git.kevin-mok.com:399/Kevin-Mok/cover-letters.git
|
||||||
|
branch = master
|
||||||
|
[submodule "static/pdf"]
|
||||||
|
path = static/pdf
|
||||||
|
url = ssh://git@git.kevin-mok.com:399/Kevin-Mok/resume-pdf.git
|
||||||
@@ -474,22 +474,24 @@ header {// {{{
|
|||||||
float: right;
|
float: right;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
height: 1.75em;
|
height: 2em !important;
|
||||||
position: relative;
|
position: absolute;
|
||||||
top: 1em;
|
top: 1em;
|
||||||
}
|
}
|
||||||
}// }}}
|
}// }}}
|
||||||
|
|
||||||
#contact-info {// {{{
|
#contact-info {// {{{
|
||||||
@include side-margin-em(0);
|
@include side-margin-em(0);
|
||||||
|
@include side-padding-rem(0);
|
||||||
// @include vert-padding-rem(0.5);
|
// @include vert-padding-rem(0.5);
|
||||||
@include a-color($base-sky-blue);
|
@include a-color($base-sky-blue);
|
||||||
// min-width: $max-page-width;
|
width: 100%;
|
||||||
@media (min-width: 1200px) {
|
min-width: $max-page-width;
|
||||||
.container{
|
// @media (min-width: 1200px) {
|
||||||
min-width: $max-page-width;
|
// .container{
|
||||||
}
|
// min-width: $max-page-width;
|
||||||
}
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
font-size: .9em;
|
font-size: .9em;
|
||||||
|
|
||||||
@@ -643,6 +645,30 @@ header {// {{{
|
|||||||
// font-size: 1em;
|
// font-size: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.letter {
|
||||||
|
margin-top: 2em;
|
||||||
|
|
||||||
|
img {
|
||||||
|
height: 4.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
color: $base-red;
|
||||||
|
margin-top: 0em;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin-bottom: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.no-line-spacing {
|
||||||
|
line-height: .5em;
|
||||||
|
margin-bottom: 2.15em;
|
||||||
|
p {
|
||||||
|
margin-bottom: 1em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}// }}}
|
}// }}}
|
||||||
|
|
||||||
#server {// {{{
|
#server {// {{{
|
||||||
@@ -847,6 +873,16 @@ header {// {{{
|
|||||||
}// }}}
|
}// }}}
|
||||||
}// }}}
|
}// }}}
|
||||||
|
|
||||||
|
#letter-home {// {{{
|
||||||
|
|
||||||
|
#letter-instr {
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 1.5em;
|
||||||
|
// margin-top: 25vh;
|
||||||
|
font-size: 1.4em;
|
||||||
|
}
|
||||||
|
}// }}}
|
||||||
|
|
||||||
// TODO: converted up to here
|
// TODO: converted up to here
|
||||||
|
|
||||||
// hero {{{ //
|
// hero {{{ //
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ menu:
|
|||||||
main:
|
main:
|
||||||
- name: resume
|
- name: resume
|
||||||
url: /resume
|
url: /resume
|
||||||
weight: 5
|
weight: 1
|
||||||
# - name: posts/
|
# - name: posts/
|
||||||
# url: /posts
|
# url: /posts
|
||||||
# weight: 6
|
# weight: 6
|
||||||
@@ -29,6 +29,9 @@ menu:
|
|||||||
- name: card
|
- name: card
|
||||||
url: /card
|
url: /card
|
||||||
weight: 15
|
weight: 15
|
||||||
|
- name: letter
|
||||||
|
url: /letter
|
||||||
|
weight: 17
|
||||||
# - name: credits
|
# - name: credits
|
||||||
# url: /credits
|
# url: /credits
|
||||||
# weight: 20
|
# weight: 20
|
||||||
@@ -37,3 +40,5 @@ blackfriday:
|
|||||||
plainIDAnchors: true
|
plainIDAnchors: true
|
||||||
hrefTargetBlank: true
|
hrefTargetBlank: true
|
||||||
|
|
||||||
|
disableKinds: ["RSS"]
|
||||||
|
|
||||||
|
|||||||
1
content/letter
Submodule
1
content/letter
Submodule
Submodule content/letter added at dd6a79f273
22
layouts/letter/section.html
Normal file
22
layouts/letter/section.html
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
{{ partial "base/header.html" . }}
|
||||||
|
|
||||||
|
{{ partial "base/site-title.html" . }}
|
||||||
|
|
||||||
|
{{ partial "base/nav-bar.html" . }}
|
||||||
|
|
||||||
|
{{ partial "base/base16-logo.html" . }}
|
||||||
|
|
||||||
|
<main role="main" id="letter-home">
|
||||||
|
<!-- <h1 class="list-title">{{ .Title }}</h1> -->
|
||||||
|
<h4 id="letter-instr">Please enter the full URL that I provided
|
||||||
|
for your personalized cover letter. :)</h4>
|
||||||
|
|
||||||
|
<div id="resume" class="letter">
|
||||||
|
{{ .Content }}
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
{{ partial "base/footer.html" . }}
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
13
layouts/letter/single.html
Normal file
13
layouts/letter/single.html
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{{ partial "base/header.html" . }}
|
||||||
|
|
||||||
|
{{ partial "base/site-title.html" . }}
|
||||||
|
|
||||||
|
{{ partial "resume/contact-info.html" . }}
|
||||||
|
|
||||||
|
<div id="resume" class="letter">
|
||||||
|
{{ .Content }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<div id="contact-info" class="container">
|
<div id="contact-info" class="container">
|
||||||
<div class="row row-top justify-content-center">
|
<div class="row row-top justify-content-center mx-auto">
|
||||||
<div id="phone-number" class="col text-left">
|
<div id="phone-number" class="col text-left">
|
||||||
<a href="tel:647-685-2500" target="_blank">
|
<a href="tel:647-685-2500" target="_blank">
|
||||||
<img src="{{ "img/resume/smartphone.svg" | relURL }}"
|
<img src="{{ "img/resume/smartphone.svg" | relURL }}"
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row justify-content-center">
|
<div class="row mx-auto">
|
||||||
<div id="email" class="col col-left">
|
<div id="email" class="col col-left">
|
||||||
<a href="mailto:me@kevin-mok.com" target="_blank">
|
<a href="mailto:me@kevin-mok.com" target="_blank">
|
||||||
<img src="{{ "img/resume/envelope.svg" | relURL }}" alt="envelope-icon">
|
<img src="{{ "img/resume/envelope.svg" | relURL }}" alt="envelope-icon">
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<div id="print-icon">
|
<div id="print-icon">
|
||||||
<a href="{{ "kevin-mok-resume.pdf" | relURL }}" target="_blank">
|
<a href="{{ "pdf/kevin-mok-resume.pdf" | relURL }}" target="_blank">
|
||||||
<img src="{{ "img/resume/printer.svg" | relURL }}" alt="printer-icon">
|
<img src="{{ "img/resume/printer.svg" | relURL }}" alt="printer-icon">
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
7
layouts/shortcodes/resume/letter-print.html
Normal file
7
layouts/shortcodes/resume/letter-print.html
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<div id="print-icon">
|
||||||
|
{{ $code := .Get "code" }}
|
||||||
|
{{ $pdfName := print "pdf/kevin-mok-cover-letter-" $code ".pdf" }}
|
||||||
|
<a href="{{ $pdfName | relURL }}" target="_blank">
|
||||||
|
<img src="{{ "img/resume/printer.svg" | relURL }}" alt="printer-icon">
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
4
layouts/shortcodes/resume/no-spacing.html
Normal file
4
layouts/shortcodes/resume/no-spacing.html
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{{ $_hugo_config := `{ "version": 1 }` }}
|
||||||
|
<div class="no-line-spacing">
|
||||||
|
{{ .Inner }}
|
||||||
|
</div>
|
||||||
21
layouts/sitemap.xml
Normal file
21
layouts/sitemap.xml
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
||||||
|
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
||||||
|
{{ range .Data.Pages }}{{ if ne .Params.sitemap_exclude true }}
|
||||||
|
<url>
|
||||||
|
<loc>{{ .Permalink }}</loc>{{ if not .Lastmod.IsZero }}
|
||||||
|
<lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ end }}{{ with .Sitemap.ChangeFreq }}
|
||||||
|
<changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.0 }}
|
||||||
|
<priority>{{ .Sitemap.Priority }}</priority>{{ end }}{{ if .IsTranslated }}{{ range .Translations }}
|
||||||
|
<xhtml:link
|
||||||
|
rel="alternate"
|
||||||
|
hreflang="{{ .Lang }}"
|
||||||
|
href="{{ .Permalink }}"
|
||||||
|
/>{{ end }}
|
||||||
|
<xhtml:link
|
||||||
|
rel="alternate"
|
||||||
|
hreflang="{{ .Lang }}"
|
||||||
|
href="{{ .Permalink }}"
|
||||||
|
/>{{ end }}
|
||||||
|
</url>
|
||||||
|
{{ end }}{{ end }}
|
||||||
|
</urlset>
|
||||||
BIN
static/img/resume/signature-white.png
Normal file
BIN
static/img/resume/signature-white.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 465 KiB |
BIN
static/img/resume/signature.png
Normal file
BIN
static/img/resume/signature.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 467 KiB |
Binary file not shown.
1
static/pdf
Submodule
1
static/pdf
Submodule
Submodule static/pdf added at 83a1f5a203
Reference in New Issue
Block a user