소스 검색

Initial commit

master
Adrian Short 6 년 전
커밋
4c457910ed
30개의 변경된 파일329개의 추가작업 그리고 0개의 파일을 삭제
  1. +20
    -0
      LICENSE.md
  2. +6
    -0
      archetypes/asides.md
  3. +6
    -0
      archetypes/default.md
  4. +12
    -0
      archetypes/images.md
  5. +8
    -0
      archetypes/posts.md
  6. +10
    -0
      archetypes/quotes.md
  7. +8
    -0
      archetypes/videos.md
  8. +0
    -0
      layouts/404.html
  9. +8
    -0
      layouts/_default/li.html
  10. +1
    -0
      layouts/_default/list.html
  11. +2
    -0
      layouts/_default/single.html
  12. +6
    -0
      layouts/aside/single.html
  13. +4
    -0
      layouts/image/single.html
  14. +6
    -0
      layouts/index.html
  15. +1
    -0
      layouts/partials/aside.html
  16. +2
    -0
      layouts/partials/footer.html
  17. +9
    -0
      layouts/partials/header.html
  18. +8
    -0
      layouts/partials/image.html
  19. +2
    -0
      layouts/partials/post.html
  20. +6
    -0
      layouts/partials/postmeta.html
  21. +5
    -0
      layouts/partials/quote.html
  22. +5
    -0
      layouts/partials/tags.html
  23. +2
    -0
      layouts/partials/video.html
  24. +9
    -0
      layouts/post/single.html
  25. +4
    -0
      layouts/quote/single.html
  26. +6
    -0
      layouts/taxonomy/tag.html
  27. +8
    -0
      layouts/taxonomy/tag.terms.html
  28. +6
    -0
      layouts/video/single.html
  29. +144
    -0
      static/css/main.css
  30. +15
    -0
      theme.toml

+ 20
- 0
LICENSE.md 파일 보기

@@ -0,0 +1,20 @@
The MIT License (MIT)

Copyright (c) 2017 YOUR_NAME_HERE

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.

+ 6
- 0
archetypes/asides.md 파일 보기

@@ -0,0 +1,6 @@
---
date: {{ .Date }}
draft: false
type: aside
tags:
---

+ 6
- 0
archetypes/default.md 파일 보기

@@ -0,0 +1,6 @@
---
title: "{{ replace .TranslationBaseName "-" " " | title }}"
date: {{ .Date }}
draft: true
---


+ 12
- 0
archetypes/images.md 파일 보기

@@ -0,0 +1,12 @@
---
title: "{{ replace .TranslationBaseName "-" " " | title }}"
date: {{ .Date }}
draft: false
author:
year:
type: image
# image_filename is relative to /static/images/
image_filename: {{ .TranslationBaseName }}.jpg
show_title: false
tags:
---

+ 8
- 0
archetypes/posts.md 파일 보기

@@ -0,0 +1,8 @@
---
title: "{{ replace .TranslationBaseName "-" " " | title }}"
date: {{ .Date }}
draft: true
type: post
tags:
---


+ 10
- 0
archetypes/quotes.md 파일 보기

@@ -0,0 +1,10 @@
---
title: "{{ replace .TranslationBaseName "-" " " | title }}"
date: {{ .Date }}
draft: false
author:
work:
year:
type: quote
tags:
---

+ 8
- 0
archetypes/videos.md 파일 보기

@@ -0,0 +1,8 @@
---
title: "{{ replace .TranslationBaseName "-" " " | title }}"
date: {{ .Date }}
draft: false
embed_url:
type: video
tags:
---

+ 0
- 0
layouts/404.html 파일 보기


+ 8
- 0
layouts/_default/li.html 파일 보기

@@ -0,0 +1,8 @@
<div class="list-item list-{{ .Type }}">
<!-- {{ partial ( print .Type ".html" ) . }} -->
{{ partial .Type . }}
<div class="listmeta">
<!-- <a href="{{ .Permalink | relURL }}">#</a> -->
{{ partial "tags.html" . }}
</div>
</div>

+ 1
- 0
layouts/_default/list.html 파일 보기

@@ -0,0 +1 @@
<h2>Default list template</h2>

+ 2
- 0
layouts/_default/single.html 파일 보기

@@ -0,0 +1,2 @@
<h2>Default single template</h2>
{{ .Content }}

+ 6
- 0
layouts/aside/single.html 파일 보기

@@ -0,0 +1,6 @@
{{ partial "header" . }}
<div id="aside-single">
{{ .Content }}
</div>
{{ partial "postmeta" . }}
{{ partial "footer" . }}

+ 4
- 0
layouts/image/single.html 파일 보기

@@ -0,0 +1,4 @@
{{ partial "header" . }}
{{ partial "image" . }}
{{ partial "postmeta" . }}
{{ partial "footer" . }}

+ 6
- 0
layouts/index.html 파일 보기

@@ -0,0 +1,6 @@
{{ partial "header" . }}
{{ range .Paginator.Pages }}
{{ .Render "li" }}
{{ end }}
{{ template "_internal/pagination.html" . }}
{{ partial "footer" . }}

+ 1
- 0
layouts/partials/aside.html 파일 보기

@@ -0,0 +1 @@
<div class="aside-list">{{ .Content }}</div>

+ 2
- 0
layouts/partials/footer.html 파일 보기

@@ -0,0 +1,2 @@
</body>
</html>

+ 9
- 0
layouts/partials/header.html 파일 보기

@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<title>{{ .Site.Title }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="{{ relURL "/css/main.css" }}">
</head>
<body>
<h1 id="site-title"><a href="{{ relURL "/" }}">{{ .Site.Title }}</a></h1>

+ 8
- 0
layouts/partials/image.html 파일 보기

@@ -0,0 +1,8 @@
<figure>
<a href="{{ .Permalink | relURL }}">
<img src="{{ relURL "/images/" }}{{ .Params.image_filename }}" alt="{{ .Params.title }}">
</a>
{{ if .Params.show_title }}
{{ with .Params.title }}<figcaption>{{ . }}</figcaption>{{ end }}
{{ end }}
</figure>

+ 2
- 0
layouts/partials/post.html 파일 보기

@@ -0,0 +1,2 @@
<h2><a href="{{ .Permalink | relURL }}">{{ .Title }}</a></h2>
{{ .Summary }}

+ 6
- 0
layouts/partials/postmeta.html 파일 보기

@@ -0,0 +1,6 @@
<div class="postmeta">
<p>{{ .Date.Format "2 Jan 2006" }}
<a title="Permalink" href="{{ .Permalink | relURL }}">#</a>
</p>
{{ partial "tags.html" . }}
</div>

+ 5
- 0
layouts/partials/quote.html 파일 보기

@@ -0,0 +1,5 @@
<div class="quote">
{{ .Content }}
{{- with .Params -}}<p class="quote-credit">&mdash; {{ .author }}{{ with .work }}, {{ . }}{{ end }}{{ with .year }}, {{ . }}{{ end }}
</p>{{- end -}}
</div>

+ 5
- 0
layouts/partials/tags.html 파일 보기

@@ -0,0 +1,5 @@
<ul class="tags">
{{ range .Params.tags }}
<li><a href="{{ relURL "/tags/" }}{{ . | urlize }}/">{{ . }}</a></li>
{{ end }}
</ul>

+ 2
- 0
layouts/partials/video.html 파일 보기

@@ -0,0 +1,2 @@
<iframe width="100%" height="360" src="{{ .Params.embed_url }}" frameborder="0" allowfullscreen></iframe>
{{ .Summary }}

+ 9
- 0
layouts/post/single.html 파일 보기

@@ -0,0 +1,9 @@
{{ partial "header" . }}

<article>
<h1>{{ .Title }}</h1>
{{ .Content }}
</article>

{{ partial "postmeta" . }}
{{ partial "footer" . }}

+ 4
- 0
layouts/quote/single.html 파일 보기

@@ -0,0 +1,4 @@
{{ partial "header" . }}
{{ partial "quote" . }}
{{ partial "postmeta" . }}
{{ partial "footer" . }}

+ 6
- 0
layouts/taxonomy/tag.html 파일 보기

@@ -0,0 +1,6 @@
{{ partial "header" . }}
<h1>{{ .Title | lower }}</h1>
{{ range .Data.Pages }}
{{ .Render "li" }}
{{ end }}
{{ partial "footer" . }}

+ 8
- 0
layouts/taxonomy/tag.terms.html 파일 보기

@@ -0,0 +1,8 @@
{{ partial "header" . }}
<h1>{{ .Title }}</h1>
<ul>
{{ range $name, $taxonomy := .Site.Taxonomies.tags }}
<li><a href="{{ "/tags/" | relURL }}{{ $name | urlize }}/">{{ $name }}</a></li>
{{ end}}
</ul>
{{ partial "footer" . }}

+ 6
- 0
layouts/video/single.html 파일 보기

@@ -0,0 +1,6 @@
{{ partial "header" . }}
<style>body { background-color: black; color: white; }</style>
{{ partial "video" . }}
{{ .Content }}
{{ partial "postmeta" . }}
{{ partial "footer" . }}

+ 144
- 0
static/css/main.css 파일 보기

@@ -0,0 +1,144 @@
body {
background-color: #777;
width: 600px;
margin: 50px auto;
font-family: Helvetica, Arial, sans-serif;
}

.quote {
font-family: monospace;
border: 0px #777 solid;
/*background-color: #eee;*/
font-size: 1.8rem;
line-height: 2.0rem;
/*padding: 20px;*/
margin: 30px 0;
}

.quote-credit {
/*font-style: italic;*/
text-align: right;
font-size: 1.0rem;
}

.list-item {
display: block;
border: 0px #777 solid;
background-color: white;
padding: 10px 20px;
margin: 60px 0;
border-radius: 10px;
}

.list-item img {
margin: 0px 0 20px 0;
border-radius: 10px;
}

.list-quote {
background-color: #444;
color: white;
}

.list-video {
background-color: #000;
color: white;
}



.postmeta, .listmeta {
font-size: 100%;
color: #aaa;
font-family: monospace;
text-align: right;
}

.aside-list {
font-family: Georgia, "Times New Roman", serif;
font-size: 2.7rem;
line-height: 3.5rem;
}

#aside-single {
margin: 10rem 0;
color: white;
font-family: Georgia, "Times New Roman", serif;
font-size: 4.0rem;
line-height: 4.5rem;
}

img {
width: 100%;
border-radius: 10px;
}

figure {
margin: 20px 0;
padding: 0;
}

figcaption {
text-transform: lowercase;
letter-spacing: 0.2rem;
text-align: center;
font-size: 1.8rem;
}

article {
font-size: 1.2rem;
line-height: 1.6rem;
}

h1 {
color: white;
text-transform: lowercase;
}

article h1 {
font-size: 2.0rem;
line-height: 2.4rem;
margin: 50px 0;
}

#site-title {
margin: 70px 0;
}

#site-title a, #site-title a:visited {
font-size: 4.0rem;
color: white;
text-decoration: none;
text-transform: lowercase;
}

.tags li {
display: inline;
list-style-type: none;
margin: 0 0 0 10px;
text-transform: lowercase;
}

.tags li a, .tags li a:hover, .tags li a:visited {
color: #777;
text-decoration: none;
}

ul.pagination li {
display: inline;
background-color: white;
color: black;
padding: 10px;
margin: 0 10px 0 0;
}

@media screen and (max-width: 599px) {
body {
width: 90%;
margin: 20px auto;
}
img {
width: 100%;
}
}

+ 15
- 0
theme.toml 파일 보기

@@ -0,0 +1,15 @@
# theme.toml template for a Hugo theme
# See https://github.com/gohugoio/hugoThemes#themetoml for an example

name = "Tumble"
license = "MIT"
licenselink = "https://github.com/adrianshort/tumble/blob/master/LICENSE.md"
description = "A minimal tumblelog. Content types: aside, image, post, quote, video."
homepage = "http://example.com/"
tags = ["tumblelog", "minimal", "clean", "fun", "personal"]
features = []
min_version = "0.25.1"

[author]
name = "Adrian Short"
homepage = "https://www.adrianshort.org/"

불러오는 중...
취소
저장