Skip to content

Commit

Permalink
Merge pull request #1 from moyihust/master
Browse files Browse the repository at this point in the history
添加主页面以及目录模板
  • Loading branch information
mudongliang authored Mar 24, 2024
2 parents 4647aba + 93c5f97 commit 6ca8f8b
Show file tree
Hide file tree
Showing 14 changed files with 185 additions and 28 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ codekit-config.json
.sass-cache
_asset_bundler_cache
_site

.git-metadata
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
source "https://rubygems.org"
source "https://gems.ruby-china.com"
gemspec
21 changes: 18 additions & 3 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,9 @@ footer:
# url:



# Reading Files
include:
- .htaccess
- _pages
include: ["_pages","_news"]
exclude:
- "*.sublime-project"
- "*.sublime-workspace"
Expand Down Expand Up @@ -220,6 +219,12 @@ paginate_path: /page:num/
timezone: # https://en.wikipedia.org/wiki/List_of_tz_database_time_zones


collections_dir: pages
collections:
news:
output: true
permalink: /news/:title/

# Plugins (previously gems:)
plugins:
- jekyll-paginate
Expand Down Expand Up @@ -287,3 +292,13 @@ defaults:
comments: # true
share: true
related: true
- scope:
path: ""
type: pages
values:
layout: single
author_profile: true
read_time: true
comments: # true
share: true
related: true
8 changes: 6 additions & 2 deletions _data/navigation.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# main links
main:
- title: "Quick-Start Guide"
url: https://mmistakes.github.io/minimal-mistakes/docs/quick-start-guide/
- title: "Home"
url: /
- title: "github"
url: https://github.com/hust-open-atom-club
# - title: "Quick-Start Guide"
# url: https://mmistakes.github.io/minimal-mistakes/docs/quick-start-guide/
# - title: "About"
# url: https://mmistakes.github.io/minimal-mistakes/about/
# - title: "Sample Posts"
Expand Down
48 changes: 30 additions & 18 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,33 @@
<div class="page__footer-follow">
<ul class="social-icons">
{% if site.data.ui-text[site.locale].follow_label %}
<li><strong>{{ site.data.ui-text[site.locale].follow_label }}</strong></li>
{% endif %}
<div class="footer-row">
<div class="footer-block footer__about">
<p>华科开放原子开源俱乐部是一个致力于促进开源文化发展、贡献优秀开源软件的活跃开源社区,
我们坚信开源文化的重要性,相信共同的开源目标将会使我们变得更加强大和有影响力。</p>
</div>
<div class="footer-block footer__extras">
<div class="footer__contact">
<ul>
<li>
<a href="/wiki/intro/"> 关于我们</a>
</li>
<li>
<a href="https://github.com/{{ site.repository }}"><i class="fab fa-fw fa-github"></i> 本站仓库</a>
</li>
</ul>
</div>
</div>
<style>
.footer-row {
display: flex;
flex-direction: row;
justify-content: space-between;
}

{% if site.footer.links %}
{% for link in site.footer.links %}
{% if link.label and link.url %}
<li><a href="{{ link.url }}" rel="nofollow noopener noreferrer"><i class="{{ link.icon | default: 'fas fa-link' }}" aria-hidden="true"></i> {{ link.label }}</a></li>
{% endif %}
{% endfor %}
{% endif %}
p{
margin: 0;
}

{% unless site.atom_feed.hide %}
<li><a href="{% if site.atom_feed.path %}{{ site.atom_feed.path }}{% else %}{{ '/feed.xml' | relative_url }}{% endif %}"><i class="fas fa-fw fa-rss-square" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].feed_label | default: "Feed" }}</a></li>
{% endunless %}
</ul>
</div>
.footer-block {
flex: 1;
}

<div class="page__footer-copyright">&copy; {{ site.time | date: '%Y' }} {{ site.name | default: site.title }}. {{ site.data.ui-text[site.locale].powered_by | default: "Powered by" }} <a href="https://jekyllrb.com" rel="nofollow">Jekyll</a> &amp; <a href="https://mademistakes.com/work/minimal-mistakes-jekyll-theme/" rel="nofollow">Minimal Mistakes</a>.</div>
</style>
22 changes: 22 additions & 0 deletions _layouts/news-list.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
layout: splash
---

{% assign news_posts = site.news | sort: 'date' | reverse %}

<div class="row">
{% for post in news_posts %}
<div class="col-lg-4 col-md-6 col-sm-12">
<div class="card">
{% if post.image %}
<img src="{{ post.image }}" class="card-img-top" alt="{{ post.title }}">
{% endif %}
<div class="card-body">
<h5 class="card-title">{{ post.title }}</h5>
<p class="card-text">{{ post.excerpt }}</p>
<a href="{{ post.url }}" class="btn btn-primary">Read More</a>
</div>
</div>
</div>
{% endfor %}
</div>
42 changes: 42 additions & 0 deletions _sass/home.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
body.layout--home {
.archive__subtitle {
display: none;
}

.archive .list__item:first-child .archive__item-title {
margin-top: 0;
}
}

.archive-group {
display: flex;
justify-content: space-around;

@include breakpoint($large) {
font-size: 0.9em;
}
}

.archive-group__item {
flex: 1 0 0;
margin-left: gutter(of 12);
max-width: 100%;

&:first-child {
margin-left: 0;

@include breakpoint($large) {
max-width: 67%;
}
}

.archive__subtitle a {
color: inherit;
text-decoration: none;
}

.archive__item h2 {
font-size: 1.33em;
}
}

Binary file added assets/images/index.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 0 additions & 4 deletions index.html

This file was deleted.

27 changes: 27 additions & 0 deletions minimal-mistakes-jekyll.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# coding: utf-8

Gem::Specification.new do |spec|
spec.name = "minimal-mistakes-jekyll"
spec.version = "4.24.0"
spec.authors = ["Michael Rose"]

spec.summary = %q{A flexible two-column Jekyll theme.}
spec.homepage = "https://github.com/mmistakes/minimal-mistakes"
spec.license = "MIT"

spec.metadata["plugin_type"] = "theme"

spec.files = `git ls-files -z`.split("\x0").select do |f|
f.match(%r{^(assets|_(data|includes|layouts|sass)/|(LICENSE|README|CHANGELOG)((\.(txt|md|markdown)|$)))}i)
end

spec.add_runtime_dependency "jekyll", ">= 3.7", "< 5.0"
spec.add_runtime_dependency "jekyll-paginate", "~> 1.1"
spec.add_runtime_dependency "jekyll-sitemap", "~> 1.3"
spec.add_runtime_dependency "jekyll-gist", "~> 1.5"
spec.add_runtime_dependency "jekyll-feed", "~> 0.1"
spec.add_runtime_dependency "jekyll-include-cache", "~> 0.1"

spec.add_development_dependency "bundler"
spec.add_development_dependency "rake", ">= 12.3.3"
end
8 changes: 8 additions & 0 deletions pages/_news/基于TEE的内核加固方案.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
layout: splash
title: "基于TEE的内核加固方案"
excerpt: "王杰"
---
# 基于TEE的内核加固方案
## 王杰
## 软件防御方案当TCB过大时容易受到漏洞影响,现有CPU的安全能力不断增强,利用硬件特性可以实现关键数据流的访问,软硬件协同的TEE解决方案可以提升内核安全性,同时对关键操作实现硬件加速。
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
layout: splash
title: "基于自适应画像的异构终端安全监测技术"
excerpt: "董峰"
---
16 changes: 16 additions & 0 deletions pages/_pages/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
layout: news-list
title: "HUST OpenAtom Open Source Club"
excerpt: "华中科技大学开放原子开源俱乐部"
tagline: "华中科技大学开放原子开源俱乐部"
permalink: /
header:
overlay_image: /assets/images/index.jpg
overlay_filter: 0.25
actions:
- label: 了解更多
url: /wiki/intro/
---

<!-- Path: _layouts/news-list.html -->
<!-- Compare this snippet from _pages/index.html: -->
8 changes: 8 additions & 0 deletions pages/_pages/news-index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: "新闻"
permalink: /news/
layout: home
pagination:
enabled: true
collection: news
---

0 comments on commit 6ca8f8b

Please sign in to comment.