GithubHelp home page GithubHelp logo

rebron1900 / attila Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zutrinken/attila

4.0 0.0 1.0 11.65 MB

Ghost Theme

Home Page: https://attila.peteramende.de/

License: MIT License

JavaScript 15.95% Handlebars 29.45% SCSS 54.59%

attila's Introduction

Attila

这是一个针对中文优化,修复的修改版本,希望你用的开心。

Demo

优化内容如下:

  • 优化了中文字体显示

  • 缩小了主体内容区宽度,

  • 删除了题头图片,并更改了日期格式

  • 文章简介自动截取文章前 50 个字符

  • 评论适配 Twikoo,请在后台主题页面设置 Twikoo 腾讯云 id,参数名还是 Disqus 没改。

  • 增加了 Lightbox 插件,使用的开源库 Simplebox

  • 搜索改为使用 Fuse.js,现在可以搜索中文了。

  • 适配了友链界面,请在友链文章中插入 <hr class="links" /> 标签,然后把友链以 bookmark 形式插入文章即可。

  • 使用pangu.simple.js优化中文空格

  • 实现TOC功能,期初是实现少数派那样的...留下没技术的眼泪。
    给想要开启TOC的文章添加一个 #post-toc 的标签即可。

TODO

  • 类似少数派的 TOC 功能实现

  • 文章归档页面

  • 相册页面

  • ....


Attila

A content focused responsive theme for Ghost. See a demo at: attila.peteramende.de

♥️ Support

Maintaining this project takes a lot of time. You can buy me a drink if you enjoy using Attila. Cheers 🍻

📷 Screenshot

⭐️ Features

  • Theme options

  • Responsive layout

  • Light and Dark Mode

  • Search & Popular Tags

  • Post reading progress

  • Code highlight including line numbers

  • Disqus support

  • Member menu buttons

  • Ghost accent color

🌍 Localization

🟩 Up to date 🟧 Missing strings

Code Flag Language Status Translator
en 🇬🇧 English 🟩
de 🇩🇪 German 🟩
es 🇪🇸 Spanish 🟩 r1p
fr 🇫🇷 French 🟩 robink, alsyia
it 🇮🇹 Italian 🟩 fmaida, undrivendev
no 🇳🇴 Norwegian 🟧 arthurnoerve, oisann, Givemeurcookies
zh 🇨🇳 Chinese 🟩 hao-lee, izumiko, emperorjoker
id 🇮🇩 Indonesian 🟧 simplyeazy
ro 🇷🇴 Romanian 🟧 cdorin93
ru 🇷🇺 Russian 🟩 schamberg97, atjanov
tr 🇹🇷 Turkish 🟩 cgrgrbz, electricalgorithm
sv 🇸🇪 Swedish 🟧 martenj77
cs 🇨🇿 Czech 🟧 lunakv
pt 🇵🇹 Portuguese 🟧 matheusvanzan
vi 🇻🇳 Vietnamese 🟧 JustHmmmm
el 🇬🇷 Greek 🟧 thiodordelis
dk 🇩🇰 Danish 🟧 jmayntzhusen
ar Arabic 🟧 pop-eax
ca Catalan 🟧 arthurnoerve
lt 🇱🇹 Lithuanian 🟧 arthurnoerve
nl 🇳🇱 Dutch 🟧 gkdp
pl 🇵🇱 Polish 🟩 filipolszewski, MrBoombastic
eo Esperanto 🟧 ebanDev
ga Galego 🟩 r1p
uk 🇺🇦 Ukrainian 🟩 Rakanskiy, krupenik, vadimkin
ja 🇯🇵 Japanese 🟩 emperorjoker
fa Farsi 🟩 ItsAminZamani

Show subscribe / account button in navigation

  1. Go to partials/navigation-meta.hbs.

  2. Remove comments on line 24and 34.

🔠 Setup custom google fonts

  1. Go to fonts.google.com and choose a font.

  2. Choose Embed and copy the <link> code.

  3. Go to Code injection.

  4. Add this to Blog Header:

<link href="https://fonts.googleapis.com/css2?family=Mukta&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Crimson+Text&display=swap" rel="stylesheet">
<style>
  :root {
    --font-primary: 'Mukta', sans-serif;
    --font-secondary: 'Crimson Text', serif;
  }
</style>

🔍 Setup search

  1. Go to Integrations.

  2. Choose Add custom integration, name it Search and choose Create. Copy the generated Content API Key.

  3. Go to Code injection.

  4. Add this to Site Header:

<script>
  var gh_search_key = 'API_KEY';
  var gh_search_migration = 'v2';
</script>

⚙️ Development

Install Grunt:

npm install -g grunt-cli

Install Grunt dependencies:

npm install

Build Grunt project:

grunt build

The compress Grunt task packages the theme files into dist/<theme-name>.zip, which you can then upload to your site.

grunt compress

⚖️ Copyright & License

Copyright (C) 2015-2022 Peter Amende - Released under the MIT License.

attila's People

Contributors

zutrinken avatar rebron1900 avatar dependabot[bot] avatar marcozehe avatar christopher-siegel avatar rakanskiy avatar daskepon avatar aareksio avatar simplyeazy avatar r1p avatar vince2bir avatar matheusvanzan avatar martenj77 avatar cdorin93 avatar emperorjoker avatar schamberg97 avatar cagriguerbuez avatar alsyia avatar vaneves avatar sebhofmann avatar aaronmcox avatar arthurnoerve avatar filipolszewski avatar fmaida avatar atjanov avatar undrivendev avatar jurredejongh avatar oisann avatar hao-lee avatar rohmanhakim avatar

Stargazers

 avatar  avatar 林木木 avatar  avatar

Forkers

alphasqc

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.