-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
390 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: research | ||
on: | ||
push: | ||
branches: [ master ] | ||
jobs: | ||
|
||
build: | ||
name: research | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Set up Go 1.15 | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.15 | ||
id: go | ||
|
||
- name: Setup Hugo | ||
uses: peaceiris/actions-hugo@v2 | ||
with: | ||
hugo-version: '0.60.1' | ||
extended: true | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v1 | ||
|
||
- name: Build Research Website | ||
env: | ||
USER: ${{ secrets.SERVER_USER }} | ||
TARGET: ${{ secrets.SERVER_PATH }} | ||
KEY: ${{ secrets.SERVER_KEY }} | ||
DOMAIN: ${{ secrets.SERVER_DOMAIN }} | ||
run: | | ||
make | ||
mkdir ~/.ssh | ||
echo "$KEY" | tr -d '\r' > ~/.ssh/idkey | ||
chmod 400 ~/.ssh/idkey | ||
eval "$(ssh-agent -s)" | ||
ssh-add ~/.ssh/idkey | ||
ssh-keyscan -H $DOMAIN >> ~/.ssh/known_hosts | ||
scp -r public/* $USER@$DOMAIN:$TARGET |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,6 @@ | |
|
||
# Dependency directories (remove the comment below to include it) | ||
# vendor/ | ||
resources | ||
public | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
License | ||
------- | ||
|
||
Copyright (c) 2020 The golang.design Initiative | ||
All Rights Reserved | ||
|
||
Unauthorized using, copying, modifying and distributing, via any medium | ||
is strictly prohibited. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
all: | ||
hugo | ||
s: | ||
hugo server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
date: {{ now.Format "2006-01-02T15:04:05Z07:00" }} | ||
toc: true | ||
slug: /{{ .Name }} | ||
tags: | ||
- Go | ||
title: {{ .Name }} | ||
draft: true | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
baseURL = "https://golang.design/research" | ||
languageCode = "en-us" | ||
title = "golang.design/research" | ||
theme = "research" | ||
[permalinks] | ||
posts = "/:slug" | ||
|
||
[params] | ||
subtitle = "(Possibly) Naïve thoughts regarding Go." | ||
dateFmt = "02.01.2006" | ||
|
||
[menu] | ||
[[menu.main]] | ||
identifier = "posts" | ||
name = "Posts" | ||
url = "/posts/" | ||
weight = 1 | ||
[[menu.main]] | ||
identifier = "tags" | ||
name = "Tags" | ||
url = "/tags/" | ||
weight = 2 | ||
[[menu.footer]] | ||
name = "GitHub" | ||
url = "https://github.com/golang-design/research" | ||
weight = 1 | ||
[markup] | ||
[markup.highlight] | ||
anchorLineNos = false | ||
codeFences = true | ||
guessSyntax = true | ||
hl_Lines = "" | ||
lineAnchors = "" | ||
lineNoStart = 1 | ||
lineNos = true | ||
lineNumbersInTable = false | ||
noClasses = true | ||
style = "native" | ||
tabWidth = 4 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
date: {{ now.Format "2006-01-02T15:04:05Z07:00" }} | ||
toc: true | ||
id: | ||
slug: /{{ .Name }} | ||
tags: | ||
- Go | ||
title: {{ .Name }} | ||
draft: true | ||
--- |
11 changes: 11 additions & 0 deletions
11
themes/research/layouts/_default/_markup/render-image.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{{ if .Title }} | ||
<figure> | ||
<img src="{{ .Destination | safeURL }}" alt="{{ .Text }}" /> | ||
<figcaption>{{ .Title }}</figcaption> | ||
</figure> | ||
{{ else }} | ||
<figure> | ||
<img src="{{ .Destination | safeURL }}" alt="{{ .Text }}" /> | ||
</figure> | ||
{{ end }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!DOCTYPE html> | ||
<html lang="{{ .Site.LanguageCode | default "en-us" }}"> | ||
<head> | ||
<!-- Global site tag (gtag.js) - Google Analytics --> | ||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-80889616-4"></script> | ||
<script> | ||
window.dataLayer = window.dataLayer || []; | ||
function gtag(){dataLayer.push(arguments);} | ||
gtag('js', new Date()); | ||
gtag('config', 'UA-80889616-4'); | ||
</script> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<style type=text/css>body{font-family:monospace;}</style> | ||
<title>{{ .Title }}</title> | ||
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }} | ||
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }} | ||
<link rel="stylesheet" href="{{ "css/style.css" | relURL }}"> | ||
{{ range .Site.Params.customCSS -}} | ||
<link rel="stylesheet" href="{{ . | relURL }}?rnd={{ now.Unix }}"> | ||
{{- end }} | ||
{{ with .OutputFormats.Get "RSS" -}} | ||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }} | ||
{{- end }} | ||
</head> | ||
<body> | ||
{{ partial "header" . }} | ||
{{ block "main" . }}{{ end }} | ||
{{ partial "footer" . }} | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{{ define "main" }} | ||
<main> | ||
{{ $listtitle := .Title }} | ||
{{ if or .Title .Content }} | ||
<div> | ||
{{ with .Title }}<h1>{{ . }}</h1>{{ end }} | ||
{{ with .Content }}<div>{{ . }}</div>{{ end }} | ||
</div> | ||
{{ end }} | ||
|
||
<ul> | ||
{{ range .Paginator.Pages }} | ||
<li> | ||
<div class="post-title"> | ||
{{ if eq $listtitle "Posts" }} | ||
{{ .Date.Format "2006-01-02" }} <a href="{{ .RelPermalink }}">{{.Title }}</a> | ||
{{ else }} | ||
<a href="{{ .RelPermalink }}">{{.Title }}</a> | ||
{{ end }} | ||
</div> | ||
</li> | ||
{{ end }} | ||
</ul> | ||
{{ partial "pagination.html" . }} | ||
</main> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{{ define "main" }} | ||
<main> | ||
<article> | ||
<h1 class="title">{{ .Title }}</h1> | ||
<b><time>{{ .Date.Format (default "2006-01-02 15:04:05" .Site.Params.dateFmt) }}</time></b> | ||
{{ range .Params.tags }} | ||
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">#{{ . }}</a> | ||
{{ end }} | ||
<div> | ||
{{ .Content }} | ||
</div> | ||
</article> | ||
</main> | ||
{{ partial "sidebar.html" . }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<article> | ||
<h1><a class="title" href="{{ .Permalink }}">{{ .Title }}</a></h1> | ||
<b><time>{{ .Date.Format (default "2006-01-02 15:04:05" .Site.Params.dateFmt) }}</time></b> | ||
{{ range .Params.tags }} | ||
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">#{{ . }}</a> | ||
{{ end }} | ||
<div> | ||
{{ .Summary }} | ||
{{ if .Truncated }} | ||
<a href="{{ .Permalink }}">Read more...</a> | ||
{{ end }} | ||
</div> | ||
</article> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{{ define "main" }} | ||
<main> | ||
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }} | ||
{{ range $paginator.Pages }} | ||
{{ .Render "summary" }} | ||
{{ end }} | ||
{{ partial "pagination.html" . }} | ||
</main> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<footer> | ||
<p>© {{ now.Year }} | ||
<a class="footer-link" href="https://golang.design"><b>The golang.design Initiative</b></a>. | ||
{{- range .Site.Menus.footer }} | ||
<a class="footer-link" href="{{ .URL }}"><b>{{ .Name }}</b></a>. | ||
{{- end }} | ||
</p> | ||
</footer> |
Oops, something went wrong.