commit 3fa3bbebc466fc2e560689f1bb9f907a53cabc17 Author: Kuoi Date: Fri Jul 29 21:47:17 2022 +0100 first commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..364fdec --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +public/ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..c449776 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,19 @@ +# All available Hugo versions are listed here: https://gitlab.com/pages/hugo/container_registry +image: registry.gitlab.com/pages/hugo:latest + +test: + script: + - hugo + except: + - master + +pages: + script: + - hugo + artifacts: + paths: + - public + only: + - master + tags: + - secure diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..81a9be6 --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,6 @@ ++++ +title = "{{ replace .TranslationBaseName '-' ' ' | title }}" +date = "{{ .Date }}" +draft = true + ++++ diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..db4cdc8 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,10 @@ +{{ partial "header.html" . }} +
+{{ with .Data.Pages }} + {{ range .ByDate}} +
  • {{ default .Title .Params.heading }}
  • + {{ end }} +{{ end }} +
    +{{ partial "footer.html" . }} + diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..1e6826c --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,7 @@ +{{ partial "header.html" . }} +
    +

    {{.Title}}

    +
    {{.Content}}
    +
    +{{ partial "footer.html" . }} + diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..9404201 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,16 @@ +{{partial "header.html" .}} +
    +

    + Latest Posts + +

    + RSS Feed + {{ range where site.RegularPages "Type" "posts" }} +

    {{.Title}}

    +

    {{.Date.Format "2006-01-02"}}

    +

    + {{.Content}} +
    + {{end}} +
    +{{partial "footer.html" .}} diff --git a/layouts/notes/single.html b/layouts/notes/single.html new file mode 100644 index 0000000..1e6826c --- /dev/null +++ b/layouts/notes/single.html @@ -0,0 +1,7 @@ +{{ partial "header.html" . }} +
    +

    {{.Title}}

    +
    {{.Content}}
    +
    +{{ partial "footer.html" . }} + diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..7c17ee9 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,30 @@ + + +
    + +
    +

    Sponsors

    + {{ range .Site.Menus.sponsor}} + + {{.Title}} logo + + {{ end }} +
    +
    + + + + + diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..da1a327 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,24 @@ + + + + + BioArchLinux + + + + +
    + +
    +
      + {{ range .Site.Menus.main }} +
    • {{ .Name }}
    • + {{ end }} +
    +
    +
    +
    +
    +
    +
    +
    diff --git a/layouts/posts/list.html b/layouts/posts/list.html new file mode 100644 index 0000000..db4cdc8 --- /dev/null +++ b/layouts/posts/list.html @@ -0,0 +1,10 @@ +{{ partial "header.html" . }} +
    +{{ with .Data.Pages }} + {{ range .ByDate}} +
  • {{ default .Title .Params.heading }}
  • + {{ end }} +{{ end }} +
    +{{ partial "footer.html" . }} + diff --git a/layouts/posts/single.html b/layouts/posts/single.html new file mode 100644 index 0000000..9ba3401 --- /dev/null +++ b/layouts/posts/single.html @@ -0,0 +1,8 @@ +{{ partial "header.html" . }} +
    +

    {{.Title}}

    + +
    {{.Content}}
    +
    +{{ partial "footer.html" . }} + diff --git a/layouts/reports/list.html b/layouts/reports/list.html new file mode 100644 index 0000000..60a36cb --- /dev/null +++ b/layouts/reports/list.html @@ -0,0 +1,12 @@ +{{ partial "header.html" . }} +
    +{{ with .Data.Pages }} +

    Previous Arch Conf reports

    + {{ range .ByDate}} +
  • {{ default .Title .Params.heading }}
  • + {{ end }} + +{{ end }} +
    +{{ partial "footer.html" . }} + diff --git a/layouts/reports/single.html b/layouts/reports/single.html new file mode 100644 index 0000000..9ba3401 --- /dev/null +++ b/layouts/reports/single.html @@ -0,0 +1,8 @@ +{{ partial "header.html" . }} +
    +

    {{.Title}}

    + +
    {{.Content}}
    +
    +{{ partial "footer.html" . }} + diff --git a/static/css/arch.css b/static/css/arch.css new file mode 100644 index 0000000..6aff298 --- /dev/null +++ b/static/css/arch.css @@ -0,0 +1,542 @@ +/* + * Font sizing based on 16px browser defaults (use em): + * 14px = 0.875em + * 13px = 0.812em + * 12px = 0.75em + * 11px = 0.6875em + */ + +/* + * ARCH GLOBAL NAVBAR + * We're forcing all generic selectors with !important + * to help prevent other stylesheets from interfering. + */ + +/* container for the entire bar */ +#archnavbar { min-height: 40px !important; padding: 10px 15px !important; background: #333 !important; border-bottom: 5px #08c solid !important; } +#archnavbarlogo { float: left !important; margin: 0 !important; padding: 0 !important; height: 40px !important; width: 190px !important; background: url('archnavbar/biboarchlinux.png') no-repeat !important; } +@media (-webkit-min-device-pixel-ratio: 1.2), (min--moz-device-pixel-ratio: 1.2), (-o-min-device-pixel-ratio: 2/1) { + #archnavbarlogo { float: left !important; margin: 0 !important; padding: 0 !important; height: 40px !important; width: 190px !important; background: url(archnavbar/bioarchlinux.svg) no-repeat !important;background-size:100% !important; + } +} + +/* move the heading text offscreen */ +#archnavbarlogo h1 { margin: 0 !important; padding: 0 !important; text-indent: -9999px !important; } + +/* make the link the same size as the logo */ +#archnavbarlogo a { display: block !important; height: 40px !important; width: 190px !important; } + +/* display the list inline, float it to the right and style it */ +#archnavbarlist { display: block !important; list-style: none !important; margin: 0 !important; padding: 0 !important; font-size: 0px !important; text-align: right !important; } +#archnavbarlist li { display: inline-block !important; font-size: 14px !important; font-family: sans-serif !important; line-height: 14px !important; padding: 14px 15px 0px !important; } + +/* style the links */ +#archnavbarlist li a { color: #999; font-weight: bold !important; text-decoration: none !important; } +#archnavbarlist li a:hover { color: white !important; text-decoration: underline !important; } + +/* END ARCH GLOBAL NAVBAR */ + +/* simple reset */ +* { + margin: 0; + padding: 0; + line-height: 1.4; +} + +/* general styling */ +body { + min-width: 650px; + background: #f6f9fc; + color: #222; + font: normal 100% sans-serif; + text-align: center; +} + +p { + margin: .33em 0 1em; +} + +ol, +ul { + margin-bottom: 1em; + padding-left: 2em; +} + + ul { + list-style: square; + } + +code { + font: 1.2em monospace; + background: #ffd; + padding: 0.15em 0.25em; +} + +pre { + font: 1.2em monospace; + border: 1px solid #bdb; + background: #dfd; + padding: 0.5em; + margin: 1em; +} + + pre code { + display: block; + background: none; + overflow: auto; + } + +blockquote { + margin: 1.5em 2em; +} + +input { + vertical-align: middle; +} + +select[multiple] { + padding: 1px 0; +} + + select[multiple] option { + padding: 0 0.5em 0 0.3em; + } + +input[type=submit] { + padding: 0 0.6em; +} + +.clear { + clear: both; +} + +.hide { + display: none; +} + +hr { + border: none; + border-top: 1px solid #888; +} + +img { + border: 0; + max-width: 90%; +} + +/* scale fonts down to a sane default (16 * .812 = 13px) */ +#content { + font-size: 0.812em; +} + +/* link style */ +a { + text-decoration: none; +} + + a:link, + th a:visited { + color: #07b; + } + + a:visited { + color: #666; + } + + a:hover { + text-decoration: underline; + color: #666; + } + + a:active { + color: #e90; + } + +/* special anchor elements */ +a.headerlink { + visibility: hidden; + padding-left: 0.5em; +} + +h3:hover > a.headerlink { + visibility: visible; +} + +/* headings */ +h2 { + font-size: 1.5em; + margin-bottom: 0.5em; + border-bottom: 1px solid #888; +} + +h3 { + font-size: 1.25em; + margin-top: .5em; +} + +h4 { + font-size: 1.15em; + margin-top: 1em; +} + +h5 { + font-size: 1em; + margin-top: 1em; +} + +/* general layout */ +#content { + width: 95%; + margin: 0 auto; + text-align: left; +} + +#content-left-wrapper { + float: left; + width: 100%; /* req to keep content above sidebar in source code */ +} + +#content-left { + margin: 0 340px 0 0; +} + +#content-right { + float: left; + width: 300px; + margin-left: -300px; +} + +div.box { + margin-bottom: 1.5em; + padding: 0.65em; + background: #ecf2f5; + border: 1px solid #bcd; +} + +#footer { + clear: both; + margin: 2em 0 1em; +} + + #footer p { + margin: 0; + text-align: center; + font-size: 0.85em; + } + +/* alignment */ +div.center, +table.center, +img.center { + width: auto; + margin-left: auto; + margin-right: auto; +} + +p.center, +td.center, +th.center { + text-align: center; +} + +/* table generics */ +table { + width: 100%; + border-collapse: collapse; +} + + table .wrap { + white-space: normal; + } + +th, +td { + white-space: nowrap; + text-align: left; +} + + th { + vertical-align: middle; + font-weight: bold; + } + + td { + vertical-align: top; + } + +/* table pretty styles */ +table.pretty1 { + width: auto; + margin-top: 0.25em; + margin-bottom: 0.5em; + border-collapse: collapse; + border: 1px solid #bcd; +} + + .pretty1 th { + padding: 0.35em; + background: #e4eeff; + border: 1px solid #bcd; + } + + .pretty1 td { + padding: 0.35em; + border: 1px dotted #bcd; + } + +table.pretty2 { + width: auto; + margin-top: 0.25em; + margin-bottom: 0.5em; + border-collapse: collapse; + border: 1px solid #bbb; +} + + .pretty2 th { + padding: 0.35em; + background: #eee; + border: 1px solid #bbb; + } + + .pretty2 td { + padding: 0.35em; + border: 1px dotted #bbb; + } + +table.compact { + width: auto; +} + + .compact td { + padding: 0.25em 0 0.25em 1.5em; + } + + +/* definition lists */ +dl { + clear: both; +} + + dl dt, + dl dd { + margin-bottom: 4px; + padding: 8px 0 4px; + font-weight: bold; + border-top: 1px dotted #bbb; + } + + dl dt { + color: #333; + float:left; + padding-right:15px; + } + +/* forms and input styling */ +form p { + margin: 0.5em 0; +} + +fieldset { + border: 0; +} + +label { + width: 12em; + vertical-align: top; + display: inline-block; + font-weight: bold; +} + +input[type=text], +input[type=password], +textarea { + padding: 0.10em; +} + +form.general-form label, +form.general-form .form-help { + width: 10em; + vertical-align: top; + display: inline-block; +} + +form.general-form input[type=text], +form.general-form textarea { + width: 45%; +} + +/* archdev navbar */ +#archdev-navbar { + margin: 1.5em 0; +} + + #archdev-navbar ul { + list-style: none; + margin: -0.5em 0; + padding: 0; + } + + #archdev-navbar li { + display: inline; + margin: 0; + padding: 0; + font-size: 0.9em; + } + + #archdev-navbar li a { + padding: 0 0.5em; + color: #07b; + } + + +/** + * PAGE SPECIFIC STYLES + */ + +/* home: introduction */ +#intro p.readmore { + margin: -0.5em 0 0 0; + font-size: .9em; + text-align: right; +} + +/* home: news */ +#news { + margin-top: 1.5em; +} + + #news h3 { + float: left; + padding-bottom: .5em + } + + #news div { + margin-bottom: 1em; + } + + #news div p { + margin-bottom: 0.5em; + } + + #news .more { + font-weight: normal; + } + + #news .rss-icon { + float: right; + margin-top: 1em; + } + + #news h4 { + clear: both; + font-size: 1em; + margin-top: 1.5em; + border-bottom: 1px dotted #bbb; + } + + #news .timestamp { + float: right; + font-size: 0.85em; + margin: -1.8em 0.5em 0 0; + } + +/* home: arrowed headings */ +#news h3 a { + display: block; + background: #1794D1; + font-size: 15px; + padding: 2px 10px; + color: white; +} + + #news a:active { + color: white; + } + +h3 span.arrow { + display: block; + width: 0; + height: 0; + border-left: 6px solid transparent; + border-right: 6px solid transparent; + border-top: 6px solid #1794D1; + margin: 0 auto; + font-size: 0; + line-height: 0px; +} + +/* home: headings inside news previews */ +#news div.article-content h1, +#news div.article-content h2, +#news div.article-content h3, +#news div.article-content h4, +#news div.article-content h5 { + /* cancel styling for #news h3 */ + float: none; + padding-bottom: 0em; + /* cancel styling for #news h4 */ + clear: none; + border-bottom: none; + /* force the style of normal h5 */ + font-size: 1em; + margin-top: 1em; + margin-bottom: 0em; +} + +/* home: sidebar navigation */ +#nav-sidebar ul { + list-style: none; + margin: 0.5em 0 0.5em 1em; + padding: 0; +} + +/* home: sponsor banners */ +#arch-sponsors img { + padding: 0.3em 0; +} + +/* home: sidebar components (navlist, sponsors, pkgsearch, etc) */ +div.widget { + margin-bottom: 1.5em; +} + +/* feeds page */ +#rss-feeds .rss { + padding-right: 20px; + background: url(rss.png) top right no-repeat; +} + +/* artwork: logo images */ +#artwork img.inverted { + background: #333; + padding: 0; +} + +#artwork div.imagelist img { + display: inline; + margin: 0.75em; +} + +/* news: article list */ +.news-nav { + float: right; + margin-top: -2.2em; +} + + .news-nav .prev, + .news-nav .next { + margin: 0 1em; + } + +/* news: article pages */ +div.news-article .article-info { + margin: 0; + color: #999; +} + +/* highlight current website in the navbar */ +#archnavbar.anb-home ul li#anb-home a, +#archnavbar.anb-packages ul li#anb-packages a, +#archnavbar.anb-download ul li#anb-download a { + color: white !important; +} diff --git a/static/css/archnavbar/archnavbar.css b/static/css/archnavbar/archnavbar.css new file mode 100644 index 0000000..0786751 --- /dev/null +++ b/static/css/archnavbar/archnavbar.css @@ -0,0 +1,25 @@ +/* + * ARCH GLOBAL NAVBAR + * We're forcing all generic selectors with !important + * to help prevent other stylesheets from interfering. + */ + +/* container for the entire bar */ +#archnavbar { min-height: 40px !important; padding: 10px 15px !important; background: #333 !important; border-bottom: 5px #08c solid !important; } +#archnavbarlogo { background: url('bioarchlinux.png') no-repeat !important; } + +/* move the heading/paragraph text offscreen */ +#archnavbarlogo p { margin: 0 !important; padding: 0 !important; text-indent: -9999px !important; } +#archnavbarlogo h1 { margin: 0 !important; padding: 0 !important; text-indent: -9999px !important; } + +/* make the link the same size as the logo */ +#archnavbarlogo a { display: block !important; height: 40px !important; width: 190px !important; } + +/* display the list inline, float it to the right and style it */ +#archnavbar ul { display: block !important; list-style: none !important; margin: 0 !important; padding: 0 !important; font-size: 0px !important; text-align: right !important; } +#archnavbar ul li { display: inline-block !important; font-size: 14px !important; font-family: sans-serif !important; line-height: 14px !important; padding: 14px 15px 0px !important; } + +/* style the links */ +#archnavbar ul#archnavbarlist li a { color: #999; font-weight: bold !important; text-decoration: none !important; } +#archnavbar ul li a:hover { color: white !important; text-decoration: underline !important; } + diff --git a/static/css/archnavbar/bioarchlinux.png b/static/css/archnavbar/bioarchlinux.png new file mode 100644 index 0000000..f5ac2db Binary files /dev/null and b/static/css/archnavbar/bioarchlinux.png differ diff --git a/static/css/archnavbar/bioarchlinux.svg b/static/css/archnavbar/bioarchlinux.svg new file mode 100644 index 0000000..bafb8f2 --- /dev/null +++ b/static/css/archnavbar/bioarchlinux.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/static/rss.png b/static/rss.png new file mode 100644 index 0000000..a6f114c Binary files /dev/null and b/static/rss.png differ diff --git a/theme.toml b/theme.toml new file mode 100644 index 0000000..45f4e06 --- /dev/null +++ b/theme.toml @@ -0,0 +1,12 @@ +name = "bioarchlinux" +license = "MIT" +licenselink = "https://github.com/nishanths/cocoa-hugo-theme/blob/master/LICENSE" +description = "Consistent, responsive theme with clean typography" +homepage = "https://github.com/nishanths/cocoa-hugo-theme" +tags = ["open-sans", "minimal", "clean", "svg", "comments"] +features = ["blog", "responsive", "404", "icons", "disqus", "metadata"] +min_version = 0.26 + +[author] + name = "Nishanth Shanmugham" + homepage = "https://github.com/nishanths"