Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add link to new website #16

Merged
merged 3 commits into from
Jan 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "0.121.0"
hugo-version: "0.141.0"
extended: true

- name: Build
Expand Down
15 changes: 8 additions & 7 deletions config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
baseURL: "https://hacspec.github.io/blog/"
baseURL: "https://hacspec.org/blog/"
title: hax
paginate: 5
theme: PaperMod
pagination:
pagerSize: 5

enableInlineShortcodes: true
enableRobotsTXT: true
Expand Down Expand Up @@ -42,8 +43,8 @@ outputs:

params:
env: production # to enable google analytics, opengraph, twitter-cards and schema.
description: "hax & hacspec blog - https://github.com/hacspec/blog"
author: hacspec authors
description: "hax blog - https://github.com/cryspen/hax"
author: hax authors
# author: ["Me", "You"] # multiple authors

defaultTheme: auto
Expand Down Expand Up @@ -76,13 +77,13 @@ params:
homeInfoParams:
Title: "hax & hacspec"
Content: >
A Rust verification tool
<a href="https://hax.cryspen.com/">Find the new hax website at <b>hax.cryspen.com</b></a>

socialIcons:
- name: github
url: "https://github.com/hacspec/hax"
url: "https://github.com/cryspen/hax"
- name: email
url: "mailto:hacspec@cryspen.com"
url: "mailto:hax@cryspen.com"

# editPost:
# URL: "https://github.com/adityatelange/hugo-PaperMod/tree/exampleSite/content"
Expand Down
2 changes: 1 addition & 1 deletion themes/PaperMod/LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
MIT License

Copyright (c) 2020 nanxiaobei and adityatelange
Copyright (c) 2021-2023 adityatelange
Copyright (c) 2021-2024 adityatelange

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
19 changes: 11 additions & 8 deletions themes/PaperMod/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,20 @@
<h4 align=center>☄️ Fast | ☁️ Fluent | 🌙 Smooth | 📱 Responsive</h4>
<br>

> Hugo PaperMod is a theme based on [hugo-paper](https://github.com/nanxiaobei/hugo-paper/tree/4330c8b12aa48bfdecbcad6ad66145f679a430b3).
> Hugo PaperMod is a theme based on [hugo-paper](https://github.com/nanxiaobei/hugo-paper/tree/4330c8b12aa48bfdecbcad6ad66145f679a430b3).<br>
> The goal of this project is to add more features and customization to the og theme.

**Documentation** can be found here: [**📚 Wiki**](https://github.com/adityatelange/hugo-PaperMod/wiki)

**ExampleSite** can be found here: [**exampleSite**](https://github.com/adityatelange/hugo-PaperMod/tree/exampleSite). Demo is built up with [exampleSite](https://github.com/adityatelange/hugo-PaperMod/tree/exampleSite) as source.

[![hugo-papermod](https://img.shields.io/badge/Hugo--Themes-@PaperMod-blue)](https://themes.gohugo.io/themes/hugo-papermod/)
[![Minimum Hugo Version](https://img.shields.io/static/v1?label=HUGO-version&message=>0.97.1&color=blue&logo=hugo)](https://github.com/gohugoio/hugo/releases/tag/v0.97.1)
[![Minimum Hugo Version](https://img.shields.io/static/v1?label=min-HUGO-version&message=>=v0.125.7&color=blue&logo=hugo)](https://github.com/gohugoio/hugo/releases/tag/v0.125.7)
[![Discord](https://img.shields.io/discord/971046860317921340?label=Discord&logo=discord)](https://discord.gg/ahpmTvhVmp)
[![GitHub](https://img.shields.io/github/license/adityatelange/hugo-PaperMod)](https://github.com/adityatelange/hugo-PaperMod/blob/master/LICENSE)
![code-size](https://img.shields.io/github/languages/code-size/adityatelange/hugo-PaperMod)
[![X (formerly Twitter) URL](https://img.shields.io/badge/-Share%20on%20X-gray?style=flat&logo=x)](https://x.com/intent/tweet/?text=Checkout%20Hugo%20PaperMod%20%E2%9C%A8%0AA%20fast,%20clean,%20responsive%20Hugo%20theme.&url=https://github.com/adityatelange/hugo-PaperMod&hashtags=Hugo,PaperMod)


---

Expand All @@ -33,19 +35,20 @@
- [Profile Mode.](https://github.com/adityatelange/hugo-PaperMod/wiki/Features#profile-mode)
- Table of Content Generation (newer implementation).
- Archive of posts.
- Social Icons (home-info and profile-mode)
- Social Icons (home-info and profile-mode).
- Social-Media Share buttons on posts.
- Menu location indicator.
- Multilingual support. (with language selector)
- Taxonomies
- Multilingual support. (with language selector).
- Taxonomies.
- Cover image for each post (with Responsive image support).
- Light/Dark theme (automatic theme switch a/c to browser theme and theme-switch button).
- SEO Friendly.
- Multiple Author support.
- Search Page with Fuse.js
- Other Posts suggestion below a post
- Breadcrumb Navigation
- Code Block Copy buttons
- Breadcrumb Navigation.
- Code Block Copy buttons.
- Hugo's Chroma syntax highlighter.
- No webpack, nodejs and other dependencies are required to edit the theme.

Read Wiki For More Details => **[PaperMod - Features](https://github.com/adityatelange/hugo-PaperMod/wiki/Features)**
Expand Down Expand Up @@ -100,4 +103,4 @@ Release ChangeLog has info about stuff added: **[Releases](https://github.com/ad

## Stargazers over time 📈

<kbd>[![Stargazers over time](https://starchart.cc/adityatelange/hugo-PaperMod.svg)](https://starchart.cc/adityatelange/hugo-PaperMod)</kbd>
[![Stargazers over time](https://starchart.cc/adityatelange/hugo-PaperMod.svg?background=%23ffffff00&axis=%23858585&line=%236b63ff)](https://starchart.cc/adityatelange/hugo-PaperMod)
8 changes: 3 additions & 5 deletions themes/PaperMod/assets/css/common/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,10 @@
margin-inline-start: auto;
}

.social-icons {
padding: 12px 0;
}

.social-icons a:not(:last-of-type) {
margin-inline-end: 12px;
.social-icons a {
display: inline-flex;
padding: 10px;
}

.social-icons a svg {
Expand Down
10 changes: 7 additions & 3 deletions themes/PaperMod/assets/css/common/post-entry.css
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,17 @@
bottom: 0;
}

.entry-cover,
.entry-isdraft {
font-size: 14px;
.entry-hint {
color: var(--secondary);
}

.entry-hint-parent {
display: flex;
justify-content: space-between;
}

.entry-cover {
font-size: 14px;
margin-bottom: var(--gap);
text-align: center;
}
Expand Down
43 changes: 25 additions & 18 deletions themes/PaperMod/assets/css/common/post-single.css
Original file line number Diff line number Diff line change
Expand Up @@ -130,19 +130,18 @@
}

.post-content table {
margin-bottom: 32px;
margin-bottom: var(--content-gap);
}

.post-content table th,
.post-content table:not(.highlighttable, .highlight table, .gist .highlight) td {
min-width: 80px;
padding: 12px 8px;
padding: 8px 5px;
line-height: 1.5;
border-bottom: 1px solid var(--border);
}

.post-content table th {
font-size: 14px;
text-align: start;
}

Expand All @@ -156,7 +155,7 @@

.post-content .highlight:not(table) {
margin: 10px auto;
background: var(--hljs-bg) !important;
background: var(--code-block-bg) !important;
border-radius: var(--radius);
direction: ltr;
}
Expand Down Expand Up @@ -200,11 +199,11 @@
}

.post-content pre code {
display: block;
display: grid;
margin: auto 0;
padding: 10px;
color: rgb(213, 213, 214);
background: var(--hljs-bg) !important;
background: var(--code-block-bg) !important;
border-radius: var(--radius);
overflow-x: auto;
word-break: break-all;
Expand Down Expand Up @@ -267,7 +266,8 @@

.toc details summary {
cursor: zoom-in;
margin-inline-start: 20px;
margin-inline-start: 10px;
user-select: none;
}

.toc details[open] summary {
Expand All @@ -280,8 +280,9 @@
}

.toc .inner {
margin: 0 20px;
padding: 10px 20px;
margin: 5px 20px 0;
padding: 0 10px;
opacity: 0.9;
}

.toc li ul {
Expand All @@ -296,10 +297,18 @@
margin-top: 56px;
}

.post-footer>* {
margin-bottom: 10px;
}

.post-tags {
display: flex;
flex-wrap: wrap;
gap: 10px;
}

.post-tags li {
display: inline-block;
margin-inline-end: 3px;
margin-bottom: 5px;
}

.post-tags a,
Expand All @@ -312,8 +321,7 @@

.post-tags a {
display: block;
padding-inline-start: 14px;
padding-inline-end: 14px;
padding: 0 14px;
color: var(--secondary);
font-size: 14px;
line-height: 34px;
Expand All @@ -326,15 +334,16 @@
}

.share-buttons {
margin: 14px 0;
padding-inline-start: var(--radius);
padding: 10px;
display: flex;
justify-content: center;
overflow-x: auto;
gap: 10px;
}

.share-buttons li,
.share-buttons a {
margin-top: 10px;
display: inline-flex;
}

.share-buttons a:not(:last-of-type) {
Expand All @@ -355,10 +364,8 @@ h6:hover .anchor {
}

.paginav {
margin: 10px 0;
display: flex;
line-height: 30px;
border-radius: var(--radius);
}

.paginav a {
Expand Down
9 changes: 5 additions & 4 deletions themes/PaperMod/assets/css/common/profile-mode.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,20 @@
text-align: center;
}

.profile .profile_inner h1 {
padding: 12px 0;
.profile .profile_inner {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
}

.profile img {
display: inline-table;
border-radius: 50%;
}

.buttons {
flex-wrap: wrap;
max-width: 400px;
margin: 0 auto;
}

.button {
Expand Down
4 changes: 2 additions & 2 deletions themes/PaperMod/assets/css/core/license.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
PaperMod v7
PaperMod v8+
License: MIT https://github.com/adityatelange/hugo-PaperMod/blob/master/LICENSE
Copyright (c) 2020 nanxiaobei and adityatelange
Copyright (c) 2021-2023 adityatelange
Copyright (c) 2021-2024 adityatelange
*/
4 changes: 2 additions & 2 deletions themes/PaperMod/assets/css/core/theme-vars.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
--secondary: rgb(108, 108, 108);
--tertiary: rgb(214, 214, 214);
--content: rgb(31, 31, 31);
--hljs-bg: rgb(28, 29, 33);
--code-block-bg: rgb(28, 29, 33);
--code-bg: rgb(245, 245, 245);
--border: rgb(238, 238, 238);
}
Expand All @@ -24,7 +24,7 @@
--secondary: rgb(155, 156, 157);
--tertiary: rgb(65, 66, 68);
--content: rgb(196, 196, 197);
--hljs-bg: rgb(46, 46, 51);
--code-block-bg: rgb(46, 46, 51);
--code-bg: rgb(55, 56, 62);
--border: rgb(51, 51, 51);
}
Expand Down
6 changes: 6 additions & 0 deletions themes/PaperMod/assets/css/core/zmedia.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@
}
}

@media screen and (max-width: 340px) {
.share-buttons {
justify-content: unset;
}
}

@media (prefers-reduced-motion) {
/* terms; profile-mode; post-single; post-entry; post-entry; search; search */
.terms-tags a:active,
Expand Down
24 changes: 24 additions & 0 deletions themes/PaperMod/assets/css/includes/chroma-mod.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.chroma {
background-color: unset !important;
}

.chroma .hl {
display: flex;
}

.chroma .lnt {
padding: 0 0 0 12px;
}

.highlight pre.chroma code {
padding: 8px 0;
}

.highlight pre.chroma .line .cl,
.chroma .ln {
padding: 0 10px;
}

.chroma .lntd:last-of-type {
width: 100%;
}
Loading