Compare commits

...

9 Commits

Author SHA1 Message Date
Amolith 7afd7c310a
ignore hugo lockfile 2021-11-10 03:16:47 -05:00
Amolith 1863db477c
add id for scroll to top 2021-11-10 03:16:22 -05:00
Amolith 3a92d35ae3
add footer 2021-11-10 03:16:04 -05:00
Amolith 35fa0fd306
add proper metadata lines 2021-11-10 03:15:24 -05:00
Amolith b6d437d4e0
specify footer style and fix button 2021-11-10 03:14:56 -05:00
Amolith ccca826e86
swap fonts instead of auto 2021-11-10 03:14:25 -05:00
Amolith 66760393ef
add footer svg 2021-11-10 03:13:56 -05:00
Amolith bb1ddb80fd
add configs for pandoc 2021-11-10 03:13:40 -05:00
Amolith b5282e4750
enable emoji shortcodes in markdown 2021-11-10 03:12:48 -05:00
10 changed files with 58 additions and 6 deletions

1
.gitignore vendored
View File

@ -1,6 +1,7 @@
# Generated files by hugo
/public/
/resources/_gen/
.hugo_build.lock
# Executable may be added to repository
hugo.exe

View File

@ -6,6 +6,7 @@ relativeURLs: true
permalinks:
posts: "/:title/"
enableGitInfo: true
enableEmoji: true
params:
author: Amolith
description: Blog of a pseudonymous netizen

6
pandoc_config/images.lua Normal file
View File

@ -0,0 +1,6 @@
function Image (img)
if img.src:sub(1,1) == '/' then
img.src = os.getenv 'WEBROOT' .. img.src
end
return img
end

26
pandoc_config/styles.tex Normal file
View File

@ -0,0 +1,26 @@
% Contents of listings-setup.tex
\usepackage{xcolor}
\usepackage{fontspec}
\lstset {
basicstyle=\ttfamily,
numbers=left,
keywordstyle=\color[rgb]{0.13,0.29,0.53}\bfseries,
stringstyle=\color[rgb]{0.31,0.60,0.02},
commentstyle=\color[rgb]{0.56,0.35,0.01}\itshape,
numberstyle=\footnotesize,
stepnumber=1,
numbersep=5pt,
backgroundcolor=\color[RGB]{248,248,248},
showspaces=false,
showstringspaces=false,
showtabs=false,
tabsize=2,
captionpos=b,
breaklines=true,
breakatwhitespace=true,
breakautoindent=true,
escapeinside={\%*}{*)},
linewidth=\textwidth,
basewidth=0.5em,
}

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="234.376" height="30.002" viewBox="0 0 62.012 7.938" xmlns:v="https://vecta.io/nano"><path d="M0 0h31.006v7.938H0z" fill="#c8e6c9"/><path d="M31.006 0h31.006v7.938H31.006z" fill="#4caf50"/><path d="M5.2 2.8H4.117v.917q.215-.128.45-.128.353 0 .568.257.215.257.215.7 0 .307-.124.545-.12.238-.34.37-.22.133-.513.133-.26 0-.463-.1-.197-.1-.376-.298l.243-.22q.133.142.27.215.137.07.316.07.266 0 .412-.183.147-.188.147-.536 0-.655-.495-.655-.1 0-.202.032-.092.028-.206.092H3.72V2.48h1.52zm1.806-.32v3.066h-.408V2.9l-.637.43-.188-.275.87-.587zm1.7-.05q.26 0 .45.1.192.105.293.293.1.183.1.417 0 .28-.1.532-.105.247-.344.555-.238.307-.733.87h1.256l-.05.34H7.9v-.32q.532-.614.774-.93.247-.316.344-.54.096-.23.096-.48 0-.243-.124-.376-.12-.133-.325-.133-.174 0-.302.078-.128.078-.266.247l-.257-.197q.335-.463.857-.463zm2.247-.038v3.153h-.426V2.392zm1.55 0l-1.068 1.44 1.14 1.714h-.5L10.97 3.86l1.077-1.466zm2.044 1.485q.687.12.687.78 0 .45-.302.67-.302.22-.834.22h-.807V2.392h.683q.545 0 .84.202.293.202.293.6 0 .28-.156.458-.15.174-.403.234zm-.83-1.16v1.017h.394q.266 0 .412-.133.15-.137.15-.38 0-.266-.165-.385-.16-.12-.495-.12zm.385 2.493q.335 0 .513-.128.18-.133.18-.435 0-.596-.646-.596h-.43V5.2zM18.6 2.332q.247 0 .43.078.183.073.362.234l-.22.257q-.133-.115-.266-.17-.128-.055-.284-.055-.357 0-.568.307-.2.302-.2.98 0 .66.2.976.2.312.568.312.18 0 .307-.064.128-.064.28-.188l.215.252q-.344.353-.825.353-.353 0-.628-.183-.27-.183-.426-.55-.15-.37-.15-.907 0-.532.156-.898.16-.367.43-.55.275-.183.62-.183zm2.05.06v2.8h1.15l-.046.362h-1.53V2.392zm3.8 2.228q0 .435-.26.7-.26.275-.747.275-.5 0-.747-.27-.257-.275-.257-.715V2.392h.426v2.2q0 .664.577.664.577 0 .577-.664v-2.2h.43zm2.323-.743q.687.12.687.78 0 .45-.302.67-.302.22-.834.22h-.807V2.392h.683q.545 0 .84.202.293.202.293.6 0 .28-.156.458-.15.174-.403.234zm-.83-1.16v1.017h.394q.266 0 .412-.133.15-.137.15-.38 0-.266-.165-.385-.16-.12-.495-.12zM26.34 5.2q.335 0 .513-.128.18-.133.18-.435 0-.596-.646-.596h-.43V5.2zm8.4-2.897q.56 0 .972.4l-.357.376q-.156-.124-.3-.18-.128-.055-.293-.055-.32 0-.495.266-.174.26-.174.866 0 .435.06.683.06.243.18.344.12.1.316.1.206 0 .367-.1V4.25h-.353l-.07-.518h1.118v1.572q-.225.156-.5.243-.275.087-.55.087-.674 0-1.004-.412-.325-.417-.325-1.256 0-.54.183-.917.183-.376.5-.56.316-.188.715-.188zm2.732 2.034h-.238v1.22H36.5V2.38h.93q.623 0 .93.243.307.238.307.72 0 .6-.536.857l.72 1.356h-.802zm-.238-.5h.225q.238 0 .348-.115.1-.12.1-.37 0-.23-.12-.335-.12-.1-.376-.1h-.188zm3.978-1.447l-.078.522h-.985v.784h.862V4.2h-.862v.825h1.054v.532h-1.787V2.38zm2.513 0l-.078.522h-.985v.784h.862V4.2h-.862v.825h1.054v.532H41.94V2.38zm2.957 3.176h-.917l-.78-2.493q.01.055.01.092.04.33.064.6.023.266.023.62v1.182h-.642V2.38h.907l.793 2.498q-.1-.596-.1-1.187V2.38h.642zm4.135-3.176l-.078.56h-.683v2.617h-.733V2.94h-.724v-.56zm2.383 0l-.078.522h-.985v.784H53V4.2h-.862v.825h1.054v.532h-1.787V2.38zm2.248 3.176l-.142-.692h-.807l-.142.692h-.742l.857-3.176h.88l.852 3.176zm-.84-1.22h.587l-.293-1.42zm5.048 1.22h-.7l-.04-1.256q-.018-.55-.018-.8 0-.32.01-.472L58.5 5.222h-.7l-.44-2.204q.018.348.018.738 0 .174-.01.56l-.04 1.242h-.697l.2-3.176h.917l.4 2.163.367-2.163h.92z" fill="#1a1a1a"/></svg>

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

@ -4,7 +4,7 @@
font-weight: normal;
font-stretch: normal;
font-stretch: normal;
font-display: auto;
font-display: swap;
src: url('/assets/fonts/heliotrope/heliotrope_4_regular.woff2') format('woff2');
}
@ -14,6 +14,6 @@
font-weight: normal;
font-stretch: normal;
font-stretch: normal;
font-display: auto;
font-display: swap;
src: url('/assets/fonts/heliotrope/heliotrope_4_italic.woff2') format('woff2');
}

View File

@ -132,6 +132,8 @@ input[type=text]:focus {
.button {
font-family: inherit;
font-style: normal !important;
text-decoration: none !important;
height: 25px;
box-shadow: 0 1px 1px rgba(12,13,14,0.15),inset 0 1px 0 0 #fff;
display: inline-block;
@ -150,3 +152,13 @@ input[type=text]:focus {
color: $dark;
}
}
.footer {
font-style: italic;
padding: 20px 0 20px 0;
text-align: center;
line-height: 30px;
a:visited {
color: $dark;
}
}

View File

@ -3,9 +3,7 @@
<article>
<div class="frontmatter">
<h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>
{{- if .GitInfo }}
<p><strong>Last edited:</strong> <a href="{{ .Site.Params.gitUrl -}}{{ .GitInfo.Hash }}" target="_blank" rel="noopener">{{ if .Site.Params.dateformNum }}{{ dateFormat .Site.Params.dateformNum .GitInfo.AuthorDate.Local }}{{ else }}{{ dateFormat "2006-01-02" .GitInfo.AuthorDate.Local }}{{ end }}</a></p>
{{- end }}
<p><strong>Reading Time:</strong> {{ .ReadingTime }} minutes | <strong>Published:</strong> {{ dateFormat "2006-01-02" .Date }} | <strong>Last Edited:</strong> {{ dateFormat "2006-01-02" .Lastmod }}</a></p>
</div>
{{- if .Params.toc }}
<aside id="toc">

View File

@ -0,0 +1,7 @@
<div class="footer">
<a class="button" href="#top"><p>Back to the top</p></a>
<p>Content licensed under <a href="https://creativecommons.org/licenses/by/4.0/deed.en">CC-BY-4.0</a><br/>
Code licensed under <a href="https://tldrlegal.com/license/mit-license">MIT</a><br/>
Source is available on <a href="https://git.nixnet.services/Amolith/secluded">Gitea</a><br/></p>
<a href="https://512kb.club"><img src="/assets/svgs/green-team.svg" /></a>
</div>

View File

@ -1,4 +1,4 @@
<div class="title-wrapper">
<div class="title-wrapper" id="top">
<span class="title"><a href="{{ .Site.BaseURL }}">{{ $.Site.Title }}</a></span>
<span class="menu">
<ul>