Skip to content

Commit 078e4d7

Browse files
committed
feature: Add Arch Linux theme as git submodule
1. Why is this change neccesary? Because Netlify doesn't support the git clone method for installing themes and we needed a way for Netlify to be able to have access to the theme. 2. How does it address the issue? By adding the Arch Linux theme as a git submodule. 3. What side effects does this change have? None.
1 parent dba9b9a commit 078e4d7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+1132
-3
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "themes/hugo-theme-arch"]
2+
path = themes/hugo-theme-arch
3+
url = https://github.com/syui/hugo-theme-arch

config.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
baseUrl = "http://example.org"
2-
languageCode = "en-US"
1+
baseUrl = "https://archlinux.mx"
2+
languageCode = "es-MX"
33
title = "Arch Linux México"
4+
45
# Define the number of posts per site
56
paginate = 10
6-
theme = "arch"
7+
theme = "hugo-theme-arch"
78

89
[permalinks]
910
post = "/:year/:month/:day/:slug"

layouts/404.html

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{{ partial "head" . }}
2+
{{ partial "header" . }}
3+
4+
<div id="container">
5+
<div class="outer">
6+
{{ partial "profile" . }}
7+
<section id="main">
8+
<article class="article article-type-post" itemscope="" itemprop="blogPost">
9+
<div class="article-inner">
10+
<div class="article-entry" itemprop="articleBody">
11+
<p>
12+
<center>
13+
<h1>
14+
{{with .Site.Data.l10n.page_not_found.title}}{{.}}{{end}}
15+
</h1>
16+
<h3>
17+
{{with .Site.Data.l10n.page_not_found.subtitle}}{{.}}{{end}}
18+
</h3>
19+
</center>
20+
</p>
21+
</div>
22+
</div>
23+
</article>
24+
</section>
25+
{{ partial "sidebar" . }}
26+
</div>
27+
</div>
28+
29+
{{ partial "footer" . }}
30+
</body>
31+
</html>

layouts/_default/list.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{{ partial "head" . }} {{ partial "header" . }}
2+
3+
<div id="container">
4+
<div class="outer">
5+
<section id="main">
6+
<section class="archives-wrap">
7+
<div class="archive-category-wrap">
8+
<span class="archive-category">{{ .Title }}</span>
9+
</div>
10+
<div class="archives">
11+
{{ $paginator := .Paginate .Data.Pages }}
12+
{{ range $paginator.Pages }}
13+
{{ .Render "summary" }}
14+
{{ end }}
15+
</div>
16+
</section>
17+
{{ partial "pagination" . }}
18+
</section>
19+
{{ partial "sidebar" . }}
20+
</div>
21+
</div>
22+
23+
{{ partial "footer" . }}
24+
</body>
25+
</html>

layouts/_default/single.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{{ partial "head" . }}
2+
{{ partial "header" . }}
3+
4+
<div id="container">
5+
<div class="outer">
6+
{{ partial "single_article" . }}
7+
{{ partial "sidebar" . }}
8+
</div>
9+
</div>
10+
11+
{{ partial "footer" . }}
12+
</body>
13+
</html>

layouts/_default/summary.html

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<article class="archive-article archive-type-post">
2+
<div class="archive-article-inner">
3+
4+
<div class="archive-article-thumbnail">
5+
6+
{{ if isset .Params "banner" }}
7+
<a href="{{ .Permalink }}" class="thumbnail">
8+
<span style="background-image:url({{ .Site.BaseURL }}{{ .Params.banner }})" alt="{{ .Title }}" class="thumbnail-image"></span>
9+
</a>
10+
{{ else }}
11+
<a href="{{ .Permalink }}" class="thumbnail">
12+
<span class="thumbnail-image thumbnail-none"></span>
13+
</a>
14+
{{ end }}
15+
</div>
16+
<header class="archive-article-header">
17+
<h1 itemprop="name">
18+
<a class="archive-article-title" href="{{ .Permalink }}">{{ .Title }}</a>
19+
</h1>
20+
<div class="archive-article-date">
21+
<!--<i class="fa fa-calendar"></i>-->
22+
<time datetime="{{ .Date }}" itemprop="datePublished">{{ .Date.Format .Site.Params.date_format }}</time>
23+
</div>
24+
</header>
25+
</div>
26+
</article>

layouts/_default/terms.html

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{{ partial "head" . }} {{ partial "header" . }}
2+
3+
<div id="container">
4+
<div class="outer">
5+
<section id="main">
6+
<section class="layout-wrap">
7+
<div class="layout-title">
8+
<span>{{ .Title }}</span>
9+
</div>
10+
<div class="layout-wrap-inner list-categories">
11+
<ul class="category-list">
12+
{{ $data := .Data }} {{ range $key, $value := .Data.Terms.ByCount }}
13+
<li class="category-list-item">
14+
<a class="category-list-link" href="{{ $value.Name | urlize }}">{{ $value.Name }}</a>
15+
<span class="category-list-count">{{ $value.Count }}</span>
16+
</li>
17+
{{ end }}
18+
</ul>
19+
</div>
20+
</section>
21+
</section>
22+
{{ partial "sidebar" . }}
23+
</div>
24+
</div>
25+
26+
{{ partial "footer" . }}
27+
</body>
28+
29+
</html>

layouts/index.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{{ partial "head" . }}
2+
3+
<div id="container">
4+
{{ partial "header" . }}
5+
6+
<div class="outer">
7+
8+
{{ partial "article_list" . }}
9+
{{ partial "sidebar" . }}
10+
</div>
11+
</div>
12+
13+
{{ partial "footer" . }}
14+
</body>
15+
</html>

layouts/partials/article_first.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<div class="article-inner-first">
2+
3+
<h2>
4+
A simple, lightweight theme
5+
</h2>
6+
<p>
7+
You've reached the website for <b>Arch Linux</b> user, I was in mobile-enabled.
8+
</p>
9+
10+
</div>
11+
<div class="rss-right"><a href="{{ .RSSLink }}"><i class="fa fa-rss-square fa-lg"></i></a></div>

layouts/partials/article_footer.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<footer class="article-footer">
2+
<a href="http://twitter.com/share?url={{ .Permalink }}&text={{ .Title }}" target="_blank" title="Twitter" >
3+
<span class="article-share-link">
4+
Share
5+
</span>
6+
</a>
7+
<!--
8+
<a data-url="{{ .Permalink }}" data-id="{{ .UniqueID }}" class="article-share-link">
9+
{{with .Site.Data.l10n.articles.share}}{{.}}{{end}}
10+
</a>
11+
-->
12+
{{ if not (eq .Site.DisqusShortname "") }}
13+
14+
<a href="{{ .Permalink }}/#disqus_thread" class="article-comment-link">
15+
{{with .Site.Data.l10n.articles.comments}}{{.}}{{end}}
16+
</a>
17+
{{end}}
18+
</footer>

0 commit comments

Comments
 (0)