Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wlh320/hugo-theme-hulga.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/post.html')
-rw-r--r--layouts/partials/post.html63
1 files changed, 63 insertions, 0 deletions
diff --git a/layouts/partials/post.html b/layouts/partials/post.html
new file mode 100644
index 0000000..554b9c7
--- /dev/null
+++ b/layouts/partials/post.html
@@ -0,0 +1,63 @@
+<section class="hero is-primary shadow-hero">
+ <div class="hero-body">
+ <header class="container has-text-centered">
+ <h1 class="title post-title">
+ {{ .Title }}
+ </h1>
+ <h2 class="subtitle">
+ {{- if isset .Params "date" -}}
+ <time class="post-meta">{{ .Date.Format "2006/01/02" }}</time>
+ {{- end -}}
+ {{ with .Params.Categories }} ・
+ {{ range .}}
+ <span class="post-tag post-meta">
+ <a href="{{ "/categories/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
+ </span>
+ {{ end }}
+ {{ end }}
+ </h2>
+ {{ with .Params.tags }}
+ <div class="tagbox post-meta">
+ {{ range . }}
+ <span class="post-tag">
+ <a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">#{{ . }}</a>
+ </span>
+ {{ end }}
+ <!-- <span class="post-tag">#Hello</span><span class="post-tag">#Hello</span> -->
+ </div>
+ {{ end }}
+ </header>
+ </div>
+</section>
+<section class="section">
+ <div class="container">
+ <div class="columns">
+ {{ if or .Params.toc (and .Site.Params.toc (ne .Params.toc false)) }}
+ <div class="column is-three-quarters">
+ {{ else }}
+ <div class="column is-1"></div>
+ <div class="column is-10">
+ {{ end }}
+ <article class="content" id="post-content">
+ {{- .Content -}}
+ </article>
+ </div>
+ {{ if or .Params.toc (and .Site.Params.toc (ne .Params.toc false)) }}
+ <div class="column is-hidden-mobile">
+ <div class="sidebar" id="toc">
+ {{ if or .Params.toc (and .Site.Params.toc (ne .Params.toc false)) }}
+ <div class="post post-toc" id="post-toc">
+ <!-- render by tocbot -->
+ </div>
+ {{- end }}
+ </div>
+ </div>
+ {{ end }}
+ {{ if or .Params.toc (and .Site.Params.toc (ne .Params.toc false)) }}
+ {{ else }}
+ <div class="column is-1"></div>
+ {{ end }}
+ </div>
+ </div>
+ </div>
+</section>