mirror of
https://github.com/MeiK2333/github-style.git
synced 2025-10-07 01:54:06 +00:00
Update
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
{{ partial "head.html" . }}
|
||||
|
||||
<body class="env-production emoji-size-boost page-responsive page-profile">
|
||||
{{ partial "header" . }}
|
||||
<div class="application-main d-flex flex-auto flex-column" data-commit-hovercards-enabled="">
|
||||
<main>
|
||||
<div class="bg-gray-dark text-white py-5 text-center">
|
||||
<div class="pt-5 text-bold mx-2 mt-0" style="font-size: 100px; margin-bottom: 20px; line-height: 0">
|
||||
4<span class="not-found-octocat-wrapper d-inline-block mx-2 bg-gray-dark position-relative">
|
||||
<svg class="not-found-lightbulb-ani position-relative" xmlns="http://www.w3.org/2000/svg"
|
||||
x="0px" y="0px" viewBox="0 0 132.1 129.8" enable-background="new 0 0 132.1 129.8" width="72"
|
||||
xml:space="preserve">
|
||||
<path fill="#fff" d="M110.8,19c12.2,12.2,18.5,27.5,18.9,45.9c-0.3,14.5-4.4,27.3-12.5,38.3c-8.1,11-18.7,18.8-31.8,23.3
|
||||
c-1.6,0.3-2.7,0-3.4-0.7c-0.7-0.7-1-1.5-1-2.5l0.1-17.7c-0.1-3-0.6-5.6-1.4-7.5c-0.8-2-1.9-3.5-3-4.5c7.5-0.5,14.3-2.9,20.2-7.3
|
||||
c6-4.3,9.1-12.6,9.4-24.8c-0.1-3.5-0.7-6.8-1.8-9.6c-1.1-2.9-2.8-5.4-4.9-7.7c0.5-0.8,0.9-2.8,1.3-5.8c0.3-3-0.3-6.8-1.9-11.4
|
||||
c0-0.3-1.4-0.2-4.3,0.2c-2.9,0.4-7.4,2.6-13.6,6.5c-5.2-1.4-10.6-2.2-16.2-2.2s-11,0.7-16.2,2.2c-6.2-4-10.7-6.1-13.6-6.5
|
||||
c-2.9-0.4-4.3-0.4-4.3-0.2c-1.6,4.6-2.2,8.4-1.9,11.4c0.3,3,0.8,5,1.3,5.8c-2.1,2.3-3.7,4.9-4.9,7.7c-1.1,2.9-1.8,6.1-1.8,9.6
|
||||
c0.3,12.2,3.5,20.4,9.4,24.8c5.9,4.4,12.7,6.8,20.3,7.3c-1,0.8-1.9,2-2.6,3.4c-0.7,1.4-1.2,3.2-1.6,5.3c-2,1.1-4.9,1.6-8.6,1.6
|
||||
c-3.7,0-7.1-2.4-10.3-7c0-0.3-0.8-1.3-2.5-3.2c-1.7-1.9-4.1-3-7.3-3.5c-0.4-0.1-1.2,0.1-2.5,0.5c-1.2,0.4-0.6,1.6,2,3.5
|
||||
c0.1-0.1,0.9,0.6,2.5,1.9c1.6,1.4,3.1,3.8,4.8,7.5c-0.3,0.6,1.1,2.4,4.1,5.3c3,3,8.9,3.8,17.7,2.4l0.1,12c0,0.9-0.3,1.8-1,2.5
|
||||
c-0.7,0.7-1.8,1-3.4,0.7c-13.1-4.6-23.7-12.3-31.8-23.3C4.4,92.2,0.3,79.5,0,64.9C0.4,46.5,6.7,31.2,18.9,19
|
||||
C31.1,6.8,46.5,0.5,64.9,0.1C83.3,0.5,98.6,6.8,110.8,19z">
|
||||
</path>
|
||||
</svg>
|
||||
</span>4
|
||||
</div>
|
||||
<div class="pb-5">
|
||||
<h4 class="mb-0">Didn’t find anything here!</h4>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
</div>
|
||||
{{ partial "footer.html" . }}
|
||||
{{ template "_internal/google_analytics_async.html" . }}
|
||||
</body>
|
||||
|
||||
</html>
|
11
layouts/_default/about.html
Normal file
11
layouts/_default/about.html
Normal file
@@ -0,0 +1,11 @@
|
||||
{{ define "content" }}
|
||||
<div class="application-main " data-commit-hovercards-enabled>
|
||||
<main id="js-pjax-container" data-pjax-container>
|
||||
<div class="container-xl clearfix px-3 mt-4">
|
||||
|
||||
{{ partial "user-profile.html" . }}
|
||||
|
||||
{{ partial "about.html" .}}
|
||||
</main>
|
||||
</div>
|
||||
{{end }}
|
@@ -1,47 +0,0 @@
|
||||
{{ define "content" }}
|
||||
|
||||
{{ $termName := .Data.Plural }}
|
||||
{{ $terms := .Data.Terms.ByCount }}
|
||||
{{ $length := len $terms }}
|
||||
{{ $type := .Type }}
|
||||
<!-- Categories Page -->
|
||||
<div class="post-warp {{.Data.Plural}}">
|
||||
<h2 class="post-title" style="text-align:right;padding-bottom:2em">- {{ .Data.Plural | humanize }} -</h2>
|
||||
{{ if and $.Site.Taxonomies.categories (eq $termName "categories") }}
|
||||
|
||||
<div class="categories-card">
|
||||
{{ range $terms }}
|
||||
{{ $term := .Term }}
|
||||
{{ $pages := .Pages }}
|
||||
{{ with $.Site.GetPage "taxonomy" (printf "%s/%s" $type $term) }}
|
||||
<div class="card-item">
|
||||
<div class="categories" >
|
||||
<a href="{{ .URL }}"><h3> <i class="iconfont icon-folder" style="padding-right: 3px"></i> {{ $term | humanize}} </h3> </a>
|
||||
{{ range first 5 $pages }}
|
||||
<article class="archive-item">
|
||||
<a href="{{ .URL }}" class="archive-item-link">{{ .Title }}</a>
|
||||
</article>
|
||||
{{ end }}
|
||||
{{ if gt (len $pages) 5 }}
|
||||
<span class="more-post">
|
||||
<a href="{{ .Permalink }}" class="more-post-link">More >></a>
|
||||
</span>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div> <!-- //categories-card -->
|
||||
<!-- Tag cloud Page -->
|
||||
{{ else if and $.Site.Taxonomies.tags (eq $termName "tags") }}
|
||||
<div class="tag-cloud-tags">
|
||||
{{ range $.Site.Taxonomies.tags.ByCount }}
|
||||
{{ if .Name }}
|
||||
<a href="/tags/{{ .Name | urlize}}/"> {{ .Name }} <small>({{ .Count }})</small></a>
|
||||
{{ end }}
|
||||
{{end}}
|
||||
</div>
|
||||
|
||||
{{ end }}
|
||||
</div>
|
||||
{{end }}
|
39
layouts/partials/about.html
Normal file
39
layouts/partials/about.html
Normal file
@@ -0,0 +1,39 @@
|
||||
{{ $mainSections := .Site.Params.mainSections | default (slice "post") }}
|
||||
{{ $section := where .Site.RegularPages "Section" "in" $mainSections }}
|
||||
{{ $section_count := len $section }}
|
||||
{{ $n_posts := $.Param "recent_posts_number" | default 6 }}
|
||||
<div class="col-lg-9 col-md-8 col-12 float-md-left pl-md-2">
|
||||
<div class="UnderlineNav width-full user-profile-nav top-0 is-placeholder"
|
||||
style="visibility: hidden; display: none; height: 56px;"></div>
|
||||
<div class="UnderlineNav width-full user-profile-nav js-sticky top-0"
|
||||
style="position: static; top: 0px; left: 330.5px; width: 911.5px;">
|
||||
<nav class="UnderlineNav-body" data-pjax aria-label="User profile">
|
||||
<a aria-current="page" class="UnderlineNav-item mr-0 mr-md-1 mr-lg-3 " href="{{ .Site.BaseURL }}">
|
||||
Overview
|
||||
</a>
|
||||
<a class="UnderlineNav-item mr-0 mr-md-1 mr-lg-3 " href="{{ .Site.BaseURL }}posts/">
|
||||
Posts
|
||||
<span class="Counter hide-lg hide-md hide-sm">
|
||||
{{ $section_count}}
|
||||
</span>
|
||||
</a>
|
||||
<a class="UnderlineNav-item mr-0 mr-md-1 mr-lg-3 selected" href="{{ .Site.BaseURL }}about/">
|
||||
About
|
||||
</a>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div class="position-relative">
|
||||
<div class="container-lg clearfix new-discussion-timeline experiment-repo-nav p-responsive">
|
||||
<div class="repository-content ">
|
||||
<div class="Box mt-3 position-relative">
|
||||
<div id="readme" class="Box-body readme blob instapaper_body js-code-block-container">
|
||||
<article class="markdown-body entry-content p-3 p-md-6" itemprop="text">
|
||||
{{- .Content -}}
|
||||
</article>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@@ -28,7 +28,7 @@
|
||||
<ul data-filterable-for="your-repos-filter" data-filterable-type="substring">
|
||||
{{ range .Paginator.Pages }}
|
||||
<li class="col-12 d-flex width-full py-4 border-bottom public fork">
|
||||
<div class="col-10 col-lg-9 d-inline-block">
|
||||
<div class="col-12 col-lg-12 d-inline-block">
|
||||
<div class="d-inline-block mb-1">
|
||||
<h3>
|
||||
<a href="{{ .URL }}">{{ .Title }}</a>
|
||||
|
@@ -19,20 +19,22 @@
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
{{ if .Site.Params.github }}
|
||||
<div class="user-profile-following-container js-user-profile-following-toggle mb-3">
|
||||
<span class="user-following-container js-toggler-container js-social-container">
|
||||
<span class="follow">
|
||||
<input type="button" style="max-width: 100%" value="Follow"
|
||||
class="btn btn-block top-0 js-sticky js-user-profile-follow-button mb-2 js-toggler-target"
|
||||
title="Follow" onclick="window.open('https://github.com/{{ .Site.Params.github }}')" />
|
||||
title="Follow" onclick="window.location.href = 'https://github.com/{{ .Site.Params.github }}'" />
|
||||
</span>
|
||||
<span class="unfollow">
|
||||
<input type="button" style="max-width: 100%" value="Unfollow"
|
||||
class="btn btn-block top-0 js-sticky js-user-profile-follow-button mb-2 js-toggler-target"
|
||||
title="Unfollow" onclick="window.open('https://github.com/{{ .Site.Params.github }}')" />
|
||||
title="Unfollow" onclick="window.location.href = 'https://github.com/{{ .Site.Params.github }}'" />
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
<div class="d-none d-md-block">
|
||||
<div class="js-profile-editable-area">
|
||||
|
Reference in New Issue
Block a user