Remove the custom layouts and styles for migrating to custom theme

This commit is contained in:
foo-dogsquared 2019-09-02 01:27:45 +08:00
parent 7088d9705a
commit b64693d950
5 changed files with 0 additions and 269 deletions

View File

@ -1,7 +0,0 @@
{{ define "main"}}
<main id="main">
<div>
<h1 id="title"><a href="{{ "/" | relURL }}">Go Home</a></h1>
</div>
</main>
{{ end }}

View File

@ -1,61 +0,0 @@
{{ define "main" }}
{{ .Content }}
<div class="posts">
{{ $blogIcons := "blog-icons.svg" | absURL }}
{{ $isHomePage := eq .File.Dir "" }}
{{ $pages := cond ($isHomePage) (.Paginate .Site.Sections).Pages .Data.Pages }}
{{ range $pages }}
<div class="post on-list">
<div class="post-header-wrapper">
<h1 class="post-title">
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
</h1>
{{ with .File }}
<svg class="post-type">
{{ $isFolder := or (eq .BaseFileName "_index") (eq .BaseFileName "")}}
{{ $contentType := cond $isFolder "folder" "file" }}
<use xlink:href="{{ $blogIcons }}#{{ $contentType }}"></use>
</svg>
{{ end }}
</div>
<div class="post-meta">
<span class="post-date">
{{ .Date.Format "2006-01-02" }}
</span>
{{ with .Params.Author }}<span class="post-author">::
{{ . }}</span>{{ end }}
</div>
{{ if .Params.tags }}
<span class="post-tags">
{{ range .Params.tags }}
#<a href="{{ (urlize (printf "tags/%s/" . )) | absLangURL }}">
{{- . -}}
</a>&nbsp;
{{ end }}
</span>
{{ end }}
{{ with .Params.Cover }}
<img src="{{ . | absURL }}" class="post-cover" />
{{ end }}
<div class="post-content">
{{ if .Description }}
{{ .Description | markdownify }}
{{ else }}
{{ .Summary | markdownify }}
{{ end }}
</div>
{{ if not .Params.showFullContent }}
<div>
<a class="read-more button"
href="{{.RelPermalink}}">{{ $.Site.Params.ReadMore }} →</a>
</div>
{{ end }}
</div>
{{ end }}
{{ partial "pagination.html" . }}
</div>
{{ end }}

View File

@ -1 +0,0 @@
{{ template "_internal/disqus.html" . }}

View File

@ -1,27 +0,0 @@
<footer>
{{ with $.Site.Params.blog }}
{{ $social_icons := "social-icons.svg" | absURL }}
<div class="social-icons">
{{ range .contact }}
<a href="{{ .link }}" target="_blank">
<svg>
<use xlink:href="{{ $social_icons }}#{{ .name | urlize }}"></use>
</svg></a>
{{ end }}
</div>
{{ end }}
{{ if $.Site.Copyright }}
<div class="copyright copyright--user">{{ $.Site.Copyright | safeHTML }}</div>
{{else}}
<div class="copyright">
<span>© {{ now.Year }} Powered by <a href="http://gohugo.io">Hugo</a></span>
<span>:: Theme made by <a href="https://twitter.com/panr">panr</a></span>
</div>
{{end}}
</footer>
<script src="{{ "assets/main.js" | absURL }}"></script>
<script src="{{ "assets/prism.js" | absURL }}"></script>
<!-- Extended footer section-->
{{ partial "extended_footer.html" . }}

View File

@ -1,173 +0,0 @@
:root {
--accent: #d59783;
--background: #080a0e;
--color: #dbdbdb;
--border-color: var(--color);
}
body {
background: var(--background);
font-size: 1.1rem;
color: var(--color);
}
h2 {
font-size: 1.6rem;
}
h2[id]::after {
content: "";
display: block;
width: 100%;
height: 10px;
border-bottom: var(--border-color) solid 1px;
}
h2:not(first-child) {
margin-top: 60px;
}
footer {
display: flex;
justify-content: center;
padding: 0;
margin: 1.5em auto;
flex-flow: column wrap;
color: inherit;
}
footer > * {
margin: 1.4em auto;
}
svg {
height: 2em;
width: 2em;
color: currentColor;
fill: currentColor;
}
svg:hover {
fill: var(--accent);
}
/* Theme customizations */
.header__logo a {
min-width: 45%;
}
.button__text {
white-space: pre-wrap;
}
.post-header-wrapper {
display: flex;
flex-flow: row nowrap;
align-items: center;
}
.post-title {
flex-grow: 10;
}
.post-type {
flex-grow: 1;
min-width: 5em;
}
.content {
display: unset;
}
.posts {
width: 100%;
}
.pagination__buttons {
justify-content: space-evenly;
}
.pagination .button__icon {
border-radius: 2em;
font-weight: bolder;
padding: 0.5rem;
background: var(--accent);
color: var(--background);
}
.button a {
align-items: center;
}
@media screen and (max-width: 683px) {
.pagination__buttons {
flex-flow: column wrap;
}
.pagination .button {
max-width: unset;
margin: 0.75rem;
}
}
#disqus_thread {
--border-deco: dashed var(--border-color) 1px;
--spacing: 50px;
border-top: var(--border-deco);
border-bottom: var(--border-deco);
margin: var(--spacing) auto;
padding: var(--spacing) 0;
}
a.read-more {
text-decoration: underline;
}
/* Asciidoctor style overrides */
.attribution {
margin-bottom: 40px;
text-align: right;
}
.imageblock {
margin: 2rem auto;
}
.imageblock .title {
font-style: italic;
text-align: center;
}
.admonitionblock {
border: none;
}
.admonitionblock .icon,
.admonitionblock .content {
border: none
}
.admonitionblock .icon {
width: 10%;
border: dashed var(--accent) 1px;
}
.admonitionblock .content {
padding: 1em;
display: block;
}
/* My own classes customization */
.social-icons {
display: flex;
justify-content: center;
align-items: center;
margin: auto;
flex-flow: row wrap;
}
.social-icons > * {
margin: 1em;
text-decoration: none;
}