mirror of
https://github.com/avinal/avinal.github.io.git
synced 2026-07-03 23:30:09 +05:30
remove submodule and apply theme
This commit is contained in:
+9
-1
@@ -1,7 +1,6 @@
|
||||
baseURL: "https://avinal.space/"
|
||||
languageCode: en-us
|
||||
title: Avinal's blog
|
||||
theme: hugo-texify2
|
||||
sitename: "Avinal's blog"
|
||||
enableRobotsTXT: true
|
||||
|
||||
@@ -12,6 +11,10 @@ module:
|
||||
excludeFile: posts.json
|
||||
- source: "../static/images/"
|
||||
target: "static/images"
|
||||
- source: "./static/css"
|
||||
target: "static/css"
|
||||
- source: "./static/font"
|
||||
target: "static/font"
|
||||
|
||||
markup:
|
||||
highlight:
|
||||
@@ -27,6 +30,11 @@ params:
|
||||
twitter: "@Avinal_"
|
||||
enableDuckDuckGoSearchBox: false
|
||||
toc: true
|
||||
dateFormat: "January 2, 2006"
|
||||
rootFontSize: "120%"
|
||||
showWordCount: true
|
||||
showReadingTime: true
|
||||
emphasisWithDots: true
|
||||
self:
|
||||
name: Avinal Kumar
|
||||
link: https://avinal.space/pages/about-me
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2021 Pavel Sapezhka
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
@@ -0,0 +1,83 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}" style="font-size: {{ .Site.Params.rootFontSize | default " 100%" }}">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<!-- author -->
|
||||
<meta name="author" content="{{ .Site.Author.name }}">
|
||||
|
||||
<!-- description -->
|
||||
{{ if .Description }}
|
||||
<meta name="description" content="{{ .Description }}">
|
||||
{{ else if and .IsPage .Summary }}
|
||||
<meta name="description" content="{{ .Summary }}">
|
||||
{{ else }}
|
||||
<meta name="description" content="{{ .Site.Params.description }}">
|
||||
{{ end }}
|
||||
|
||||
<!-- favicon -->
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="https://avinal.space/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="https://avinal.space/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="https://avinal.space/favicon-16x16.png">
|
||||
|
||||
<!-- keywords -->
|
||||
{{ if .Keywords }}
|
||||
<meta name="keywords" content="{{ delimit .Keywords " " }} {{ delimit .Params.tags " " }}">
|
||||
{{ else }}
|
||||
<meta name="keywords" content="{{ delimit .Site.Params.keywords " ," }}">
|
||||
{{ end }}
|
||||
|
||||
|
||||
<!-- opengraph -->
|
||||
{{ template "_internal/opengraph.html" . }}
|
||||
<meta property="og:image" content="https://avinal.space{{ .Params.image }}" />
|
||||
<meta itemprop="image" content="https://avinal.space{{ .Params.image }}">
|
||||
<!-- permalink -->
|
||||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
|
||||
<!-- rss -->
|
||||
{{ range .AlternativeOutputFormats -}}
|
||||
{{ printf `
|
||||
<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||
{{ end -}}
|
||||
|
||||
<!-- schema -->
|
||||
{{ template "_internal/schema.html" . }}
|
||||
|
||||
<!-- style -->
|
||||
<!-- <link rel="stylesheet" href="https://unpkg.com/latex.css/style.min.css" /> -->
|
||||
<link media="screen" rel="stylesheet" href='{{ "css/common.css" | relURL }}'>
|
||||
<link media="screen" rel="stylesheet" href='{{ "css/content.css" | relURL }}'>
|
||||
|
||||
<!-- title -->
|
||||
{{ if .IsHome }}
|
||||
<title>{{ .Site.Title }}</title>
|
||||
{{ else }}
|
||||
<title>{{ .Title }} | {{ .Site.Title }}</title>
|
||||
{{ end }}
|
||||
|
||||
{{ block "head" . }}{{ end }}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="wrapper">
|
||||
{{ partial "header.html" . }}
|
||||
{{ block "main" . }}{{ end }}
|
||||
{{ partial "footer.html" . }}
|
||||
</div>
|
||||
|
||||
<!-- custom css -->
|
||||
{{ range .Site.Params.customCSS }}
|
||||
<link media="screen" rel="stylesheet" href="{{ . | absURL }}" />
|
||||
{{ end }}
|
||||
|
||||
<!-- custom js -->
|
||||
{{ range .Site.Params.customJS }}
|
||||
<script src="{{ . | absURL }}"></script>
|
||||
{{ end }}
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,25 @@
|
||||
{{ define "head" }}
|
||||
<link rel="stylesheet" href='{{ "css/list.css" | absURL }}'>
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
<main id="main" class="archive">
|
||||
{{ $pages := where .Data.Pages "Type" "post" }}
|
||||
{{ range $pages.GroupByDate "2006-01" }}
|
||||
<div class="post-group">
|
||||
<h2>{{ dateFormat "January 2006" (printf "%s-01" .Key) }}</h2>
|
||||
<ul>
|
||||
{{ range .Pages }}
|
||||
<li>
|
||||
<a class="link" href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||
<time>{{ .PublishDate.Format .Site.Params.dateFormat }}</time>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="post-group">
|
||||
<h2>...</h2>
|
||||
</div>
|
||||
</main>
|
||||
{{ end }}
|
||||
@@ -0,0 +1,28 @@
|
||||
{{ define "head" }}
|
||||
<link rel="stylesheet" href='{{ "css/single.css" | relURL }}'>
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
<main id="main" class="post">
|
||||
|
||||
{{ if cond (ne .Params.toc nil) .Params.toc .Site.Params.toc }}
|
||||
{{ if ne .TableOfContents "<nav id=\"TableOfContents\"></nav>" }}
|
||||
<details>
|
||||
<summary>
|
||||
<b>Table of Contents</b>
|
||||
</summary>
|
||||
<div class="toc {{ if .Site.Params.numberedSubtitles }}numbered-subtitles{{ end }}">{{ .TableOfContents }}</div>
|
||||
</details>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<article class="content {{ if .Site.Params.numberedSubtitles }}numbered-subtitles{{ end }}">
|
||||
{{ if .Site.Params.emphasisWithDots }}
|
||||
{{ .Content | replaceRE "<strong>(\\p{Han}+?)</strong>" "<strong class=chinese>$1</strong>" | safeHTML }}
|
||||
{{ else }}
|
||||
{{ .Content }}
|
||||
|
||||
{{ end }}
|
||||
</article>
|
||||
|
||||
</main>
|
||||
{{ end }}
|
||||
@@ -0,0 +1,17 @@
|
||||
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
||||
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
||||
{{ range .Data.Pages }}
|
||||
{{- if .Permalink -}}
|
||||
<url>
|
||||
<loc>https://null.avinal.space{{ .RelPermalink }}</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 }}
|
||||
<image:image>
|
||||
<image:loc>https://null.avinal.space{{ .Params.image }}</image:loc>
|
||||
</image:image>
|
||||
</url>
|
||||
{{- end -}}
|
||||
{{ end }}
|
||||
</urlset>
|
||||
@@ -0,0 +1,60 @@
|
||||
{{ define "head" }}
|
||||
<link rel="stylesheet" href='{{ "css/index.css" | absURL }}'>
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
<main id="main" class="index">
|
||||
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "==" "post") }}
|
||||
{{ range $paginator.Pages }}
|
||||
<div class="post">
|
||||
<h2>
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
<div>
|
||||
{{ if .Site.Params.showWordCount }}
|
||||
<span>{{ .WordCount }} words</span>
|
||||
{{ end }}
|
||||
|
||||
{{ if gt .ReadingTime 1 }}
|
||||
{{ .Scratch.Set "timeUnit" "mins" }}
|
||||
{{ else }}
|
||||
{{ .Scratch.Set "timeUnit" "min" }}
|
||||
{{ end }}
|
||||
{{ if .Site.Params.showReadingTime }}
|
||||
<span>~{{.ReadingTime}} {{ .Scratch.Get "timeUnit" }}</span>
|
||||
{{ end }}
|
||||
|
||||
<time>{{ .PublishDate.Format .Site.Params.dateFormat }}</time>
|
||||
</div>
|
||||
</h2>
|
||||
{{ if ne .Params.tags nil }}
|
||||
<div>
|
||||
{{ range .Params.tags }}
|
||||
<a class="link" href='{{ "tags" | absURL }}/{{ . | urlize }}'>#{{ . }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="content">
|
||||
{{ if .Site.Params.emphasisWithDots }}
|
||||
{{ .Summary | replaceRE "<strong>(\\p{Han}+?)</strong>" "<strong class=chinese>$1</strong>" | safeHTML }}
|
||||
{{ else }}
|
||||
{{ .Summary }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ if or $paginator.HasPrev $paginator.HasNext}}
|
||||
<div class="paginator">
|
||||
{{ if $paginator.HasPrev }}
|
||||
<a class="link" href="{{ $paginator.Prev.URL }}">← prev</a>
|
||||
{{ else }}
|
||||
<a></a>
|
||||
{{ end }}
|
||||
{{ if $paginator.HasNext }}
|
||||
<a class="link" href="{{ $paginator.Next.URL }}">next →</a>
|
||||
{{ else }}
|
||||
<a></a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</main>
|
||||
{{ end }}
|
||||
@@ -0,0 +1,13 @@
|
||||
<footer id="footer">
|
||||
|
||||
<nav>
|
||||
{{ range .Site.Params.navs }}
|
||||
<span class="nav-bar-item">
|
||||
<a class="link" href="{{ .link | safeURL }}">{{ .name }}</a>
|
||||
</span>
|
||||
{{ end }}
|
||||
</nav>
|
||||
<div class="footnote">
|
||||
<span>{{ .Site.Params.footnote | safeHTML }}</span>
|
||||
</div>
|
||||
</footer>
|
||||
@@ -0,0 +1,47 @@
|
||||
{{ $parsedUrl := urls.Parse .Site.BaseURL }}
|
||||
{{ $domain := $parsedUrl.Host }}
|
||||
{{ $domainWithoutWWW := replace $domain "www." "" }}
|
||||
<header id="header">
|
||||
<div>
|
||||
<p>
|
||||
This page is terminal friendly, try browsing with <a href="https://lynx.invisible-island.net/"
|
||||
class="link">lynx</a>.
|
||||
Or <a href="https://avinal.space{{ .Page.RelPermalink }}" class="link">click here</a> for modern version of this page with rich ui, comments and dark
|
||||
mode.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{{ if .Params.image }}
|
||||
<nav>
|
||||
<span class="nav-bar-item">
|
||||
<img src="{{ .Params.image | absURL }}" alt="{{ .Title }}">
|
||||
</span>
|
||||
</nav>
|
||||
{{ end }}
|
||||
|
||||
<h1>
|
||||
{{ .Title }}
|
||||
</h1>
|
||||
<h2>
|
||||
<div>
|
||||
<span><a href="{{ .Site.Params.self.link }}" class="link">{{ .Site.Params.self.name }}</a></span>
|
||||
<time>| {{ .PublishDate.Format .Site.Params.dateFormat }}</time>
|
||||
<span>| <a href="https://avinal.space/posts/{{ .Params.category }}" class="link">{{ .Params.category }}</a>
|
||||
</span>
|
||||
{{ if .Site.Params.showWordCount }}
|
||||
<span>| {{ .WordCount }} words</span>
|
||||
{{ end }}
|
||||
|
||||
{{ if gt .ReadingTime 1 }}
|
||||
{{ .Scratch.Set "timeUnit" "mins" }}
|
||||
{{ else }}
|
||||
{{ .Scratch.Set "timeUnit" "min" }}
|
||||
{{ end }}
|
||||
{{ if .Site.Params.showReadingTime }}
|
||||
<span>| ~{{.ReadingTime}} {{ .Scratch.Get "timeUnit" }}</span>
|
||||
{{ end }}
|
||||
</div>
|
||||
</h2>
|
||||
|
||||
|
||||
</header>
|
||||
@@ -0,0 +1,2 @@
|
||||
User-agent: *
|
||||
Sitemap: {{ "sitemap.xml" | absURL }}
|
||||
@@ -0,0 +1,258 @@
|
||||
/* fonts */
|
||||
|
||||
@font-face {
|
||||
font-display: swap;
|
||||
font-family: 'Latin Modern Mono';
|
||||
font-style: normal;
|
||||
font-weight: bold;
|
||||
src: url('../font/lmmono-bold.woff');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-display: swap;
|
||||
font-family: 'Latin Modern Mono';
|
||||
font-style: italic;
|
||||
font-weight: bold;
|
||||
src: url('../font/lmmono-bolditalic.woff');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-display: swap;
|
||||
font-family: 'Latin Modern Mono';
|
||||
font-style: italic;
|
||||
font-weight: normal;
|
||||
src: url('../font/lmmono-italic.woff');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-display: swap;
|
||||
font-family: 'Latin Modern Mono';
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
src: url('../font/lmmono-normal.woff');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-display: swap;
|
||||
font-family: 'Latin Modern Roman';
|
||||
font-style: normal;
|
||||
font-weight: bold;
|
||||
src: url('../font/lmroman-bold.woff');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-display: swap;
|
||||
font-family: 'Latin Modern Roman';
|
||||
font-style: italic;
|
||||
font-weight: bold;
|
||||
src: url('../font/lmroman-bolditalic.woff');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-display: swap;
|
||||
font-family: 'Latin Modern Roman';
|
||||
font-style: italic;
|
||||
font-weight: normal;
|
||||
src: url('../font/lmroman-italic.woff');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-display: swap;
|
||||
font-family: 'Latin Modern Roman';
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
src: url('../font/lmroman-normal.woff');
|
||||
}
|
||||
|
||||
/* global */
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
time {
|
||||
color: gray;
|
||||
margin-left: 1rem;
|
||||
min-width: 5rem;
|
||||
}
|
||||
|
||||
#wrapper {
|
||||
background-color: #FAFAFA;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
font-family: 'Latin Modern Roman', 'Times New Roman', serif;
|
||||
min-height: 100vh;
|
||||
overflow-wrap: break-word;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.link {
|
||||
color: #AA0000;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.paginator {
|
||||
align-items: flex-end;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar {
|
||||
background-color: #FAFAFA;
|
||||
height: 8px;
|
||||
width: 8px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background-color: #AAAAAA;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background-color: #888888;
|
||||
}
|
||||
|
||||
/* header */
|
||||
|
||||
#header {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
#header>h1 {
|
||||
text-align: center;
|
||||
max-width: 768px;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
#header img,
|
||||
#header nav {
|
||||
max-width: 768px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 768px) {
|
||||
#header>h1 {
|
||||
font-size: 2.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
#header>nav {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-around;
|
||||
flex-wrap: wrap;
|
||||
max-width: 768px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#header>nav>span>a {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
#header>div>p {
|
||||
text-align: center;
|
||||
max-width: 768px;
|
||||
overflow-wrap: break-word;
|
||||
border-style: solid;
|
||||
border-color: #AA0000;
|
||||
border-width: 2px;
|
||||
margin-bottom: 1rem;
|
||||
padding-left: 5px;
|
||||
padding-right: 5px
|
||||
}
|
||||
|
||||
#header>h2 {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
#header>h2>div {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
#header>h2>div>time {
|
||||
font-size: 1rem;
|
||||
font-weight: normal;
|
||||
justify-self: flex-end;
|
||||
margin-left: 0.5rem
|
||||
}
|
||||
|
||||
#header>h2>div>span {
|
||||
font-size: 1rem;
|
||||
font-weight: normal;
|
||||
color: gray;
|
||||
margin-left: 0.5rem
|
||||
}
|
||||
|
||||
/* main */
|
||||
|
||||
#main {
|
||||
align-self: center;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-grow: 1;
|
||||
max-width: 768px;
|
||||
padding: 2rem 0;
|
||||
width: calc(100% - 2rem);
|
||||
}
|
||||
|
||||
/* footer */
|
||||
|
||||
#footer {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
font-size: .9rem;
|
||||
flex-direction: column;
|
||||
;
|
||||
}
|
||||
|
||||
#footer>.footnote {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#footer>nav {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-around;
|
||||
flex-wrap: wrap;
|
||||
max-width: 768px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#sharingbuttons {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
margin-top: 1rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
#searchbox {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
#searchbox>#search>input {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
@@ -0,0 +1,231 @@
|
||||
.content .MathJax {
|
||||
font-size: 100%!important;
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
||||
.content .katex {
|
||||
font-size: 100%!important;
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
||||
.content :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.content a {
|
||||
color: #AA0000;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.content a.footnote-ref::before {
|
||||
content: "[";
|
||||
}
|
||||
|
||||
.content a.footnote-ref::after {
|
||||
content: "]";
|
||||
}
|
||||
|
||||
.content blockquote,
|
||||
.content div,
|
||||
.content h1,
|
||||
.content h2,
|
||||
.content h3,
|
||||
.content h4,
|
||||
.content h5,
|
||||
.content h6,
|
||||
.content p,
|
||||
.content pre,
|
||||
.content ol,
|
||||
.content table,
|
||||
.content ul {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.content blockquote {
|
||||
border-left: black 2px solid;
|
||||
font-style: italic;
|
||||
padding: 1rem 0 1rem 2rem;
|
||||
}
|
||||
|
||||
.content code {
|
||||
background-color: #F5F5F5;
|
||||
border-radius: .2rem;
|
||||
color: #AA0000;
|
||||
font-family: 'Latin Modern Mono', Courier, monospace;
|
||||
padding: 0 .2rem;
|
||||
}
|
||||
|
||||
.content h1, .content h2, .content h3,
|
||||
.content h4, .content h5, .content h6 {
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.content h1 {
|
||||
font-size: 2.4rem;
|
||||
}
|
||||
|
||||
.content h2 {
|
||||
font-size: 1.8rem;
|
||||
}
|
||||
|
||||
.content h3 {
|
||||
font-size: 1.4rem;
|
||||
}
|
||||
|
||||
.content h4 {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.content h5 {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.content h6 {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.content img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.content p {
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
.content pre {
|
||||
background-color: #F5F5F5!important;
|
||||
border-radius: .2rem;
|
||||
font-family: 'Latin Modern Mono', Courier, monospace;
|
||||
margin-top: .5rem;
|
||||
overflow-x: auto;
|
||||
padding: .5rem;
|
||||
}
|
||||
|
||||
.content pre code {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.content strong.chinese {
|
||||
font-weight: normal;
|
||||
text-emphasis-style: dot;
|
||||
text-emphasis-position: under;
|
||||
-webkit-text-emphasis-style: dot;
|
||||
-webkit-text-emphasis-position: under;
|
||||
}
|
||||
|
||||
.content table {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.content td, .content th {
|
||||
border: #575C61 1px solid;
|
||||
padding: .1rem .5rem;
|
||||
}
|
||||
|
||||
.content th {
|
||||
background-color: #575C61;
|
||||
color: #FAFAFA;
|
||||
}
|
||||
|
||||
.content ol, .content ul {
|
||||
margin-left: 1.5rem;
|
||||
}
|
||||
|
||||
.content.numbered-subtitles {
|
||||
counter-reset: section-h2;
|
||||
}
|
||||
|
||||
.content.numbered-subtitles h2 {
|
||||
counter-reset: section-h3;
|
||||
}
|
||||
|
||||
.content.numbered-subtitles h2:before {
|
||||
counter-increment: section-h2;
|
||||
content: counter(section-h2) " ";
|
||||
}
|
||||
|
||||
.content.numbered-subtitles h3 {
|
||||
counter-reset: section-h4;
|
||||
}
|
||||
|
||||
.content.numbered-subtitles h3:before {
|
||||
counter-increment: section-h3;
|
||||
content: counter(section-h2) "." counter(section-h3) " ";
|
||||
}
|
||||
|
||||
.content.numbered-subtitles h4 {
|
||||
counter-reset: section-h5;
|
||||
}
|
||||
|
||||
.content.numbered-subtitles h4:before {
|
||||
counter-increment: section-h4;
|
||||
content: counter(section-h2) "." counter(section-h3) "." counter(section-h4) " ";
|
||||
}
|
||||
|
||||
.content.numbered-subtitles h5 {
|
||||
counter-reset: section-h6;
|
||||
}
|
||||
|
||||
.content.numbered-subtitles h5:before {
|
||||
counter-increment: section-h5;
|
||||
content: counter(section-h2) "." counter(section-h3) "." counter(section-h4) "." counter(section-h5) " ";
|
||||
}
|
||||
|
||||
.content.numbered-subtitles h6:before {
|
||||
counter-increment: section-h6;
|
||||
content: counter(section-h2) "." counter(section-h3) "." counter(section-h4) "." counter(section-h5) "." counter(section-h6) " ";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.toc.numbered-subtitles {
|
||||
counter-reset: ul-h2;
|
||||
}
|
||||
|
||||
.toc.numbered-subtitles li {
|
||||
counter-reset: ul-h3;
|
||||
}
|
||||
|
||||
.toc.numbered-subtitles li:before {
|
||||
counter-increment: ul-h2;
|
||||
content: counter(ul-h2) " ";
|
||||
}
|
||||
|
||||
.toc.numbered-subtitles li li {
|
||||
counter-reset: ul-h4;
|
||||
}
|
||||
|
||||
.toc.numbered-subtitles li li:before {
|
||||
counter-increment: ul-h3;
|
||||
content: counter(ul-h2) "." counter(ul-h3) " ";
|
||||
}
|
||||
|
||||
.toc.numbered-subtitles li li li {
|
||||
counter-reset: ul-h5;
|
||||
}
|
||||
|
||||
.toc.numbered-subtitles li li li:before {
|
||||
counter-increment: ul-h4;
|
||||
content: counter(ul-h2) "." counter(ul-h3) "." counter(ul-h4) " ";
|
||||
}
|
||||
|
||||
.toc.numbered-subtitles li li li li {
|
||||
counter-reset: ul-h6;
|
||||
}
|
||||
|
||||
.toc.numbered-subtitles li li li li:before {
|
||||
counter-increment: ul-h5;
|
||||
content: counter(ul-h2) "." counter(ul-h3) "." counter(ul-h4) "." counter(ul-h5) " ";
|
||||
}
|
||||
|
||||
.toc.numbered-subtitles li li li li li:before {
|
||||
counter-increment: ul-h6;
|
||||
content: counter(ul-h2) "." counter(ul-h3) "." counter(ul-h4) "." counter(ul-h5) "." counter(ul-h6) " ";
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
#main > .post + .post {
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
#main > .post > h2 {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
#main > .post > h2 > div {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
#main > .post > h2 > div > time {
|
||||
font-size: 1rem;
|
||||
font-weight: normal;
|
||||
justify-self: flex-end;
|
||||
}
|
||||
|
||||
#main > .post > h2 > div > span {
|
||||
font-size: 1rem;
|
||||
font-weight: normal;
|
||||
color: gray;
|
||||
margin-left: 1rem;
|
||||
}
|
||||
|
||||
#main > .post > .content {
|
||||
padding-top: 1rem;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 768px) {
|
||||
#main > .post > div {
|
||||
margin-left: 2rem;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
#main > h1 {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#main > .content {
|
||||
padding-top: 1rem;
|
||||
}
|
||||
|
||||
#main > .warning {
|
||||
background-color: brown;
|
||||
color: white;
|
||||
font-size: 1.1rem;
|
||||
margin: 2rem 0;
|
||||
padding: 1rem 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#main .toc {
|
||||
background-color: #EEEEEE;
|
||||
border: black 1px dashed;
|
||||
display: inline-block;
|
||||
margin: 1rem;
|
||||
padding: .5rem 1rem;
|
||||
}
|
||||
|
||||
#main .toc a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
#main .toc li > ul {
|
||||
margin-left: 1.5rem;
|
||||
}
|
||||
|
||||
#main .toc ul {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
#main :target {
|
||||
background-color: azure;
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
This is a preliminary version (2006-09-30), barring acceptance from
|
||||
the LaTeX Project Team and other feedback, of the GUST Font License.
|
||||
(GUST is the Polish TeX Users Group, http://www.gust.org.pl)
|
||||
|
||||
For the most recent version of this license see
|
||||
http://www.gust.org.pl/fonts/licenses/GUST-FONT-LICENSE.txt
|
||||
or
|
||||
http://tug.org/fonts/licenses/GUST-FONT-LICENSE.txt
|
||||
|
||||
This work may be distributed and/or modified under the conditions
|
||||
of the LaTeX Project Public License, either version 1.3c of this
|
||||
license or (at your option) any later version.
|
||||
|
||||
Please also observe the following clause:
|
||||
1) it is requested, but not legally required, that derived works be
|
||||
distributed only after changing the names of the fonts comprising this
|
||||
work and given in an accompanying "manifest", and that the
|
||||
files comprising the Work, as listed in the manifest, also be given
|
||||
new names. Any exceptions to this request are also given in the
|
||||
manifest.
|
||||
|
||||
We recommend the manifest be given in a separate file named
|
||||
MANIFEST-<fontid>.txt, where <fontid> is some unique identification
|
||||
of the font family. If a separate "readme" file accompanies the Work,
|
||||
we recommend a name of the form README-<fontid>.txt.
|
||||
|
||||
The latest version of the LaTeX Project Public License is in
|
||||
http://www.latex-project.org/lppl.txt and version 1.3c or later
|
||||
is part of all distributions of LaTeX version 2006/05/20 or later.
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user