Use the 'modules' category instead of blog.

This commit is contained in:
Danila Fedorin 2021-04-17 01:09:44 -07:00
parent 94c285a2f1
commit b2a763556d
9 changed files with 57 additions and 73 deletions

View File

@ -17,7 +17,7 @@ body {
h1, h2, h3, h4, h5, h6 {
margin-bottom: .1rem;
margin-top: .5rem;
font-family: $font-heading;
font-family: $font-body;
font-weight: normal;
text-align: center;
@ -30,6 +30,10 @@ h1, h2, h3, h4, h5, h6 {
}
}
h1 {
font-family: $font-heading;
}
.container {
position: relative;
margin: auto;
@ -93,6 +97,10 @@ nav {
.post-subscript {
color: #8f8f8f;
text-align: center;
p {
margin: 0;
}
}
.post-content {
@ -167,6 +175,8 @@ hr.header-divider {
height: 0.3rem;
border: none;
border-radius: 0.15rem;
margin-top: 1rem;
margin-bottom: 1rem;
}
hr.footer-divider {
@ -199,7 +209,7 @@ ul.post-list {
a.post-title {
border-bottom: none;
font-size: 1.4rem;
font-family: $font-heading;
font-family: $font-body;
text-align: center;
display: block;
}
@ -208,6 +218,10 @@ ul.post-list {
text-align: center;
margin-bottom: 0.6rem;
}
p.post-preview {
text-align: center;
}
}
.katex-html {
@ -260,5 +274,5 @@ figure {
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
fill: currentColor;
fill: none;
}

View File

@ -3,12 +3,12 @@ $container-min-padding: 1rem;
$container-width-threshold: $container-width + 2 * $container-min-padding;
$standard-border-width: .075rem;
$primary-color: #36e281;
$primary-color: #9774e8;
$border-color: #bfbfbf;
$code-color: #f0f0f0;
$code-color: #eee8d5;
$code-border-color: darken($code-color, 10%);
$font-heading: "Lora", serif;
$font-heading: "Indie Flower", serif;
$font-body: "Raleway", serif;
$font-code: "Inconsolata", monospace;

View File

@ -1,46 +0,0 @@
{{ define "main" }}
<h2>{{ .Title }}</h2>
<div class="post-subscript">
<p>
{{ range .Params.tags }}
<a class="button" href="{{ $.Site.BaseURL }}/tags/{{ . | urlize }}">{{ . }}</a>
{{ end }}
</p>
<p>Posted on {{ .Date.Format "January 2, 2006" }}.</p>
</div>
<div class="post-content">
{{ if not (eq .TableOfContents "<nav id=\"TableOfContents\"></nav>") }}
<div class="table-of-contents">
<div class="wrapper">
<em>Table of Contents</em>
{{ .TableOfContents }}
</div>
</div>
{{ end }}
{{ if .Draft }}
<div class="draft-warning">
<em>Warning!</em> This post is a draft. At best, it may contain grammar mistakes;
at worst, it can include significant errors and bugs. Please
use your best judgement!
</div>
{{ end }}
{{ .Content }}
</div>
{{ end }}
{{ define "after" }}
<hr class="container footer-divider">
<footer class="container">
<p>Liked this article? Have any questions or comments?
Please don't hesitate to reach out to me at <a href="mailto:danila.fedorin@gmail.com">
danila.fedorin@gmail.com</a>! I love receiving emails from readers, and I'm always happy
to provide any additional clarification or assistance.</p>
<p>I'm also currently looking for Computer Science internships for the summer
of 2021. Take a look at my <a href="/Resume-Danila-Fedorin.pdf">resume</a>,
<a href="https://github.com/DanilaFe">GitHub profile</a>,
and <a href="/favorites">my favorite articles from this blog</a>
to learn more about me!</p>
</footer>
{{ end }}

View File

@ -1,9 +1,9 @@
{{ define "main" }}
{{ .Content }}
Recent posts:
Available modules:
<ul class="post-list">
{{ range first 10 (where (where .Site.Pages.ByDate.Reverse "Section" "blog") ".Kind" "!=" "section") }}
{{ range first 10 (where (where .Site.Pages.ByDate.Reverse "Section" "modules") ".Kind" "!=" "section") }}
{{ partial "post.html" . }}
{{ end }}
</ul>

View File

@ -0,0 +1,27 @@
{{ define "main" }}
<h2>{{ .Title }}</h2>
<div class="post-subscript">
<p>Last updated on {{ .Date.Format "January 2, 2006" }}.</p>
</div>
<div class="post-content">
{{ if not (eq .TableOfContents "<nav id=\"TableOfContents\"></nav>") }}
<div class="table-of-contents">
<div class="wrapper">
<em>Table of Contents</em>
{{ .TableOfContents }}
</div>
</div>
{{ end }}
{{ if .Draft }}
<div class="draft-warning">
<em>Warning!</em> This post is a draft. At best, it may contain grammar mistakes;
at worst, it can include significant errors and bugs. Please
use your best judgement!
</div>
{{ end }}
{{ .Content }}
</div>
{{ end }}

View File

@ -6,7 +6,7 @@
<meta name="description" content="{{ .Description }}">
{{ end }}
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inconsolata:wght@400;700&family=Raleway&family=Lora&display=block" media="screen">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inconsolata:wght@400;700&family=Raleway&family=Indie+Flower&display=block" media="screen">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css" media="screen">
{{ $style := resources.Get "scss/style.scss" | resources.ToCSS | resources.Minify }}
{{ $sidenotes := resources.Get "scss/sidenotes.scss" | resources.ToCSS | resources.Minify }}
@ -17,7 +17,8 @@
<link rel="stylesheet" href="{{ $style.Permalink }}" media="screen">
<link rel="stylesheet" href="{{ $sidenotes.Permalink }}" media="screen">
<link rel="stylesheet" href="{{ $code.Permalink }}" media="screen">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css" integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" crossorigin="anonymous" media="screen">
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<link rel="icon" type="image/png" href="{{ $icon.Permalink }}">
<title>{{ .Title }}</title>

View File

@ -1,15 +1,3 @@
<div class="container">
<h1>Daniel's Blog</h1>
<a href="{{ .Site.BaseURL }}"><h1>Maypop</h1></a>
</div>
<nav>
<div class="container">
<a href="/">Home</a>
<a href="/about">About</a>
<a href="https://github.com/DanilaFe">GitHub</a>
<a href="/Resume-Danila-Fedorin.pdf">Resume</a>
<a href="/tags">Tags</a>
<a href="/favorites">Favorites</a>
<a href="/search">Search</a>
<a href="/blog">All Posts</a>
</div>
</nav>

View File

@ -1,5 +1,5 @@
<li>
<a href="{{ .Permalink }}" class="post-title">{{ if .Params.favorite }}{{ partial "icon.html" "star" }}{{ end }} {{ .Title }}</a>
<p class="post-wordcount">{{ .WordCount }} words, about {{ .ReadingTime }} minutes to read.</p>
<p class="post-preview">{{ .Summary }} . . .</p>
<!-- <p class="post-wordcount">{{ .WordCount }} words, about {{ .ReadingTime }} minutes to read.</p> -->
<p class="post-preview">{{ .Summary }}</p>
</li>

View File

@ -1,3 +1,3 @@
<div style="background-color: tomato; color: white; padding: 10px;">
<em>TODO: </em>{{ .Inner }}
<div style="border: 2px solid tomato; border-radius: 3px; margin-bottom: .5rem; color: tomato; padding: 10px;">
{{ partial "icon.html" "alert-triangle" }}<em>TODO: </em>{{ .Inner }}
</div>