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

+3
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

+4-3
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

+31
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

+25
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

+13
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

+26
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

+29
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

+15
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

+11
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

+18
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>

layouts/partials/article_header.html

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<header class="article-header">
2+
3+
<h1 class="article-title" itemprop="name">
4+
<a href="{{ .Permalink }}" class="permalink">{{ .Title }}</a>
5+
</h1>
6+
<time datetime="{{ .Date }}" itemprop="datePublished">{{ .Date.Format .Site.Params.date_format }}</time>
7+
<div class="article-meta">
8+
9+
10+
</div>
11+
</header>

layouts/partials/article_list.html

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<section id="main">
2+
3+
{{ partial "article_first" . }}
4+
{{ $paginator := .Paginate (where .Site.Pages "Type" "post") }}
5+
{{ range $paginator.Pages }}
6+
<article class="article article-type-post" itemscope="" itemprop="blogPost">
7+
8+
<div class="article-inner">
9+
10+
{{ if and (isset .Params "banner") (not (eq .Params.banner "")) }}
11+
<a href="{{ .Permalink }}" itemprop="url">
12+
<img src="{{ .Site.BaseURL }}{{ .Params.banner }}" class="article-banner"> {{ end }}
13+
</a>
14+
15+
{{ partial "article_header" . }}
16+
<div class="article-entry" itemprop="articleBody">
17+
<p>
18+
{{ .Summary }} ...
19+
</p>
20+
<p class="article-more-link">
21+
<a href="{{ .Permalink }}">
22+
Read more
23+
<!--
24+
{{with .Site.Data.l10n.articles.read_more}}{{.}}{{end}}
25+
-->
26+
</a>
27+
</p>
28+
</div>
29+
<!--
30+
{{ partial "article_footer" . }}
31+
-->
32+
</div>
33+
</article>
34+
{{ end }}
35+
36+
{{ partial "pagination" . }}
37+
</section>
38+
<!-- // main section -->

layouts/partials/footer.html

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<footer id="footer">
2+
<div class="outer">
3+
<div id="footer-info" class="inner">
4+
&copy; {{now.Format "2006"}} <i class="fa fa-github"></i> <a href="https://github.com/syui">syui</a>. <br>
5+
{{ with .Site.Params.copyright }}{{ . | markdownify}}{{ end }}
6+
</div>
7+
</div>
8+
</footer>

layouts/partials/footer_js.html

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{{ template "_internal/google_analytics.html" . }}
2+
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
3+
<script src="{{ .Site.BaseURL }}fancybox/jquery.fancybox.pack.js"></script>
4+
<script src="{{ .Site.BaseURL }}js/script.js"></script>
5+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/highlight.min.js"></script>
6+
<script>hljs.initHighlightingOnLoad();</script>
7+
8+
{{ "<!-- MathJax -->" | safeHTML }}
9+
<script type="text/x-mathjax-config">
10+
MathJax.Hub.Config({
11+
tex2jax: {
12+
inlineMath: [['$','$'], ['\\(','\\)']]}
13+
});
14+
</script>
15+
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js"></script>
16+
<!--
17+
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
18+
-->
19+
<script type="text/javascript" src="https://raw.githubusercontent.com/jeresig/jquery.hotkeys/master/jquery.hotkeys.js"></script>

layouts/partials/head.html

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
<!DOCTYPE html>
2+
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">
3+
<head>
4+
<!--<title>{{ .Title }} &middot; {{ .Site.Title }}</title>-->
5+
<title>{{ .Title }}</title>
6+
{{ .Hugo.Generator }}
7+
<meta charset="utf-8">
8+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
9+
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
10+
{{ with .Site.Params.site_description }}<meta name="description" content="{{ . }}">{{ end }}
11+
{{ if .RSSLink }}
12+
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
13+
<link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
14+
{{ end }}
15+
<link rel="icon" href="{{ .Site.BaseURL }}favicon.ico">
16+
<link rel="apple-touch-icon" href="{{ .Site.BaseURL }}apple-touch-icon.png" />
17+
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/style.css">
18+
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/monokai.css">
19+
<link rel="stylesheet" href="{{ .Site.BaseURL }}fancybox/jquery.fancybox.css">
20+
<link rel="stylesheet" href="{{ .Site.BaseURL }}font/font-awesome/css/font-awesome.min.css">
21+
<link rel="stylesheet" href="{{ .Site.BaseURL }}font/icomoon/css/icomoon.css">
22+
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/font.css">
23+
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400italic,400,600' rel='stylesheet' type='text/css'>
24+
<link href='https://fonts.googleapis.com/css?family=Source+Code+Pro' rel='stylesheet' type='text/css'>
25+
{{ template "_internal/opengraph.html" . }}
26+
{{ template "_internal/google_news.html" . }}
27+
{{ template "_internal/schema.html" . }}
28+
{{ template "_internal/twitter_cards.html" . }}
29+
<script src="{{ .Site.BaseURL }}bower_components/jquery/dist/jquery-2.2.0.min.js "></script>
30+
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>-->
31+
<script src="{{ .Site.BaseURL }}fancybox/jquery.fancybox.pack.js"></script>
32+
<script src="{{ .Site.BaseURL }}js/script.js"></script>
33+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/highlight.min.js"></script>
34+
<script>hljs.initHighlightingOnLoad();</script>
35+
36+
<!-- MathJax -->
37+
<script type="text/x-mathjax-config">
38+
MathJax.Hub.Config({
39+
tex2jax: {
40+
inlineMath: [['$','$'], ['\\(','\\)']]}
41+
});
42+
</script>
43+
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js"></script>
44+
45+
<!-- hotkeys -->
46+
<script src="{{ .Site.BaseURL }}js/jquery.hotkeys.js "></script>
47+
48+
<!-- bootstrap -->
49+
<link rel="stylesheet" href="{{ .Site.BaseURL }}bower_components/bootstrap/css/bootstrap.min.css">
50+
<link rel="stylesheet" href="{{ .Site.BaseURL }}bower_components/bootstrap/css/dropdowns-enhancement.css">
51+
<script src="{{ .Site.BaseURL }}bower_components/bootstrap/js/bootstrap.min.js"></script>
52+
<script src="{{ .Site.BaseURL }}bower_components/bootstrap/js/dropdowns-enhancement.js"></script>
53+
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/bootstrap.css">
54+
55+
<!-- talaria -->
56+
<link href="{{ .Site.BaseURL }}bower_components/talaria/dist/talaria.css" rel="stylesheet" type="text/css">
57+
<script type="text/javascript" src="{{ .Site.BaseURL }}bower_components/bluebird/js/browser/bluebird.js"></script>
58+
<script type="text/javascript" src="{{ .Site.BaseURL }}bower_components/talaria/dist/talaria.js"></script>
59+
60+
<!-- highlightjs -->
61+
<!--<script src="{{ .Site.BaseURL }}bower_components/highlightjs/highlight.pack.min.js"></script>-->
62+
63+
</head>
64+
<body>
65+
<div class="container">

layouts/partials/header.html

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<header id="header">
2+
<div id="header-main" class="header-inner">
3+
<div class="outer">
4+
5+
<nav class="navbar navbar-default">
6+
<div class="container-fluid">
7+
8+
{{ partial "title" . }}
9+
10+
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
11+
<ul class="nav navbar-nav navbar-right">
12+
{{ partial "navbar-menu" . }}
13+
{{ partial "navbar-search" . }}
14+
</ul>
15+
</div><!-- /.navbar-collapse -->
16+
17+
</div><!-- /.container-fluid -->
18+
</nav>
19+
20+
</header>

0 commit comments

Comments
 (0)