Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
2 contributors

Users who have contributed to this file

@olOwOlo @panda-z

hugo-theme-even

GitHub contributors GitHub release GitHub commits (since latest release) GitHub

A super concise theme for Hugo

璇ヤ富棰樼Щ妞嶈嚜 hexo-theme-even

鍦ㄧ嚎棰勮 Demo

Screenshots

even-showcase

Installation

$ git clone https://github.com/olOwOlo/hugo-theme-even themes/even

閲嶈: 鍦ㄤ富棰樼殑 exampleSite 鐩綍涓嬫湁涓涓 config.toml 鏂囦欢锛灏嗚繖涓 config.toml 鏂囦欢澶嶅埗鍒颁綘鐨勭珯鐐圭洰褰曚笅锛屾牴鎹嚜宸辩殑闇姹傛洿鏀瑰嵆鍙

閲嶈: 鏈富棰樼敤鍒颁簡 Hugo Pipes 鍔熻兘銆傚闇淇敼 assets 鐩綍涓嬬殑鏂囦欢锛岃瀹夎 extended 鐗堛

娉ㄦ剰: 瀵逛簬杩欎釜涓婚锛屼綘搴旇浣跨敤 post 鑰屼笉鏄 posts锛屽嵆 hugo new post/some-content.md

Language Support

缈昏瘧璧勬簮鍦 themes/even/i18n/ 鏂囦欢澶癸紙鍐呯疆鍦ㄤ富棰樹腑锛夛紝浠ュ強绔欑偣鏍圭洰褰曚笅鐨 i18n/ 鏂囦欢澶逛腑銆備袱涓枃浠跺す涓嬬殑缈昏瘧璧勬簮灏嗕細琚悎骞讹紝涓旀牴鐩綍涓嬬殑浼樺厛绾уぇ浜庡唴缃簬涓婚涓殑銆

鍙渶瑕佹纭殑璁剧疆 defaultContentLanguage 鐨勫煎嵆鍙娇鐢ㄧ炕璇戣祫婧愩

defaultContentLanguage = "en"  # en / zh-cn / other...

鍚屾牱涔熸敮鎸佸叾浠栬瑷銆備妇渚嬫潵璇达紝涓烘敮鎸佸痉璇紝鍦ㄧ珯鐐规牴鐩綍涓嬪垱寤 /i18n/de.yaml 鏂囦欢銆傚弬鑰 en.yaml 鏂囦欢鏌ョ湅濡備綍缂栧啓缈昏瘧璧勬簮銆

闄勶細鍦ㄥ璇█妯″紡涓嬶紝褰撳墠姝h鐢ㄤ簬娓叉煋缃戠珯鐨勮瑷浼氳鐢ㄤ簬鍖归厤缈昏瘧璧勬簮銆

Favicon

涓轰簡瀹氬埗 favicon锛屼綘闇瑕佸湪绔欑偣鏍圭洰褰曠殑 static 鏂囦欢澶逛笅鏀剧疆涓嬭堪鎵鏈鏂囦欢锛岃繖灏嗚鐩 themes/even/static/ 鏂囦欢澶逛笅鐨勯偅浜涙枃浠躲

  • android-chrome-192x192.png
  • android-chrome-512x512.png
  • apple-touch-icon.png
  • browserconfig.xml
  • favicon.ico
  • favicon-16x16.png
  • favicon-32x32.png
  • manifest.json
  • mstile-150x150.png
  • safari-pinned-tab.svg

favicon generator (Google) 鑳藉甯姪浣犵敓鎴愯繖浜涙枃浠躲

Front Matter

浣犲彲浠ラ氳繃 front-matter 閽堝姣忎竴绡囨枃绔犲崟鐙繘琛岃缃themes/even/archetypes/default.md 鏂囦欢闄堝垪浜嗘墍鏈夊彲鐢ㄧ殑鍙傛暟銆傚皢璇ユ枃浠跺鍒跺埌绔欑偣鏍圭洰褰曠殑 archetypes 鏂囦欢澶逛笅灏嗕細鏈夋墍甯姪銆

Shortcodes

涓婚鎻愪緵浜 center, right, left, music, admonition 杩欎簺 shortcodes锛屽苟鏀寔涓哄唴缃殑 figure 璁剧疆 center, right, left 杩欎笁绉 class 鍊笺傜偣鍑杩欓噷鏌ョ湅璇︾粏鍐呭銆

Theme Color

涓婚鍐呯疆浜嗕簲绉嶉鑹 ( Default | Mint Green | Cobalt Blue | Hot Pink | Dark Violet )锛屼綘鍙互閫氳繃鏀瑰彉 /assets/sass/_variable.scss 鏂囦欢涓 $theme-color-config 鐨勫兼潵鏀瑰彉涓婚鐨勯鑹层

Update Theme

cd ./themes/even/
git pull

姣忓綋鏇存柊姝や富棰樻椂锛岄兘搴旀鏌 CHANGELOG.md 鏂囦欢锛屽彲鑳戒細鏈変竴浜涢噸澶ф洿鏀广

License

Released under the MIT License.

Acknowledgements