mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 19:15:16 +02:00
feat: move social share buttons below content
Also, add page_footer.html to help make page footers more consistent. Close #1383
This commit is contained in:
parent
d8e90e9d64
commit
ec8b60f71f
13 changed files with 181 additions and 183 deletions
25
scripts/list_language_packs.py
Normal file
25
scripts/list_language_packs.py
Normal file
|
@ -0,0 +1,25 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
# List Available Language Packs
|
||||
# Used for updating the Languages page of the documentation.
|
||||
# https://sourcethemes.com/academic/
|
||||
#
|
||||
# Prerequisites: pip3 install PyYAML
|
||||
|
||||
import yaml
|
||||
|
||||
LANG_PATH = Path(__file__).resolve().parent.parent.joinpath('data').joinpath('i18n')
|
||||
LANG_YAML = LANG_PATH.joinpath('languages.yaml')
|
||||
|
||||
|
||||
# Iterate over languages.
|
||||
with open(LANG_YAML) as f:
|
||||
master_map = yaml.safe_load(f)
|
||||
|
||||
# Print languages as a plaintext list.
|
||||
# lang_list = [master_map[master_item] for master_item in master_map]
|
||||
# print(', '.join(lang_list))
|
||||
|
||||
# Print languages as a Markdown list.
|
||||
for master_item in master_map:
|
||||
print(f'- **{master_map[master_item]}** ({master_item})')
|
Loading…
Add table
Add a link
Reference in a new issue