Compare commits
No commits in common. "armv7l" and "pages" have entirely different histories.
@ -1,4 +0,0 @@
|
|||||||
cleaninstall/
|
|
||||||
.git/
|
|
||||||
Makefile
|
|
||||||
devel/
|
|
8
.gitignore
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
.DS_Store
|
||||||
|
Thumbs.db
|
||||||
|
db.json
|
||||||
|
*.log
|
||||||
|
node_modules/
|
||||||
|
public/
|
||||||
|
.deploy*/
|
||||||
|
scaffolds/
|
@ -1,46 +1,25 @@
|
|||||||
image: docker:latest
|
# Deploy pages with hexo
|
||||||
|
image: node:9.7
|
||||||
|
|
||||||
stages:
|
pages:
|
||||||
- test
|
stage: deploy
|
||||||
- build
|
|
||||||
|
|
||||||
variables:
|
cache:
|
||||||
VERSION: 1.12a43-${CI_COMMIT_REF_NAME}
|
paths:
|
||||||
CACHETAG: build-${CI_COMMIT_REF_NAME}
|
- node_modules/
|
||||||
DOCKER_HOST: tcp://docker:2375
|
|
||||||
|
|
||||||
services:
|
|
||||||
- docker:dind
|
|
||||||
|
|
||||||
before_script:
|
|
||||||
- apk add curl
|
|
||||||
- docker info
|
|
||||||
- docker version
|
|
||||||
- echo "$CI_JOB_TOKEN" | docker login -u "$CI_REGISTRY_USER" "$CI_REGISTRY" --password-stdin
|
|
||||||
|
|
||||||
test:
|
|
||||||
stage: test
|
|
||||||
script:
|
script:
|
||||||
- cat /etc/hosts
|
- npm install hexo-cli -g
|
||||||
- env|sort
|
- npm install
|
||||||
- docker build -t ${CI_REGISTRY_IMAGE}:${VERSION} .
|
- hexo generate
|
||||||
- docker images
|
|
||||||
tags:
|
artifacts:
|
||||||
- docker-armv7l
|
paths:
|
||||||
|
- public
|
||||||
|
|
||||||
only:
|
only:
|
||||||
- debug
|
- pages
|
||||||
|
|
||||||
build:
|
|
||||||
stage: build
|
|
||||||
script:
|
|
||||||
- if [ -f init ]; then chmod 500 init; fi
|
|
||||||
- docker pull ${CI_REGISTRY_IMAGE}:${CACHETAG} || true
|
|
||||||
- docker build --cache-from ${CI_REGISTRY_IMAGE}:${CACHETAG} -t ${CI_REGISTRY_IMAGE}:${VERSION} -t ${CI_REGISTRY_IMAGE}:${CACHETAG} .
|
|
||||||
- docker push ${CI_REGISTRY_IMAGE}:${VERSION}
|
|
||||||
- docker push ${CI_REGISTRY_IMAGE}:${CACHETAG}
|
|
||||||
- if [ -n "${TRIGGER_PIPELINE}" ]; then curl -sSX POST -F token=${TRIGGER_PIPELINE} -F ref=armv7l-extras http://dev.leenooks.net/api/v4/projects/45/trigger/pipeline > /dev/null; fi
|
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
- armv7l
|
- pages
|
||||||
only:
|
|
||||||
- armv7l
|
|
||||||
|
52
Dockerfile
@ -1,52 +0,0 @@
|
|||||||
# NAME leenooks/mysticbbs
|
|
||||||
# VERSION 1.12a43
|
|
||||||
|
|
||||||
FROM debian:stretch-slim
|
|
||||||
|
|
||||||
MAINTAINER Deon George <deon@leenooks.net>
|
|
||||||
|
|
||||||
# Pre-requisites
|
|
||||||
# + Base application requires unzip zip curl libhunspell-dev libpython2.7
|
|
||||||
RUN apt-get update \
|
|
||||||
&& apt-get install -yqq unzip zip curl libhunspell-dev libpython2.7 patch \
|
|
||||||
&& rm -rf /var/lib/apt/lists/* /tmp/*
|
|
||||||
|
|
||||||
# Add in Leenooks' apt repository
|
|
||||||
RUN curl -s http://apt.leenooks.net/setup.sh | sh
|
|
||||||
|
|
||||||
# For SSH connections
|
|
||||||
RUN apt-get update \
|
|
||||||
&& apt-get install --allow-unauthenticated -yqq libcl \
|
|
||||||
&& rm -rf /var/lib/apt/lists/* /tmp/*
|
|
||||||
|
|
||||||
RUN ln -sf /usr/share/zoneinfo/Australia/Melbourne /etc/localtime && echo 'Australia/Melbourne' > /etc/timezone
|
|
||||||
|
|
||||||
WORKDIR /mystic
|
|
||||||
ENV mysticbbs /mystic/data
|
|
||||||
EXPOSE 22 23 24554
|
|
||||||
|
|
||||||
ADD mystic.tar.gz /
|
|
||||||
VOLUME ["/mystic/data"]
|
|
||||||
|
|
||||||
# Enable custom scripts to live in the data dir
|
|
||||||
RUN ln -sf ../data/scripts /mystic/scripts/custom
|
|
||||||
|
|
||||||
# Fix temp locations
|
|
||||||
RUN ln -s data/tempftn /mystic/tempftn && ln -s data/tempmis /mystic/tempmis && ln -s data/temputil /mystic/temputil
|
|
||||||
|
|
||||||
# Add ZeroTier
|
|
||||||
RUN apt-get update \
|
|
||||||
&& apt-get install -yqq gnupg1 \
|
|
||||||
&& rm -rf /var/lib/apt/lists/* /tmp/*
|
|
||||||
RUN echo "deb http://download.zerotier.com/debian/stretch stretch main" > /etc/apt/sources.list.d/zerotier.list
|
|
||||||
COPY zt-gpg-key /tmp/
|
|
||||||
RUN apt-key add /tmp/zt-gpg-key
|
|
||||||
RUN apt-get update \
|
|
||||||
&& apt-get install -yq zerotier-one \
|
|
||||||
&& rm -rf /var/lib/apt/lists/* /tmp/*
|
|
||||||
|
|
||||||
VOLUME [ "/var/lib/zerotier-one" ]
|
|
||||||
|
|
||||||
COPY init /sbin/init
|
|
||||||
ENTRYPOINT [ "/sbin/init" ]
|
|
||||||
CMD [ "start" ]
|
|
18
Makefile
@ -1,18 +0,0 @@
|
|||||||
NAME=$$(head -1 Dockerfile|grep NAME |awk '{print $$3}')
|
|
||||||
VERSION=$$(grep VERSION Dockerfile |awk '{print $$3}')
|
|
||||||
REGISTRY=registry.leenooks.net
|
|
||||||
SUBDIRS := $(wildcard */.)
|
|
||||||
.PHONY: all build image $(SUBDIRS)
|
|
||||||
|
|
||||||
all: build
|
|
||||||
|
|
||||||
build: Dockerfile
|
|
||||||
@if test "$(NAME)" = ""; then echo "NAME not in Dockerfile."; exit 1; fi
|
|
||||||
@if test "$(VERSION)" = ""; then echo "VERSION not in Dockerfile."; exit 1; fi
|
|
||||||
@if test -f image.bz2; then rm -f image.bz2; fi
|
|
||||||
@#docker pull $(NAME):$(VERSION)
|
|
||||||
@#docker build --cache-from $(NAME):$(VERSION) -t $(NAME):$(VERSION) .
|
|
||||||
docker build -t $(NAME):$(VERSION) .
|
|
||||||
|
|
||||||
image: Dockerfile
|
|
||||||
docker save $(NAME):$(VERSION) | bzip2 -9 > image.bz2
|
|
67
README.md
@ -1,67 +0,0 @@
|
|||||||
# Mystic BBS (Bulletin Board Software)
|
|
||||||
----
|
|
||||||
## What is Mystic BBS?
|
|
||||||
see [MysticBBS](https://www.mysticbbs.com)
|
|
||||||
|
|
||||||
> Mystic BBS was conceived around the year 1995 when the author became frustrated by the lack of customization available with Renegade BBS, and first released to the public in late 1997 during a period when many BBS packages were seeing a decline (or a full stop) in development. Mystic is developed from the ground up with all original source code and is intended to be the spiritual successor to both Telegard and Renegade (two of the packages the author used prior to developing Mystic BBS).
|
|
||||||
|
|
||||||
> With the fall of MS-DOS and the decline of the BBS, Mystic continued to push forward by releasing an OS/2 and Windows 32 native version in 1998. Mystic was the first of the non-commerical DOS based BBS packages to make the transition and integrate directly with the Telnet protocol. Mystic also went on to become the first of the MS-DOS based packages to release a native Linux version in 1999, and the first to introduce a standardized platform for DOOR games across all 4 operating systems.
|
|
||||||
|
|
||||||
> In the following years after the first MS-DOS release in 1997, Mystic grew to become one of the most widely used BBS packages. Popular amongst many SysOps who took ease of customization and the user experience seriously, it is arguable that Mystic was (or even still is) the most popular BBS software for those who share a common interest in ANSI art and BBS modding.
|
|
||||||
|
|
||||||
> In recent years, Mystic has removed its DOS version and its limitations, and has moved on to better integrate with Internet protocols. Mystic now has internal Telnet, RLOGIN, SSH, NNTP, POP3, SMTP, FTP, HTTP and BINKP servers while continuing to focus on and enhance the SysOp and user experience.
|
|
||||||
|
|
||||||
----
|
|
||||||
## About this Docker Container
|
|
||||||
This Docker Container represents a completed installation of MysticBBS. It is ready to configure and personalise.
|
|
||||||
|
|
||||||
To use this container:
|
|
||||||
|
|
||||||
1. Docker pull it from my registry. (Actually you can skip this step, but its worth doing it anyway!)
|
|
||||||
|
|
||||||
docker pull registry.leenooks.net/leenooks/mysticbbs:1.12a39-armv7l
|
|
||||||
|
|
||||||
2. Create a directory to hold your BBS data. (I use */srv/docker/mystic*).
|
|
||||||
|
|
||||||
mkdir -p /srv/mystic/data
|
|
||||||
|
|
||||||
3. Start the container.
|
|
||||||
|
|
||||||
docker run -itd -v /srv/mystic/data:/mystic/data -p 10022:22 -p 10023:23 -p 24554:24554 registry.leenooks.net/leenooks/mysticbbs:1.12a39-armv7l
|
|
||||||
|
|
||||||
Explanation of these parameters:
|
|
||||||
|
|
||||||
| Parameter | Value |
|
|
||||||
| :- | :-- |
|
|
||||||
| -d | Detached mode: run the container in the background and print the new container ID. |
|
|
||||||
| -i | Keep STDIN open even if not attached. (required) |
|
|
||||||
| -n | Give your container a specific name. (optional) |
|
|
||||||
| -p | Map host ports to container ports. (may be required, otherwise recommended) |
|
|
||||||
| -t | Allocate a pseudo-TTY. (required) |
|
|
||||||
| -v | Map a path on the host into the container (optional but recommended). |
|
|
||||||
|
|
||||||
(There are other useful parameters you can use, like --restart, etc. If you dont pass in a data volume for /mystic/data, docker will create one and preserve it if you start subsequent containers a specific way (beyond the scope of this README - so its recommended you do this in first instance anyway.)
|
|
||||||
|
|
||||||
Remember your container ID *(your number will be different)*.
|
|
||||||
|
|
||||||
ca219a461376...
|
|
||||||
|
|
||||||
4. Attach to your container and create your sysop user.
|
|
||||||
|
|
||||||
docker exec -it ca219a461376 ./mystic -l
|
|
||||||
|
|
||||||
5. Upgrade your new user to sysop levels
|
|
||||||
|
|
||||||
docker exec -it ca219a461376 ./mystic -cfg
|
|
||||||
|
|
||||||
6. You can now start to play. If you externalised your telnet port, then you can telnet in.
|
|
||||||
|
|
||||||
If you want to monitor your container, or stop it, attach to the console with:
|
|
||||||
|
|
||||||
docker attach ca219a461376
|
|
||||||
|
|
||||||
You can also run this in a swarm (I do)!
|
|
||||||
|
|
||||||
----
|
|
||||||
## Extras Container
|
|
||||||
There is an "extras" container with some additional MysticBBS mods pre-installed. You'll find info on that in the [armv7l-extras](https://dev.leenooks.net/leenooks/mysticbbs/blob/armv7l-extras/README.md#info-on-the-images) branch.
|
|
81
_config.yml
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
# Hexo Configuration
|
||||||
|
## Docs: https://hexo.io/docs/configuration.html
|
||||||
|
## Source: https://github.com/hexojs/hexo/
|
||||||
|
|
||||||
|
# Site
|
||||||
|
title: Chinwag BBS
|
||||||
|
subtitle: BBS is back!
|
||||||
|
description:
|
||||||
|
keywords: bbs chinwag mysticbbs
|
||||||
|
author: Deon George
|
||||||
|
language: en
|
||||||
|
timezone: Australia/Melbourne
|
||||||
|
|
||||||
|
# URL
|
||||||
|
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
|
||||||
|
url: https://chinwag.leenooks.net
|
||||||
|
root: /
|
||||||
|
permalink: :year/:month/:day/:title/
|
||||||
|
permalink_defaults:
|
||||||
|
|
||||||
|
# Directory
|
||||||
|
source_dir: source
|
||||||
|
public_dir: public
|
||||||
|
tag_dir: tags
|
||||||
|
archive_dir: archives
|
||||||
|
category_dir: categories
|
||||||
|
code_dir: downloads/code
|
||||||
|
i18n_dir: :lang
|
||||||
|
skip_render:
|
||||||
|
|
||||||
|
# Writing
|
||||||
|
new_post_name: :title.md # File name of new posts
|
||||||
|
default_layout: pages
|
||||||
|
titlecase: false # Transform title into titlecase
|
||||||
|
external_link: true # Open external links in new tab
|
||||||
|
filename_case: 0
|
||||||
|
render_drafts: false
|
||||||
|
post_asset_folder: true
|
||||||
|
relative_link: false
|
||||||
|
future: true
|
||||||
|
highlight:
|
||||||
|
enable: true
|
||||||
|
line_number: true
|
||||||
|
auto_detect: true
|
||||||
|
tab_replace:
|
||||||
|
|
||||||
|
# Home page setting
|
||||||
|
# path: Root path for your blogs index page. (default = '')
|
||||||
|
# per_page: Posts displayed per page. (0 = disable pagination)
|
||||||
|
# order_by: Posts order. (Order by date descending by default)
|
||||||
|
index_generator:
|
||||||
|
path: ''
|
||||||
|
per_page: 10
|
||||||
|
order_by: -date
|
||||||
|
|
||||||
|
# Category & Tag
|
||||||
|
default_category: uncategorized
|
||||||
|
category_map:
|
||||||
|
tag_map:
|
||||||
|
|
||||||
|
# Date / Time format
|
||||||
|
## Hexo uses Moment.js to parse and display date
|
||||||
|
## You can customize the date format as defined in
|
||||||
|
## http://momentjs.com/docs/#/displaying/format/
|
||||||
|
date_format: YYYY-MM-DD
|
||||||
|
time_format: HH:mm:ss
|
||||||
|
|
||||||
|
# Pagination
|
||||||
|
## Set per_page to 0 to disable pagination
|
||||||
|
per_page: 10
|
||||||
|
pagination_dir: page
|
||||||
|
|
||||||
|
# Extensions
|
||||||
|
## Plugins: https://hexo.io/plugins/
|
||||||
|
## Themes: https://hexo.io/themes/
|
||||||
|
theme: hueman
|
||||||
|
|
||||||
|
# Deployment
|
||||||
|
## Docs: https://hexo.io/docs/deployment.html
|
||||||
|
deploy:
|
||||||
|
type:
|
4
cleaninstall/.gitignore
vendored
@ -1,4 +0,0 @@
|
|||||||
data
|
|
||||||
mystic
|
|
||||||
mods
|
|
||||||
*.zip
|
|
@ -1,82 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
MYSTIC_SOURCE=${1:-mys112a42_pi.zip}
|
|
||||||
[ "$1" ] && shift
|
|
||||||
SPELL_SOURCE=${1:-mystic_spellcheck_v2.zip}
|
|
||||||
[ "$1" ] && shift
|
|
||||||
|
|
||||||
CLEAN_INSTALL_DIR=x
|
|
||||||
INSTALL_CONTAINER=debian:stretch-slim
|
|
||||||
TARGET_DIR=mystic
|
|
||||||
PATCH_FILE=mystic.112a39.patch
|
|
||||||
|
|
||||||
[ $(id -u) -ne 0 ] && echo "ERROR: You need to run me as root." && exit 1
|
|
||||||
|
|
||||||
if [ -d ${TARGET_DIR} ]; then
|
|
||||||
echo "! Skipping installation [${TARGET_DIR}] already exists"
|
|
||||||
|
|
||||||
else
|
|
||||||
# 1) Download Mystic App
|
|
||||||
[ ! -f ${MYSTIC_SOURCE} -o ! -f ${SPELL_SOURCE} ] && echo "ERROR: Source file missing [${MYSTIC_SOURCE}/${SPELL_SOURCE}], did you download it?" && exit 1
|
|
||||||
|
|
||||||
# 2) Create a new directory for it and unzip the App into it
|
|
||||||
[ -d ${CLEAN_INSTALL_DIR} ] && echo "ERROR: Directory [${CLEAN_INSTALL_DIR}] already exists!" && exit 1
|
|
||||||
|
|
||||||
unzip ${MYSTIC_SOURCE} -d ${CLEAN_INSTALL_DIR}
|
|
||||||
chmod +x ${CLEAN_INSTALL_DIR}/install
|
|
||||||
[ $? -gt 0 ] && echo "ERROR: Unzip failed?" && exit 1
|
|
||||||
|
|
||||||
# 3) Run docker with -v mapping the unzip files to an arbitrary directory -v unzipfiles:/install
|
|
||||||
# ** @TODO Request upstream to default QWK and Echo DIRs to named dir as well during installation
|
|
||||||
echo "Running docker, please perform the installation, and set:"
|
|
||||||
echo "* Installation directory to /mystic"
|
|
||||||
echo "* Data directories prefixed with /mystic/data"
|
|
||||||
echo "+ * Leave System Path and Scripts to /mystic"
|
|
||||||
echo "+ * Especially, QWK Settings and Echomail Settings"
|
|
||||||
|
|
||||||
docker run --rm -it -v ${PWD}/${CLEAN_INSTALL_DIR}:/install ${INSTALL_CONTAINER} /bin/bash -c "cd /install; ./install; [ -d /mystic ] && echo \"Now change QWK Settings and Echomail settings...\" && cd /mystic/ && sleep 5 && ./mystic -cfg && cd /; mv /mystic /install/"
|
|
||||||
|
|
||||||
[ ! -d ${CLEAN_INSTALL_DIR}/mystic/data/data ] && echo "ERROR: Expected a [${CLEAN_INSTALL_DIR}/mystic/data/data] dir, but it wasnt there?" && exit 1
|
|
||||||
[ ! -d ${CLEAN_INSTALL_DIR}/mystic/scripts ] && echo "ERROR: Expected a [${CLEAN_INSTALL_DIR}/mystic/scripts] dir, but it wasnt there?" && exit 1
|
|
||||||
[ ! -d ${CLEAN_INSTALL_DIR}/mystic/semaphore ] && echo "ERROR: Expected a [${CLEAN_INSTALL_DIR}/mystic/semaphore] dir, but it wasnt there?" && exit 1
|
|
||||||
|
|
||||||
# Add the spell directionary files to the data directory
|
|
||||||
unzip ${SPELL_SOURCE} dictionary.* -d ${CLEAN_INSTALL_DIR}/mystic/data/data
|
|
||||||
|
|
||||||
# 4) Run this script which will clean up the install and ZIP it up to be used with a docker.
|
|
||||||
cd ${CLEAN_INSTALL_DIR}/mystic
|
|
||||||
|
|
||||||
mv files mystic.dat data/
|
|
||||||
rm -rf localqwk echomail
|
|
||||||
|
|
||||||
# We need a symbolic link so that MIS can find MYSTIC
|
|
||||||
# @TODO Request fix from upstream
|
|
||||||
ln -s ../mystic data/mystic
|
|
||||||
|
|
||||||
chmod 755 * scripts/mide scripts/mplc scripts/*.mpx
|
|
||||||
chmod 644 *.ini *.txt docs/*.txt scripts/*.mps scripts/*.ini
|
|
||||||
|
|
||||||
patch -p0 < ../../${PATCH_FILE}
|
|
||||||
|
|
||||||
# Clean up data dir
|
|
||||||
find data -type f -exec chmod 644 {} \;
|
|
||||||
|
|
||||||
# Create our temp dirs
|
|
||||||
mkdir data/tempftn data/tempmis data/temputil
|
|
||||||
|
|
||||||
# Finished
|
|
||||||
mv data ../..
|
|
||||||
cd ../..
|
|
||||||
mv ${CLEAN_INSTALL_DIR}/mystic .
|
|
||||||
rm -rf ${CLEAN_INSTALL_DIR}
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Tar up the data dir and add it back to the main install
|
|
||||||
echo "Zipping up data dir..."
|
|
||||||
tar czf mystic/data.tar.gz data/
|
|
||||||
|
|
||||||
# That dir is now ready for the image
|
|
||||||
tar czf ../mystic.tar.gz mystic
|
|
||||||
echo "OK mystic.tar.gz can be moved to your docker build"
|
|
@ -1,43 +0,0 @@
|
|||||||
--- nodespy.ini.orig 2018-08-22 21:51:26.498766941 +1000
|
|
||||||
+++ nodespy.ini 2018-08-22 21:51:51.018652751 +1000
|
|
||||||
@@ -12,7 +12,7 @@
|
|
||||||
; terminal, you can do that here otherwise it will use the current
|
|
||||||
; directory
|
|
||||||
|
|
||||||
- ;transfer_dir = c:\
|
|
||||||
+ transfer_dir = /mystic/data/nodespy/
|
|
||||||
|
|
||||||
; Use auto zmodem downloads and detect automatically zmodem uploads
|
|
||||||
|
|
||||||
--- scripts/mide.ini.orig 2018-08-22 22:26:44.452789582 +1000
|
|
||||||
+++ scripts/mide.ini 2018-08-22 22:27:28.062371856 +1000
|
|
||||||
@@ -44,6 +44,6 @@
|
|
||||||
; For rootpath, you need to include the directory where the MYSTIC binary
|
|
||||||
; exists.
|
|
||||||
|
|
||||||
- rootpath = c:\mystic\
|
|
||||||
- username = sysopname
|
|
||||||
- password = password
|
|
||||||
+ rootpath = /mystic/
|
|
||||||
+ username = guest
|
|
||||||
+ password = guest
|
|
||||||
--- mutil.ini.orig 2018-08-24 12:25:37.571848476 +1000
|
|
||||||
+++ mutil.ini 2018-08-24 12:27:14.481005284 +1000
|
|
||||||
@@ -75,7 +75,7 @@
|
|
||||||
; Set this value if you want to run mutil from a directory other than
|
|
||||||
; the root Mystic directory or the mysticbbs environment variable:
|
|
||||||
|
|
||||||
- ; mystic_directory=c:\mystic\mystic.dat
|
|
||||||
+ ; mystic_directory=/mystic/data/mystic.dat
|
|
||||||
|
|
||||||
; If no directory is specified in the logfile name, mUtil will attempt
|
|
||||||
; to use the configured LOGS directory from in Mystic's configuration.
|
|
||||||
@@ -97,7 +97,7 @@
|
|
||||||
loglevel=2
|
|
||||||
|
|
||||||
; logfile time stamp. defaults to NNN DD HH:II:SS if not set here
|
|
||||||
- ;logstamp = YYYYHHMMHHIISS
|
|
||||||
+ ;logstamp = YYYYMMDDHHIISS
|
|
||||||
|
|
||||||
; Log roller type:
|
|
||||||
; 0 = Do not roll log files
|
|
92
init
@ -1,92 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
NAME="Mystic BBS"
|
|
||||||
VERSION="A43"
|
|
||||||
INIT=mis
|
|
||||||
|
|
||||||
function stop {
|
|
||||||
echo "Stopping ${NAME}"
|
|
||||||
kill $(ps -Af|grep ${INIT} |grep -v grep|awk '{ print $2}')
|
|
||||||
}
|
|
||||||
|
|
||||||
trap 'stop' SIGTERM
|
|
||||||
export PATH=$PATH:/mystic
|
|
||||||
|
|
||||||
if [ "$1" == "start" ]; then
|
|
||||||
# First time install - expand out our data directory
|
|
||||||
if [ $(find data|wc -l) -le 1 ]; then
|
|
||||||
echo "** First time install, deploying sample setup"
|
|
||||||
tar xzf data.tar.gz
|
|
||||||
echo ${VERSION} > .version
|
|
||||||
|
|
||||||
# We need to upgrade
|
|
||||||
else
|
|
||||||
OLD_VERSION=$(cat data/.version)
|
|
||||||
echo "** Upgrading [${OLD_VERSION}]"
|
|
||||||
case ${OLD_VERSION} in
|
|
||||||
A39)
|
|
||||||
echo "Processing data/default.txt"
|
|
||||||
set -x
|
|
||||||
[ ! -d data/upgrade/${VERSION}/${OLD_VERSION} ] && mkdir -p data/upgrade/${VERSION}/${OLD_VERSION}
|
|
||||||
cd data/upgrade/${VERSION}/${OLD_VERSION}
|
|
||||||
[ -d data ] && rm -rf data
|
|
||||||
tar xzf /mystic/data.tar.gz
|
|
||||||
cd /mystic/data
|
|
||||||
diff -u data/default.txt upgrade/${VERSION}/${OLD_VERSION}/data/data/default.txt > upgrade/${VERSION}/${OLD_VERSION}/default.txt.patch && echo $?
|
|
||||||
if [ -s upgrade/${VERSION}/${OLD_VERSION}/default.txt.patch ]; then
|
|
||||||
patch -p 0 < upgrade/${VERSION}/${OLD_VERSION}/default.txt.patch
|
|
||||||
echo "! Check upgrade/${VERSION}/${OLD_VERSION}/default.txt.patch for an strings that may have been overwritten..."
|
|
||||||
else
|
|
||||||
rm -f upgrade/${VERSION}/${OLD_VERSION}/default.txt.patch
|
|
||||||
fi
|
|
||||||
|
|
||||||
for i in msg_index.ini msg_index.ans msg_index_help.ans; do
|
|
||||||
cp upgrade/${VERSION}/${OLD_VERSION}/data/text/$i text/
|
|
||||||
done
|
|
||||||
|
|
||||||
cp upgrade/${VERSION}/${OLD_VERSION}/data/data/cfgroot4.ans data/
|
|
||||||
../upgrade
|
|
||||||
cd ../scripts
|
|
||||||
./mplc -all
|
|
||||||
cd ../data
|
|
||||||
rm -rf upgrade/${VERSION}/${OLD_VERSION}/data
|
|
||||||
echo A42 > .version
|
|
||||||
;;
|
|
||||||
|
|
||||||
A42)
|
|
||||||
set -x
|
|
||||||
[ ! -d data/upgrade/${VERSION}/${OLD_VERSION} ] && mkdir -p data/upgrade/${VERSION}/${OLD_VERSION}
|
|
||||||
cd data/upgrade/${VERSION}/${OLD_VERSION}
|
|
||||||
[ -d data ] && rm -rf data
|
|
||||||
tar xzf /mystic/data.tar.gz
|
|
||||||
cd /mystic/data
|
|
||||||
|
|
||||||
for i in text/userchat.ans text/userchat.ini; do
|
|
||||||
cp upgrade/${VERSION}/${OLD_VERSION}/data/$i ./$i
|
|
||||||
done
|
|
||||||
|
|
||||||
diff -ur text/ upgrade/${VERSION}/${OLD_VERSION}/data/text/ > upgrade/${VERSION}/${OLD_VERSION}/text.patch || true
|
|
||||||
|
|
||||||
rm -rf upgrade/${VERSION}/${OLD_VERSION}/data
|
|
||||||
echo A43 > .version
|
|
||||||
;;
|
|
||||||
|
|
||||||
A43) echo "Already up to date!" ;;
|
|
||||||
|
|
||||||
*) echo "!! Dont know how to upgrade" && exit 1
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -x /usr/sbin/zerotier-one -a -n "${ENABLE_ZT}" ]; then
|
|
||||||
echo "** Starting ZeroTier"
|
|
||||||
mkdir /dev/net && mknod /dev/net/tun -m 666 c 10 200
|
|
||||||
/usr/sbin/zerotier-one -d
|
|
||||||
fi
|
|
||||||
|
|
||||||
# OK, start
|
|
||||||
exec ${INIT} server
|
|
||||||
|
|
||||||
else
|
|
||||||
exec $@
|
|
||||||
fi
|
|
BIN
mystic.tar.gz
3229
package-lock.json
generated
Normal file
20
package.json
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"name": "hexo-site",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"private": true,
|
||||||
|
"hexo": {
|
||||||
|
"version": "3.9.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"hexo": "^3.9.0",
|
||||||
|
"hexo-generator-archive": "^0.1.5",
|
||||||
|
"hexo-generator-category": "^0.1.3",
|
||||||
|
"hexo-generator-index": "^0.2.1",
|
||||||
|
"hexo-generator-json-content": "^3.0.1",
|
||||||
|
"hexo-generator-tag": "^0.2.0",
|
||||||
|
"hexo-renderer-ejs": "^0.3.1",
|
||||||
|
"hexo-renderer-marked": "^0.3.2",
|
||||||
|
"hexo-renderer-stylus": "^0.3.3",
|
||||||
|
"hexo-server": "^0.3.1"
|
||||||
|
}
|
||||||
|
}
|
47
source/_posts/ansitex.md
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
---
|
||||||
|
title: ANSItex BBS
|
||||||
|
comments: false
|
||||||
|
date: 2019-01-21
|
||||||
|
thumbnail: /images/ansitex.png
|
||||||
|
category:
|
||||||
|
- BBS
|
||||||
|
- ANSItex BBS
|
||||||
|
---
|
||||||
|
ANSItex is a fusion of ANSI and Videotex.
|
||||||
|
|
||||||
|
I frequented an Australian Videotex service in the 80's called Viatel. I've been inspired to recreate a Videotex service, and I started out building [OzTex](/2019/01/01/oztex/).
|
||||||
|
|
||||||
|
So Videotex was limited with 40 characters and some basic graphics - I thought I'd try putting an ANSI presentation to it, and I'm using the same code to make ANSItex available. Its still work in progress, but you'll get an idea on it below.
|
||||||
|
|
||||||
|
If you are interested in taking a look at what I have so far, just press the *Connect* button below, and create an account.
|
||||||
|
<div id="fTelnetContainer" class="fTelnetContainer zoomTarget" data-targetsize="0.9"></div>
|
||||||
|
<script>document.write('<script src="//embed-v2.ftelnet.ca/js/ftelnet-loader.norip.xfer.js?v=' + (new Date()).getTime() + '"><\/script>');</script>
|
||||||
|
<script>
|
||||||
|
var Options = new fTelnetOptions();
|
||||||
|
Options.AllowModernScrollback = false;
|
||||||
|
Options.BareLFtoCRLF = false;
|
||||||
|
Options.BitsPerSecond = 57600;
|
||||||
|
Options.ConnectionType = 'tcp';
|
||||||
|
Options.Emulation = 'ansi-bbs';
|
||||||
|
Options.Enter = '#';
|
||||||
|
Options.Font = 'CP437';
|
||||||
|
Options.ForceWss = true;
|
||||||
|
Options.Hostname = 'chinwag.leenooks.net';
|
||||||
|
Options.LocalEcho = false;
|
||||||
|
Options.Port = 443;
|
||||||
|
Options.ProxyHostname = '';
|
||||||
|
Options.ProxyPort = 80;
|
||||||
|
Options.ProxyPortSecure = 443;
|
||||||
|
Options.ScreenColumns = 80;
|
||||||
|
Options.ScreenRows = 25;
|
||||||
|
Options.WebSocketUrlPath = '/ws/ansitex/23';
|
||||||
|
Options.SplashScreen = 'G1swOzQwOzM3bSAbWzFt2sTEvyAg2sS/INrExMTExMTEvyDaxMTEvxtbMG0bWzVDG1sxbdrExMTExMTEvyDaxMTExMTExL8g2sTExMTExMS/INrExMTExMTEvw0KG1swOzMxbc0bWzE7MzdtsxtbMzBt+RtbMzdtILMbWzMxbc3NG1szN22zG1szMG35G1szN22zG1szMW3NG1szN22zG1szMG35G1szN20gINXNuBtbMzBt+RtbMzdtsxtbMzFtzRtbMzdtsxtbMzBt+RtbMzdtICCzG1szMW3Nzc3NzRtbMzdtsxtbMzBt+RtbMzdtICDVzbgbWzMwbfkbWzM3bbMbWzMxbc0bWzM3bbMbWzMwbfkbWzM3bSAg1c24G1szMG35G1szN22zG1szMW3NG1szN22zG1szMG35G1szN20g1bjVuBtbMzFt+htbMzdtsxtbMzFtzRtbMzdtsxtbMzBt+RtbMzdtICDVzbgbWzMwbfkbWzM3bbMbWzA7MzFtzQ0KG1sxOzQxbbAbWzQwOzM3bbMgILMbWzMxbbIbWzQxbdsbWzQwOzM3bbMgsxtbNDFtIBtbNDBtsyAgIMC/wMTZG1s0MTszMW2wG1s0MDszN22zICAgsxtbNDE7MzFt2xtbNDBtsrKyG1s0MTszN20gG1s0MG2zICAgsxtbMzFtshtbMzdtwMTZG1s0MTszMW2wG1s0MDszN22zICAgsxtbNDE7MzFt2xtbNDA7MzdtsyCzG1s0MW0gG1s0MG2zICCz1L6zILMbWzQxbSAbWzQwbbMgICDAv8DE2RtbNDE7MzFtsBtbMG0NChtbMTs0MTszMW2xG1s0MDszN22zICCz1bizILMbWzQxOzMxbbAbWzQwOzM3bbMgICDa2drEvxtbNDE7MzFtsRtbNDA7MzdtsyAgILMbWzQxOzMxbbIbWzQwOzM3bdrEvxtbNDE7MzFtsBtbNDA7MzdtsyAgILMbWzMxbbAbWzM3bdrEvxtbNDE7MzFtsRtbNDA7MzdtsyAgILMbWzQxOzMxbbIbWzQwOzM3bbMgsxtbNDE7MzFtsBtbNDA7MzdtsyAgsxtbMzFtsrEbWzM3bbMgsxtbNDE7MzFtsBtbNDA7MzdtsyAgINrZ2sS/G1s0MTszMW2xG1swbQ0KG1sxOzQxOzMxbbIbWzQwOzM3bbMgIMDZwNkgsxtbNDE7MzFtsRtbNDA7MzdtsyAgILMbWzQxOzMxbbAbWzQwOzM3bbMgsxtbNDE7MzFtshtbNDA7MzdtsyAgIMDE2SCzG1s0MTszMW2xG1s0MDszN22zICAgsxtbNDE7MzFtsBtbNDA7MzdtsyCzG1s0MTszMW2yG1s0MDszN22zICAgwMTZILMbWzQxOzMxbbEbWzQwOzM3bbMgILMbWzMxbbEbWzQxbbAbWzQwOzM3bbMgsxtbNDE7MzFtsRtbNDA7MzdtsyAgILMbWzQxOzMxbbAbWzQwOzM3bbMgsxtbNDE7MzFtshtbMG0NChtbMzFtzRtbMTszN22zG1szMG35G1swbRtbNUMbWzE7MzBt+RtbMzdtsxtbMzFtzRtbMzdtsxtbMzBt+RtbMzdtICDUzb4bWzMwbfkbWzM3bbMbWzMxbc0bWzM3bbMbWzMwbfkbWzBtG1s1QxtbMTszMG35G1szN22zG1szMW3NG1szN22zG1szMG35G1szN20gINTNvhtbMzBt+RtbMzdtsxtbMzFtzRtbMzdtsxtbMzBt+RtbMG0bWzVDG1sxOzMwbfkbWzM3bbMbWzMxbc0bWzM3bbMbWzMwbfkbWzM3bSCzG1szMW3NzRtbMzdtsxtbMzBt+RtbMzdtsxtbMzFtzRtbMzdtsxtbMzBt+RtbMzdtICDUzb4bWzMwbfkbWzM3bbMbWzA7MzFtzQ0KG1szN20gG1sxbdTNzc3Nzc3NviDUzc3Nzc3Nzb4g1M3Nzc3Nzc2+INTNzc3Nzc3NviDUzc3Nzc3Nzb4g1M3NviAg1M2+INTNzc3Nzc3Nvg0KG1s0MW0gIEEgdkJCUyBieSAuLi4uZGVvbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIBtbMG0NCiAbWzFtWW91IGhhdmUgY29ubmVjdGVkIHRvIBtbMDszMW1WQkJTG1sxOzM3bS4NCg0KIFRoaXMgaXMgYSBwdWJsaWMgYWNjZXNzG1swOzM0bSBBTlNJdGV4G1sxOzM3bSBCQlMuDQoNChtbMG0gG1sxbVdoaWxlIHRoaXMgc3lzdGVtIGlzIGN1cnJlbnRseSB1bmRlciBkZXZlbG9wbWVudCwgeW91IGFyZSB3ZWxjb21lIHRvIHVzZSBpdA0KG1swbSAbWzFtYW5kIG1ha2UgcmVjb21tZW5kYXRpb25zLg0KDQobWzBtIBtbMW1JZiB5b3Ugd291bGQgbGlrZSB0byBob3N0IHlvdXIgb3duIHBhZ2VzIG9uIHRoaXMgc3lzdGVtLCBwbGVhc2UgbGV0IBtbMDszMW1kZW9uDQobWzM3bSAbWzFta25vdy4NCg0KG1swOzMxbSBVc2VyOiAbWzE7MzdtLi4uLi4uLi4uLi4uG1swbSAgIFtOZXcgQWNjb3VudHMgdXNlG1sxbSAbWzMzbU5FVyMbWzBtXQ0KG1szMW0gUGFzczogG1sxOzM3bS4uLi4uLi4uLi4uLhtbPzI1bA0K';
|
||||||
|
var fTelnet = new fTelnetClient('fTelnetContainer', Options);
|
||||||
|
</script>
|
||||||
|
<script src="/libs/zoomooz/js/jquery.zoomooz.min.js"></script>
|
||||||
|
|
||||||
|
There is not a lot there yet - I hope to create a mail environment that will have the Fido mail capabilities - so that you can interact with other BBS systems.
|
||||||
|
|
||||||
|
If you are interested in having your own page prefix on here, just let me know - and I'll set you up.
|
||||||
|
|
||||||
|
If you would like to help me build this, I'd welcome your assistance and ideas.
|
42
source/_posts/chinwag.md
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
---
|
||||||
|
title: Chinwag BBS
|
||||||
|
comments: false
|
||||||
|
date: 2018-08-31
|
||||||
|
thumbnail: /images/chinwag.png
|
||||||
|
category:
|
||||||
|
- BBS
|
||||||
|
- Mystic BBS
|
||||||
|
---
|
||||||
|
Chinwag is a BBS running on a Raspberry Pi under Docker.
|
||||||
|
|
||||||
|
If you would like to explore BBS, Echomail and Netmail without having to setup a BBS for yourself, you are welcome to connect to mine.
|
||||||
|
|
||||||
|
Just press the *Connect* button below, and create an account. The first time you login you'll have limited abilities, but send me a note and I'll upgrade you so that you can use the Echomail and Netmail areas.
|
||||||
|
<div id="fTelnetContainer" class="fTelnetContainer zoomTarget" data-targetsize="0.9"></div>
|
||||||
|
<script>document.write('<script src="//embed-v2.ftelnet.ca/js/ftelnet-loader.norip.xfer.js?v=' + (new Date()).getTime() + '"><\/script>');</script>
|
||||||
|
<script>
|
||||||
|
var Options = new fTelnetOptions();
|
||||||
|
Options.BareLFtoCRLF = false;
|
||||||
|
Options.BitsPerSecond = 57600;
|
||||||
|
Options.ConnectionType = 'telnet';
|
||||||
|
Options.Emulation = 'ansi-bbs';
|
||||||
|
Options.Enter = '\r';
|
||||||
|
Options.Font = 'CP437';
|
||||||
|
Options.ForceWss = true;
|
||||||
|
Options.Hostname = 'alterant.leenooks.net';
|
||||||
|
Options.LocalEcho = false;
|
||||||
|
Options.Port = 443;
|
||||||
|
Options.ProxyHostname = '';
|
||||||
|
Options.ProxyPort = 80;
|
||||||
|
Options.ProxyPortSecure = 443;
|
||||||
|
Options.ScreenColumns = 80;
|
||||||
|
Options.ScreenRows = 25;
|
||||||
|
Options.WebSocketUrlPath = '/ws/alterant/23';
|
||||||
|
Options.SplashScreen = 'G1swbRtbMzBt2xtbMTszN23aIL/Cv7Pav9q/2sK/wr8bWzBtIBtbMW3DLdq/G1swbSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgsyAgICAgICDc3Nzc3Nzc3Nzc3Nzc3Nzc3NwNChtbMzBt2xtbMzdts7Ozw9mzsyCzs7Mgs8PZG1szMG3bG1szN22zILOzICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICCzICAgICAgIN6z8PDw8PDw8PDw8PDw8PDwsw0KG1szMG3bG1sxbcDB2cHZwMDZwNnAINnB2RtbMG0gG1sxOzMwbcDZwNkbWzBtIBtbMTszMG36+vobWzBtICAgICAgICAgICAgICAgICAgICAgICAgICAgILMgICAgICAg3rMgICAgICAgIBtbMW3c3BtbMG0gICAbWzFtLhtbMG0gsw0KG1sxOzMwbSAgG1szN23c3MS/3NzaxNzcxL/c3MS/3NzEv9zcxL/c3MS/2sTc3MS/G1swbSAgICAgICAgICAgICAgICAgsyAgICAgICDesyAgIC4gICAbWzFt29vb2xtbMG0gICAgsw0KG1sxbSAgG1s0N22yG1szMG2wG1s0MG0gG1szN22zG1s0N22yG1szMG2wG1s0MG0gIBtbMzc7NDdtshtbMzBtsBtbNDBtICAbWzM3OzQ3bbIbWzMwbbAbWzQwbSAgG1szNzs0N22yG1szMG2wG1s0MG0gG1szN22zG1s0N22yG1szMG2wG1s0MG0gG1szN22zG1s0N22yG1szMG2wG1s0MG0gG1szN22zICAbWzQ3bbIbWzMwbbAbWzQwbSAgICAgICAgICAgICAgICAgICAbWzBtsyAgICAgICDesyAbWzFtLhtbMG0gICAgICAbWzFt398bWzBtICAgLiCzDQobWzE7MzBtICAbWzM3OzQ3bbEbWzMwbbAbWzM3OzQwbcS0G1s0N22xG1szMG2wG1s0MG0gIBtbMzc7NDdtsRtbMzBtsBtbNDBtICAbWzM3OzQ3bbEbWzMwbbAbWzM3OzQwbcQgG1s0N22xG1szMG2wG1szNzs0MG3E2RtbNDdtsRtbMzBtsBtbMzc7NDBtxLQbWzQ3bbEbWzMwbbAbWzQwbSAbWzM3bbMgIBtbNDdtsRtbMzBtsBtbNDBtICAgICAgICAgICAgICAgICAgIBtbMG2zICAgICAgIN6zICAgLiAgIBtbMW0uG1swbSAgIBtbMW0uG1swbSAgILMNChtbMTszMG0gIBtbMzc7NDdtsBtbMzBtsBtbNDBtIBtbMzdtsxtbNDdtsBtbMzBtsBtbNDBtIBtbMzdtsxtbNDdtsBtbMzBtsBtbNDBtICAbWzM3OzQ3bbAbWzMwbbAbWzQwbSAbWzM3bbMbWzQ3bbAbWzMwbbAbWzM3OzQwbcC/G1s0N22wG1szMG2wG1s0MG0gG1szN22zG1s0N22wG1szMG2wG1s0MG0gG1szN22zICAbWzQ3bbAbWzMwbbAbWzQwbSAgICAgICAgICAgICAgIBtbMzZt3NwbWzMyOzQ2bdwbWzM2bdzc3BtbMzJt3BtbMzY7NDBt3NwbWzBtICAg3rMgG1sxbS4bWzBtICAgIBtbMW0uG1swbSAgIBtbMW0uG1swbSAgICCzDQogICAgICDExMTZIBtbMTszMG0uG1swbSAgxMTE2SAgICAgICAgICAgICAgICAgICAgICAgICAgICAgG1szNm3f398bWzMybd8bWzM2bd8bWzE7Mzc7NDZt3NzcG1swOzM2bd8bWzMybd8bWzM2bd/f3xtbMzdtIN6zICAgG1sxbS4bWzBtICAgICAgLiAbWzFtLhtbMG0gILMNCiAgIBtbMTszMG3Cv7/a2r/av7/av8K/ICAgICAgG1swbdrEG1sxbdwg3L8g3L8g2sTcICAgICAgICAgICAgICAgICAgICAgICAgICAbWzBt3rMgICAgICAgLiAgICAgICCzDQogICAbWzE7MzBt2SDB2dnZ2dnZ2dnBtPr6+htbMG0gICDAxNwg28C/28C/wMTcICAgICAgICAgICAgICAgICAgICAgICAgICDfwMTE3BtbMW3cG1swbdzExMTExMTExMTE2Q0KICAgICAgICAgICAgICAbWzE7MzBtxNkgICAgICAbWzBt38QbWzE7MzBt3yDfG1szN23E2RtbMzBt3xtbMzdtxNnfxBtbMzBt3yAgICAgICAgICAbWzA7MzNt3LKy29uy29wbWzM3bSAgICAgICAgICAgG1sxOzM2bd4bWzMwOzQ3bbMbWzM3bd0bWzMwbbPdG1szN23b398bWzBt3NwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgG1szM23estuyG1sxOzMxOzQzbdwbWzQwbdsbWzQ3bSAbWzA7MzA7NDdt/htbMzc7NDBtICAgICAgICAgICAgG1sxOzM2bdsbWzMwOzQ3bbMbWzM3bd0bWzMwbbPdG1szN23dICAgICAbWzBt29wNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgG1szM23estsbWzE7MzE7NDNt3BtbNDBtstvb298bWzBtICAgICAgICAgICAbWzE7MzZt2xtbMzA7NDdtsxtbMG3bG1sxOzMwOzQ3bbPdG1szN23dICAbWzA7MzA7NDdt8PAbWzM3OzQwbduysg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgG1szM23fG1sxOzMxOzQzbdwbWzQwbbKy29vcG1swbSAgICAgICAgICAgIBtbMTszNm3bG1szMDs0N22zG1swbdsbWzE7MzA7NDdts90gIBtbMG3b27IbWzE7MzA7NDdt3BtbMG0NCiAgICAbWzE7MzZtVEVMTkVUOhtbMG0gG1sxbWFsdGVyYW50LmxlZW5vb2tzLm5ldBtbMG0gICAgICAgICAgICAgG1sxbdwbWzMxOzQ3bd/f3xtbMG0gICAgICAgICAgICAgIBtbMTszNm3eG1szMDs0N22zG1swbdsbWzE7MzA7NDdts90bWzBtshtbMTszMDs0N23c3BtbNDBtsrKy3xtbMG0NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIBtbMTszMG3cG1szNzs0N22yG1s0MG3bG1s0N23fG1s0MG3b29wgICAgG1swOzMwbdsbWzE7MzFt3BtbMDszMG3bG1sxOzMxbdzcG1swOzMwbdsgICAbWzM3bd/fG1sxOzMwOzQ3bdwbWzQwbdyysrKy3NwbWzBtDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAbWzE7MzBt3BtbMzdt3BtbMzBtsrIbWzM3bdvbG1s0N23c3xtbMzFt3BtbNDBtsrLc3Nzb29/cG1swOzMwbdvb2yAbWzFtLRtbMG3bG1sxOzMwOzQ3bd0gICAgICAgG1swbbIbWzMxOzQ3bdwbWzM3OzQwbbINCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAbWzFt3htbMzBt37IbWzM3OzQ3bbEbWzQwbdsbWzQ3bbGyG1s0MG3bIBtbMzFt39/f3yAbWzM3bdwbWzQ3bdzc3Nzc3BtbNDBt3BtbNDdt3Nzc3Nzc3Nzc3NzcG1s0MG3c3BtbMG0NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAbWzFt3iAg39sbWzQ0bd8bWzM0bbAgsbCwG1swOzM0bdvcICAgG1sxOzM3OzQ3bdsbWzBtICAgICAgICAgICAgICAgIBtbMTs0N23bG1swbQ0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIN4bWzFt3BtbMzA7NDdt39/f39/fG1s0MG3f3xtbMzQ7NDRtsbAgG1s0MG0gICAbWzM3OzQ3bd0bWzBtICAgICAgICAgICAgICAgIBtbMTs0N23dG1swbQ0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIBtbMW3bICAgG1szNDs0NG2wILEbWzQwbSAgIBtbMzc7NDdt3RtbMG0gICAgICAgICAgICAgICAgG1sxOzQ3bd0bWzBtDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgG1sxOzQ3bd0bWzQwbSAgIBtbMDszNDs0N23bG1sxOzMwOzQ0bdwbWzA7MzRt3yAgIBtbMTszNzs0N23dG1swbSAgICAgICAgICAgICAgICAbWzE7NDdt3RtbMG0NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgG1sxOzMwbdwbWzM3bd8bWzBt3xtbMTszMDs0N23cG1swbd8bWzFt3xtbMzA7NDdt3BtbMzc7NDBt398bWzMwbdvbG1s0N23fG1s0MG3b29wbWzBt2xtbMW3c3NzcG1swbdzc3NzcG1sxbdwbWzBt3BtbMW3cG1swbdzcG1sxbdzcG1s0N23dG1swbQ0K';
|
||||||
|
var fTelnet = new fTelnetClient('fTelnetContainer', Options);
|
||||||
|
</script>
|
||||||
|
<script src="/libs/zoomooz/js/jquery.zoomooz.min.js"></script>
|
||||||
|
|
||||||
|
There is some useful terminal emulation software available on the Net.
|
||||||
|
|
||||||
|
I'm a MAC user so I use [SyncTERM](http://syncterm.bbsdev.net) - it works a treat!
|
43
source/_posts/docker.md
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
---
|
||||||
|
title: Installing Docker on a Pi
|
||||||
|
date: 2018-09-02 22:43:01
|
||||||
|
thumbnail: /images/docker.png
|
||||||
|
comments: false
|
||||||
|
tags:
|
||||||
|
- Setup
|
||||||
|
categories:
|
||||||
|
- Install
|
||||||
|
- Docker
|
||||||
|
---
|
||||||
|
## Intro
|
||||||
|
Installing Docker on a Pi is super easy also.
|
||||||
|
|
||||||
|
First make sure your Raspian is up to date
|
||||||
|
```
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get upgrade
|
||||||
|
```
|
||||||
|
|
||||||
|
Then, all you need to do is run this.
|
||||||
|
|
||||||
|
```
|
||||||
|
curl -sSL https://get.docker.com | sudo sh
|
||||||
|
```
|
||||||
|
|
||||||
|
And voila, docker is installed:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pi@raspian:~$ docker info
|
||||||
|
Containers: 0
|
||||||
|
Running: 0
|
||||||
|
Paused: 0
|
||||||
|
Stopped: 0
|
||||||
|
Images: 0
|
||||||
|
Server Version: 18.06.1-ce
|
||||||
|
Storage Driver: overlay2
|
||||||
|
Backing Filesystem: extfs
|
||||||
|
Supports d_type: true
|
||||||
|
Native Overlay Diff: true
|
||||||
|
```
|
||||||
|
|
||||||
|
Now, you can run [my Mystic BBS](/2018/09/01/mysticbbs/) image or [my MBSE BBS](/2018/09/04/mbse) image. If you need some more info about Docker, you might find [this](/2018/10/30/dockerinfo) useful.
|
73
source/_posts/dockerinfo.md
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
---
|
||||||
|
title: About Docker
|
||||||
|
date: 2020-04-01 22:43:01
|
||||||
|
thumbnail: /images/docker.png
|
||||||
|
comments: false
|
||||||
|
categories:
|
||||||
|
- Docker
|
||||||
|
---
|
||||||
|
Getting started with docker may seem complex, but here is some info that might help you get started. There are some fundamentals that you should understand too - if anything to save any heartache later. :)
|
||||||
|
|
||||||
|
## What is Docker
|
||||||
|
Docker is "like" virtualisation in that your application runs in it's own space, and thinks it is the only application running in that space (as if it were on a physical machine).
|
||||||
|
|
||||||
|
In reality, Docker is process separation - it is your application running on the same host with other applications, but docker puts each in a jail.
|
||||||
|
|
||||||
|
## Docker Components (or Terms)
|
||||||
|
* Image - represents an application, specifically a version of an application. When an image is built with `docker build` it has everything it needs for the application to run. All dependencies (libraries, binaries, utilities, etc) are packaged up into the image.
|
||||||
|
|
||||||
|
Generally, you use an image to run one or more containers of that image - but you don't "upgrade" the application inside the image, instead you build a new image. So its not uncommon to have images of application:v1, and application:v1.1.
|
||||||
|
|
||||||
|
A good way to relate to this, is using a "Live CD-ROM" analogy. A live CD-ROM is an OS, and often with applications, that is burnt to a CD (or DVD). Once the CD is written, it's contents cannot be changed.
|
||||||
|
|
||||||
|
However, you can make many copies of that CD, and use it on many physical machines, to have the "same" environment across multiple physical hosts.
|
||||||
|
|
||||||
|
A docker image, is like a "Live CD-ROM". From that image, you can start many containers, and each container is exactly the same as any other - the only difference being, is that the containers can all be on the same host, or across multiple hosts.
|
||||||
|
|
||||||
|
Also like a "Live CD-ROM" - the containers contents can be changed while it's running (just like you can author a document on a live CD-ROM environment, if it contains a word processor). But when you destroy the container (like powering of the live CD-ROM PC) - all changed data is lost, unless you store it on a specific persistent storage volume.
|
||||||
|
|
||||||
|
* Container - represents a running instance of an image - like a "virtual machine". You can run many containers of the same image, and it would be like running many "instances" of the application on the same computing cluster.
|
||||||
|
|
||||||
|
By design, containers are intended to be created and destroyed often. In fact, when you get into using "clustering" (Kubernetes, Docker Swarm, etc) - your containers are often destroyed as they float between physical machines. Your container is also destroyed, when you use an "updated" image (which might represent an updated version of an application).
|
||||||
|
|
||||||
|
Because of this, there are important considerations relating to the data inside your container - if you need that data to persist between invocations of a container.
|
||||||
|
|
||||||
|
* Registry - this is an "App Store" of "Docker Images" (where built images can be stored for easily deployment).
|
||||||
|
|
||||||
|
## Why Docker
|
||||||
|
Docker is great for many reasons:
|
||||||
|
1. Your applications run in a jail, and the only way in the jail is via a network connection. Well, that is not completely true, if you are logged into the host that is running your docker container, then you can "attach" to the console. For the most part however, applications are accessed via a network connection.
|
||||||
|
|
||||||
|
Inside the jail, applications can connect to the outside world (assume firewall rules don't restrict this), but they cannot connect to the host's file systems unless the container was given access to those filesystems when it was created.
|
||||||
|
|
||||||
|
The beauty of this design is, if the network application you are running is compromised by a hacker - then the hacker is inside the jail as well. The only damage they can do is to the data seen inside the jail, and being a good system admin, you backup daily right?
|
||||||
|
|
||||||
|
2. Your application image and it's corresponding data is portable. You can pick it up and drop it on another host, start the container and it will be none the wiser. (It will be as if you stopped the application and then started it - it has no idea that it was moved to a separate host.)
|
||||||
|
|
||||||
|
3. Application Developers/Vendors will generally create your application image - its like they do the install for you, and when you start your container (based on that image) - you start from "setup". There is NO installation time required once an image is created (creating the image is by definition installing the application). So it is super quick to "spin up" another copy of an application.
|
||||||
|
|
||||||
|
# Things to know when using containers
|
||||||
|
1. Where is "data" stored? Data adds personality to an application, and for it to persist you'll need to make sure that those data files are stored in a specific place. The container builder should provide you with those instructions when you first use the container, or you can make "known" data persistent points by starting your image with
|
||||||
|
`-v /path/on/the/host:/path/inside/the/container`.
|
||||||
|
|
||||||
|
2. What ports do you need to "join to" to access your container? While a webserver in a container might be listening for requests on TCP port 80, that needs to be mapped to from the host - and it could be port 80 on the host. IE: Host port 80 -> Container port 80. If you have many containers running web applications, then you'll need many mappings from the host - however, the host will need to use unique ports. EG: Host port 80 -> Container A port 80. Host port 81 -> Container B port 80, etc. This is done with
|
||||||
|
`-p host_port:container_port`.
|
||||||
|
|
||||||
|
3. In some cases, containers use shell variables to help with configuration. Again the container builder should provide you with information on what variables are required or useful. They are passed to the container by
|
||||||
|
`-e VAR=value`
|
||||||
|
|
||||||
|
4. Starting containers, is easy, the syntax is `docker run ...`. When it starts, it will give you a Container ID. If you don't have the necessary image yet, docker will "pull" it from a registry automatically.
|
||||||
|
|
||||||
|
5. Stopping containers is easy, the syntax is `docker stop <CONTAINER ID>`.
|
||||||
|
|
||||||
|
6. Deleting containers is `docker rm <CONTAINER ID>`.
|
||||||
|
|
||||||
|
7. Listing running containers is `docker ps`. The output looks like this:
|
||||||
|
```
|
||||||
|
deon@p-1-1:~ $ docker ps
|
||||||
|
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
||||||
|
459a9fef84c6 debian:deb "exec/sbbs" 2 days ago Up 2 days 0.0.0.0:13023->23/tcp amazing_elion
|
||||||
|
e793d6d33f52 leenooks/mbse:1.0.7.9 "/sbin/init /usr/bin…" 2 days ago Up 2 days 80/tcp, 60177/tcp, 60179/tcp, 0.0.0.0:24554->24554/tcp, 0.0.0.0:11022->22/tcp, 0.0.0.0:11023->23/tcp bbs_mbse.1.909vch9fbnqlk9iz3owv0qzu5
|
||||||
|
0f078a15af0b registry.leenooks.net/leenooks/mysticbbs:1.12a39-armv7l-extras "/sbin/init start" 2 days ago Up 2 days 0.0.0.0:10022->22/tcp, 0.0.0.0:10023->23/tcp, 0.0.0.0:24555->24554/tcp bbs_mystic.1.wn6bqs707bx37m40mltbsohyf
|
||||||
|
97dc2a415f89 nginx:latest "nginx -g 'daemon of…" 2 days ago Up 2 days 0.0.0.0:80->80/tcp nginx_web.298qvanxdy7b4xxps4oqrjlue.ndkntwg19ahrszzbqji5bjthy
|
||||||
|
```
|
49
source/_posts/magicka.md
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
---
|
||||||
|
title: Installing Magicka BBS in Docker
|
||||||
|
date: 2018-11-14 23:37:50
|
||||||
|
thumbnail: /images/logo-magicka.png
|
||||||
|
categories:
|
||||||
|
- Docker
|
||||||
|
- Magicka BBS
|
||||||
|
tags:
|
||||||
|
- Docker
|
||||||
|
- BBS
|
||||||
|
---
|
||||||
|
The following is the instructions on how to install [Magicka BBS](http://magickabbs.com) in a Docker Container. These instructions have been compiled using Docker on a Raspberry Pi. (You need to have docker installed first, and [this](/2018/09/02/docker) might help you get started.)
|
||||||
|
|
||||||
|
My image is available in my Docker Registry and can be obtained by using `docker pull registry.leenooks.net/bbs/magicka:0.12-alpha-armv7l`. (There is an x86_64 image too, just change armv7l to x86_64.) You can use this image to run a container using `docker run`, or you can use it in a *swarm*, if you have multiple hosts. I actually use Docker Swarm myself.
|
||||||
|
|
||||||
|
**NOTE**: Its important that you separate "data" from the "application" and provide a persistent storage path for your container (otherwise if you recreate your container, you'll loose your data!). On my setup my container persistent storage is storage in `/srv/docker/[CONTAINER]/data`. In the parent path (/srv/docker/[CONTAINER]) I keep my scripts and tools for managing the container and starting it - and since I use Docker Swarm, that is where my `.yml` file is.
|
||||||
|
|
||||||
|
## Preparation
|
||||||
|
1. Download your favourite Linux OS and install
|
||||||
|
2. Install Docker
|
||||||
|
3. Pull the Magicka Image with
|
||||||
|
|
||||||
|
```
|
||||||
|
docker pull registry.leenooks.net/bbs/magicka:0.12-alpha-armv7l
|
||||||
|
```
|
||||||
|
|
||||||
|
4. Create your persistent storage destination
|
||||||
|
|
||||||
|
```
|
||||||
|
mkdir -p /srv/docker/magicka/data
|
||||||
|
```
|
||||||
|
## Starting
|
||||||
|
5. Start your container with
|
||||||
|
|
||||||
|
```
|
||||||
|
docker run -d --rm -p 23:2023 -p 22:2024 -p 80:8080 -p 24554:24554 -v /srv/docker/magicka/data:/opt/magicka/data --name=magicka registry.leenooks.net/bbs/magicka:0.12-alpha-armv7l
|
||||||
|
```
|
||||||
|
The first time the container starts, it will create sub directories and fill your data directory. You might need to then refer to the Magicka documentation to configure it for your environment.
|
||||||
|
|
||||||
|
The options on this command line are:
|
||||||
|
|
||||||
|
<table><tr><th style="width: 20%">Option</th><th>Reason</th></tr><tr><td>-d</td><td>Run the container in the background</td></tr><tr><td>-p</td><td>Port mapping from the host:container. So using 23:2023 will mean any incoming connections on the *host* to port 23 will be sent to the *container* on port 2023. This will enable you to telnet into your Magicka.</td></tr><tr><td>-rm</td><td>Means the container will be destroyed when it is stopped. (No problem if *-v* is used below.</td></tr><tr><td>-v</td><td>Volume mapping from the host:container. A value of /srv/docker/magicka/data:/opt/magicka/data means that any data in the *container* written to /opt/magicka/data, will be stored on the *host* /srv/docker/magicka/data.</td></tr></table>
|
||||||
|
|
||||||
|
There are other options you may prefer to use, for example, instead of `--rm`, you may want to use `--restart=always`.
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
6. Now your container is running, you should configure it to your liking by editing the files in data/etc/magicka/...
|
||||||
|
|
||||||
|
If you need any help, [login](/2018/08/31/chinwag/) to my BBS and send me a message, or if you use another BBS, or a Sysop of a BBS and connected to one of the networks I'm connected to, you can send me a Netmail. See the list of [networks](/networks) that I'm already connected to.
|
54
source/_posts/mbse.md
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
---
|
||||||
|
title: Installing MBSE BBS in Docker
|
||||||
|
date: 2018-09-04 13:07:50
|
||||||
|
thumbnail: /images/mbse.png
|
||||||
|
categories:
|
||||||
|
- Docker
|
||||||
|
- MBSE BBS
|
||||||
|
tags:
|
||||||
|
- Docker
|
||||||
|
- BBS
|
||||||
|
---
|
||||||
|
The following is the instructions on how to install [MBSE BBS](http://sourceforge.net/projects/mbsebbs) in a Docker Container. These instructions have been compiled using Docker on a Raspberry Pi. I'll provide instructions in another post on how to get Docker installed.
|
||||||
|
|
||||||
|
My image is available in my Docker Registry and can be obtained by using `docker pull registry.leenooks.net/leenooks/mbse:1.0.7.8`. You can use this image to run a container using `docker run`, or you can use it in a *swarm*, if you have multiple hosts. I actually use Docker Swarm myself.
|
||||||
|
|
||||||
|
**NOTE**: Its important that you separate "data" from the "application" and provide a persistent storage path for your container (otherwise if you recreate your container, you'll loose your data!). On my setup my container persistent storage is storage in `/srv/docker/[CONTAINER]/data`. In the parent path (/srv/docker/[CONTAINER]) I keep my scripts and tools for managing the container and starting it - and since I use Docker Swarm, that is where my `.yml` file is.
|
||||||
|
|
||||||
|
## Preparation
|
||||||
|
1. Download your favourite Linux OS and install
|
||||||
|
2. Install Docker
|
||||||
|
3. Pull the MBSE Image with
|
||||||
|
|
||||||
|
```
|
||||||
|
docker pull registry.leenooks.net/leenooks/mbse:1.0.7.9
|
||||||
|
```
|
||||||
|
|
||||||
|
4. Create your persistent storage destination
|
||||||
|
|
||||||
|
```
|
||||||
|
mkdir -p /srv/docker/mbse/data
|
||||||
|
```
|
||||||
|
## Starting
|
||||||
|
5. Start your container with
|
||||||
|
|
||||||
|
```
|
||||||
|
docker run -d --rm -p 10023:23 -v /srv/docker/mbse/data:/opt/mbse/data --name=mbse registry.leenooks.net/leenooks/mbse:1.0.7.9
|
||||||
|
```
|
||||||
|
The first time the container starts, it will create sub directories and fill your data directory.
|
||||||
|
|
||||||
|
The options on this command line are:
|
||||||
|
|
||||||
|
<table><tr><th style="width: 20%">Option</th><th>Reason</th></tr><tr><td>-d</td><td>Run the container in the background</td></tr><tr><td>-p</td><td>Port mapping from the host:container. So using 10023:23 will mean any incoming connections on the *host* to port 10023 will be sent to the *container* on port 23. This will enable you to telnet into your MBSE.</td></tr><tr><td>-rm</td><td>Means the container will be destroyed when it is stopped. (No problem if *-v* is used below.</td></tr><tr><td>-v</td><td>Volume mapping from the host:container. A value of /srv/docker/mbse/data:/opt/mbse/data means that any data in the *container* written to /opt/mbse/data, will be stored on the *host* /srv/docker/mbse/data.</td></tr></table>
|
||||||
|
|
||||||
|
There are other options you may prefer to use, for example, instead of `--rm`, you may want to use `--restart=always`.
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
6. Now your container is running, jump into it and start configuring.
|
||||||
|
|
||||||
|
```
|
||||||
|
docker exec -itu mbse mbse /bin/bash
|
||||||
|
bin/mbsetup
|
||||||
|
```
|
||||||
|
|
||||||
|
If you need any help, [login](/2018/08/31/chinwag/) to my BBS and send me a message, or if you use another BBS, or a Sysop of a BBS and connected to one of the networks I'm connected to, you can send me a Netmail. See the list of [networks](/networks) that I'm already connected to.
|
56
source/_posts/mysticbbs.md
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
---
|
||||||
|
title: MysticBBS
|
||||||
|
thumbnail: /images/mysticlogo.png
|
||||||
|
comments: false
|
||||||
|
categories:
|
||||||
|
- Docker
|
||||||
|
- MysticBBS
|
||||||
|
tags:
|
||||||
|
- Docker
|
||||||
|
- BBS
|
||||||
|
date: 2018-09-01 12:00:00
|
||||||
|
---
|
||||||
|
|
||||||
|
<div class="badge btn-danger" style="background-color: #ac2925;color: white; padding-left: 0.5em; padding-right: 0.5em;padding-top: 0.4em;padding-bottom: 0.4em;">UPDATE: I no longer maintain these docker images. I've fallen out of love with Mystic, and while it is a good software package to get "back into" BBSING, it has a few bugs that impacted how I wanted to use it, that the author may fix one day (or may not).
|
||||||
|
|
||||||
|
The author also is not very responsive to feedback, and IMHO too hot headed (so its not worth the grief). There are other BBS packages out there that are well supported (for example Synchronet) and still have a wide usage base and updated often.
|
||||||
|
|
||||||
|
That said, there are a wealth of mods created by the BBS community, that do make for some interesting Mystic BBSes.</div>
|
||||||
|
|
||||||
|
[Mystic BBS](http://mysticbbs.com) is good software to get up and running and get (back) into the BBS scene.
|
||||||
|
|
||||||
|
There is a wealth of information on the [wiki](http://wiki.mysticbbs.com), or you can even go through [*Mystic Guy's* YouTube videos](https://www.youtube.com/channel/UCPOUHszVXaGNSlK3AdI7kLQ).
|
||||||
|
|
||||||
|
If you would like to get up and running quickly, I've created some Docker Images which you can use as a starting point. The images are available for Raspberry Pi (ARM) and Intel.
|
||||||
|
|
||||||
|
There are two images:
|
||||||
|
<table><tr><th width="20%">Name</th><th width="80%">Information</th></tr><tr><td>armv7l</td><td>This image is a clean installation of Mystic BBS as provided by the upstream developer. It does have the pre-requisites so that spell is enabled and cryptlib is also installed so that you can use SSH based connections.</td></tr><tr><td>armv7l-extras</td><td>This image extends the base image and provides some doors and utilities.</td></tr><tr><td>x86_64</td><td>Just like the image above, however, this is for Intel Linux platforms.</td></tr><tr><td>x86_64-extras</td><td>This image extends the base image and provides some doors and utilities.</td></tr></table>
|
||||||
|
|
||||||
|
To get the images, just install docker onto your Linux platform, and then do
|
||||||
|
|
||||||
|
`docker pull registry.leenooks.net/leenooks/mysticbbs:1.12a39-[TAG ABOVE]`
|
||||||
|
|
||||||
|
To make sure your data is kept between re-creations of your docker container, you have two options:
|
||||||
|
1. Start your mystic container with `-v [HOST PATH]:/mystic/data`, or
|
||||||
|
2. Start your subsequent containers with `--volumes_from=[ORIG CONTAINER]`.
|
||||||
|
In this case, you might want to rename your old container if you want to use the same container name.
|
||||||
|
|
||||||
|
You need to map some IP ports into the container when it starts, so use `-p HOST_PORT:CONTAINER_PORT`, where **HOST_PORT** is the IP port on the host that you want the services to listen on (it can be the same as the container's ports).
|
||||||
|
|
||||||
|
The services you'll probably use are:
|
||||||
|
<table><tr><th width="20%">Service</th><th width="20%">Port</th><th>Description</th><th>Suggested Mapping</th></tr><tr><td>ssh</td><td>22</td><td>SSH port for incoming SSH connections</td><td>22 (or any port number)</td></tr><tr><td>telnet</td><td>23</td><td>Telnet port for incoming telnet connections</td><td>23 (or any port number)</td></tr><tr><td>binkp</td><td>24554</td><td>BINKP port for incoming BBS Mail/File Transfers</td><td>24554 (or any port number)</td></tr></table>
|
||||||
|
|
||||||
|
For example, if you wanted to map telnet to port 10023, ssh to port 10022, and leave binkp as it, and use */srv/docker/mystic* on the host as your persistant storage inside the container, you would use:
|
||||||
|
|
||||||
|
```
|
||||||
|
docker run -it -v /srv/docker/mystic:/mystic data -p 10022:22 -p 10023:23 -p 24554:24554 registry.leenooks.net/leenooks/mysticbbs:1.12a39-armv7l
|
||||||
|
```
|
||||||
|
when it starts, it will output the container ID.
|
||||||
|
|
||||||
|
Once your container is running, you can run the mystic utils by running: `docker exec -it <CONTAINER_ID> [COMMAND]` where **COMMAND** is the command you wanted to run, eg `./mystic -cfg`, or `./fidopoll ...`.
|
||||||
|
|
||||||
|
You can also attach to the console to see what mystic is showing `docker attach <CONTAINER_ID>`, and to detach, you'll need to press **CTRL-PQ** (which is ctrl p, ctrl q). (**NOTE**: You might need to press a key, to refresh the screen - using your arrows is safe.)
|
||||||
|
|
||||||
|
You could even use this image to have your containers in a docker swarm (as I do).
|
||||||
|
|
||||||
|
If you need any help, [login](/2018/08/31/chinwag/) to my BBS and send me a message, or if you use another BBS, or a Sysop of a BBS and connected to one of the networks I'm connected to, you can send me a Netmail. See the list of [networks](/networks) that I'm already connected to.
|
108
source/_posts/oztex.md
Normal file
@ -0,0 +1,108 @@
|
|||||||
|
---
|
||||||
|
title: OzTex Videotex
|
||||||
|
comments: false
|
||||||
|
date: 2019-01-01
|
||||||
|
thumbnail: /images/oztex.png
|
||||||
|
category:
|
||||||
|
- BBS
|
||||||
|
- OzTex Videotex
|
||||||
|
---
|
||||||
|
OzTex is a re-invention of Videotex - which dominated many countries in the 80's and 90's. Its currently under development, providing two presentation experiences: the original Mode 7 Videotex and in a new fusion with ANSI. This post is about the Videotex impementation.
|
||||||
|
|
||||||
|
It is still being developed, so the current functionality is very limited. You can see it in action by pressing the **Connect** button below.
|
||||||
|
|
||||||
|
<small>**NOTE:** For some keyboards, the hash (#) key is the UK Pound (£) symbol. You should be able to use your **ENTER** key in place of **#**, otherwise you can try your **'** (apostrophe) key.</small>
|
||||||
|
<small>**TIP:** You can click inside the terminal to zoom full screen. Click outside to unzoom.</small>
|
||||||
|
{% raw %}
|
||||||
|
<link rel="stylesheet" href="/js/viewdata/TELETEXT.CSS" type="text/css">
|
||||||
|
<div class="viewdata">
|
||||||
|
<form>
|
||||||
|
<input id='host' type='hidden'>
|
||||||
|
<input id='port' type='hidden'>
|
||||||
|
<input id='encrypt' type='hidden'>
|
||||||
|
<input id='url' type='hidden'>
|
||||||
|
<input id='connectButton' type='button' value='Connect' style='width:100px' onclick="connect();">
|
||||||
|
</form>
|
||||||
|
<table><tbody><tr><td class="teletext"><div class="teletext zoomTarget" id="terminal" data-targetsize="1" style="padding: 10px; background-color:black;"><span style="color:#ffffff;background-color:#000000;">
|
||||||
|
|
||||||
|
</span><span style="color:#0000ff;background-color:#000000;"> </span><span style="color:#0000ff;background-color:#0000ff;"> </span><span style="color:#ffffff;background-color:#0000ff;">
|
||||||
|
</span><span style="color:#0000ff;background-color:#000000;"> </span><span style="color:#0000ff;background-color:#0000ff;"> </span><span style="color:#ffffff;background-color:#0000ff;">
|
||||||
|
</span><span style="color:#ffffff;background-color:#000000;">
|
||||||
|
</span><span style="color:#0000ff;background-color:#000000;"> </span><span style="color:#0000ff;background-color:#0000ff;"> </span><span style="color:#ffffff;background-color:#0000ff;"> A vBBS by</span><span style="color:#ffff00;background-color:#0000ff;"> ...deon
|
||||||
|
</span><span style="color:#ffffff;background-color:#000000;">
|
||||||
|
</span><span style="color:#0000ff;background-color:#000000;"></span><span style="color:#ffffff;background-color:#000000;">
|
||||||
|
</span><span style="color:#0000ff;background-color:#000000;"></span><span style="color:#ffffff;background-color:#000000;">
|
||||||
|
</span><span style="color:#0000ff;background-color:#000000;"></span><span style="color:#ffffff;background-color:#000000;">
|
||||||
|
</span><span style="color:#0000ff;background-color:#000000;"></span><span style="color:#ffffff;background-color:#000000;">
|
||||||
|
</span><span style="color:#0000ff;background-color:#000000;"></span><span style="color:#ffffff;background-color:#000000;">
|
||||||
|
</span><span style="color:#0000ff;background-color:#000000;"></span><span style="color:#ffffff;background-color:#000000;"> Welcome to</span><span style="color:#0000ff;background-color:#000000;"></span><span style="color:#ffffff;background-color:#000000;">
|
||||||
|
</span><span style="color:#0000ff;background-color:#000000;"></span><span style="color:#ffffff;background-color:#000000;">
|
||||||
|
</span><span style="color:#0000ff;background-color:#000000;"></span><span style="color:#ffff00;background-color:#000000;"> OzTex</span><span style="color:#0000ff;background-color:#000000;"></span><span style="color:#ffffff;background-color:#000000;">
|
||||||
|
</span><span style="color:#0000ff;background-color:#000000;"></span><span style="color:#ffffff;background-color:#000000;">
|
||||||
|
</span><span style="color:#0000ff;background-color:#000000;"></span><span style="color:#ffffff;background-color:#000000;">
|
||||||
|
</span><span style="color:#0000ff;background-color:#000000;"></span><span style="color:#ffffff;background-color:#000000;">
|
||||||
|
</span><span style="color:#ff0000;background-color:#000000;"> </span><span style="color:#0000ff;background-color:#000000;"></span><span style="color:#ffffff;background-color:#000000;">
|
||||||
|
</span><span style="color:#0000ff;background-color:#000000;"></span><span style="color:#ffffff;background-color:#000000;">
|
||||||
|
|
||||||
|
|
||||||
|
Press Connect to begin.
|
||||||
|
</span><span style="color:#ffffff;background-color:#000000;"> </span>
|
||||||
|
</div></td></tr></tbody></table>
|
||||||
|
<script src="/js/viewdata/base64.js"></script>
|
||||||
|
<script src="/js/viewdata/util.js"></script>
|
||||||
|
<script src="/js/viewdata/websock.js"></script>
|
||||||
|
<script src="/js/viewdata/webutil.js"></script>
|
||||||
|
<script src="/js/viewdata/keysym.js"></script>
|
||||||
|
<script src="/js/viewdata/vdata.js"></script>
|
||||||
|
<script src="/js/viewdata/wsvdata.js"></script>
|
||||||
|
<script src="/libs/zoomooz/js/jquery.zoomooz.min.js"></script>
|
||||||
|
<script>
|
||||||
|
var telnet;
|
||||||
|
|
||||||
|
function connect() {
|
||||||
|
telnet.connect($D('host').value,
|
||||||
|
$D('port').value,
|
||||||
|
$D('encrypt').checked,
|
||||||
|
$D('url').value);
|
||||||
|
$D('connectButton').disabled = true;
|
||||||
|
$D('connectButton').value = "Connecting";
|
||||||
|
}
|
||||||
|
|
||||||
|
function disconnect() {
|
||||||
|
$D('connectButton').disabled = true;
|
||||||
|
$D('connectButton').value = "Disconnecting";
|
||||||
|
telnet.disconnect();
|
||||||
|
}
|
||||||
|
|
||||||
|
function connected() {
|
||||||
|
$D('connectButton').disabled = false;
|
||||||
|
$D('connectButton').value = "Disconnect";
|
||||||
|
$D('connectButton').onclick = disconnect;
|
||||||
|
}
|
||||||
|
|
||||||
|
function disconnected() {
|
||||||
|
$D('connectButton').disabled = false;
|
||||||
|
$D('connectButton').value = "Connect";
|
||||||
|
$D('connectButton').onclick = connect;
|
||||||
|
}
|
||||||
|
|
||||||
|
window.onload = function() {
|
||||||
|
console.log("onload");
|
||||||
|
var url = document.location.href;
|
||||||
|
$D('host').value = 'chinwag.leenooks.net';
|
||||||
|
$D('port').value = '443';
|
||||||
|
$D('encrypt').checked = true;
|
||||||
|
$D('url').value = '/ws/videotex/516';
|
||||||
|
|
||||||
|
telnet = Telnet('terminal', connected, disconnected);
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
{% endraw %}
|
||||||
|
If you would like to own some pages on this system, please let me know. Alternatively, if you have some old videotex frames from old systems like Prestel, Viatel, etc that you would like to bring back to life get in contact with me and we'll make it happen.
|
||||||
|
|
||||||
|
If you are creative, you can create some frames at http://edit.tf or http://zxnet.co.uk/teletext/editor. I use the http://edit.tf becuase it has some block copy/paste functions, great if you want to move things around. After using http://edit.tf I normally "Export" (E->zxnet Editor) to http://zxnet.co.uk/teletext/editor so that I can save the frame as _Binary dump of level 1 page data_. After saving the frame, its easy for me to import it into the system.
|
||||||
|
|
||||||
|
At the moment importing frames is a manual entry by me, but in time, I'll enable that in the system - as well as hopefully create an editor.
|
||||||
|
|
||||||
|
If you would like to help me build this, please get in contact.
|
52
source/_posts/raspian.md
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
---
|
||||||
|
title: Installing Raspian on a Pi
|
||||||
|
date: 2018-09-01 22:26:46
|
||||||
|
thumbnail: /images/raspian.jpg
|
||||||
|
comments: false
|
||||||
|
tags:
|
||||||
|
- Setup
|
||||||
|
categories:
|
||||||
|
- Install
|
||||||
|
- Raspian
|
||||||
|
---
|
||||||
|
## Intro
|
||||||
|
Installing Raspbian on a Pi is super easy. First get hold of [Raspbian](https://www.raspberrypi.org/downloads/raspbian). I use the “Stretch-Lite” version, as it is smaller and I don't need a GUI.
|
||||||
|
|
||||||
|
You’ll need to use a tool to write the image to an SD card. If you have Linux - you can use Linux's dd command. If you use Windows or a Mac, (or you want a GUI for Linux), you can use [etcher](https://etcher.io/).
|
||||||
|
|
||||||
|
### You have two options:
|
||||||
|
|
||||||
|
1. Basic
|
||||||
|
|
||||||
|
A basic install means that you install Raspbian and it consumes the complete capacity of your SD card. This is by far the easiest and less complex setup.
|
||||||
|
|
||||||
|
The image itself as about 1.5G, and when you install it on a (larger) SD card, when Raspbian first boots, it will automatically re-partition the SD card so that the root partition consumes the remaining capacity of the SD card and reboot. On the subsequent reboot it will automatically resize that file system so that it now consumes that remaining capacity.
|
||||||
|
|
||||||
|
|
||||||
|
2. Advanced
|
||||||
|
|
||||||
|
An advanced install means that you want to control your file system layout and potentially use more mount points and/or some block devices. I went through this process because I wanted to install [glusterFS](https://www.gluster.org/) on my Pi(s) so that I can share a replicated file system with more than 1 Pi. I needed this because I wanted to use [Docker Swarm](https://docs.docker.com/engine/swarm/) (where your docker containers can float between Pis) and glusterFS provides the consistent persistent storage for those containers. And since glusterFS provides redundancy options, it means I can take a Pi offline (or in case it dies) and my BBS will start on another Pi.
|
||||||
|
|
||||||
|
To do this install, I modified the Raspbian image, so that it wouldn't resize the root file system after a reboot. You can achieve this by removing `init=/usr/lib/raspi-config/init_resize.sh` in cmdline.txt (on the boot partition) - it should be at the end of the line.
|
||||||
|
|
||||||
|
After the system boots, you can resize your partitions as you would like, but:
|
||||||
|
* Dont change the first partition at all, it is your boot partition
|
||||||
|
* Dont make the second partition any smaller than what it is. You can make it larger, and after you have done so, on the next reboot use `resize2fs` to adjust the filesystem size.
|
||||||
|
|
||||||
|
You can use the rest of your diskspace as partition 3 onwards.
|
||||||
|
|
||||||
|
Here is what mine looks like:
|
||||||
|
```
|
||||||
|
Disk /dev/mmcblk0: 59.6 GiB, 64021856256 bytes, 125042688 sectors
|
||||||
|
Units: sectors of 1 * 512 = 512 bytes
|
||||||
|
Sector size (logical/physical): 512 bytes / 512 bytes
|
||||||
|
I/O size (minimum/optimal): 512 bytes / 512 bytes
|
||||||
|
Disklabel type: dos
|
||||||
|
Disk identifier: 0x1376769f
|
||||||
|
|
||||||
|
Device Boot Start End Sectors Size Id Type
|
||||||
|
/dev/mmcblk0p1 8192 96663 88472 43.2M c W95 FAT32 (LBA)
|
||||||
|
/dev/mmcblk0p2 98304 4292607 4194304 2G 83 Linux
|
||||||
|
/dev/mmcblk0p3 4292608 125042687 120750080 57.6G 8e Linux LVM
|
||||||
|
```
|
||||||
|
Now you can setup [Mystic BBS](http://www.mysticbbs.com/), [MBSE BBS](http://sourceforge.net/projects/mbsebbs) or your favourite BBS software, or follow [my Docker installation](/2018/09/02/docker) if you want to run your BBS’s in docker.
|
31
source/about/index.md
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
---
|
||||||
|
title: Chinwag BBS
|
||||||
|
date: 2018-08-30 21:27:43
|
||||||
|
---
|
||||||
|
## About Me
|
||||||
|
|
||||||
|
I started BBSing in the late 80’s early 90s and run a BBS myself out of my home in St Kilda, Australia. While I only had one phone line, it was often quite busy with folks logging on mainly to exchange software. Shareware and Public Domain software was very popular and BBSes were the places to get it.
|
||||||
|
|
||||||
|
My computer shared the phone line with my voice callers, and if anybody wanted to ring me (voice), they had to let the phone ring twice, hang up and ring again. My BBS was programmed to ignore the second call within 10s and if I wasn't there my answering machine would get it. It was great, no telemarketing calls in those days!
|
||||||
|
|
||||||
|
I did join FidoNet (3:632/509) and my friends were impressed that they could write a message, and another person anywhere in the world would reply within a few days. I also became a network hub for another network that I cannot remember now - and I recall my computer calling a Sydney BBS at 2am every morning to exchange echomail and netmail. Ahh, the phone bills just to be a sysop.
|
||||||
|
|
||||||
|
How things have changed….
|
||||||
|
|
||||||
|
## About Chinwag
|
||||||
|
|
||||||
|
I recently discovered my BBS backups from those days and I was (and still am) keen to see if I can get it running again.
|
||||||
|
|
||||||
|
In the meantime, I did a quick google around for BBS software and BBSes in general and was amazed to see the number of people still running BBSes. Reading through the echomail recently, it is also amazing to see the number of folks coming back and setting up a BBS - some for old time sake, some to connect with friends in an environment that is not affected by hackers and SPAM.
|
||||||
|
|
||||||
|
Running a BBS is fairly easy to do these days - no need to worry about modems, fossil drivers etc, and if you get stuck a forum or email gets you help. In fact you can log into somebody else’s BBS to get help, since they are now reachable via telnet (and no phone costs). There is an abundance of software out there and many people are eager to help.
|
||||||
|
|
||||||
|
### Raspberry Pi
|
||||||
|
|
||||||
|
As such my Raspberry Pi that was sitting in my office gathering dust has been powered up and is now running Chinwag. Its probably more powerful than the computer that I had in the 90's!
|
||||||
|
|
||||||
|
I've installed Raspbian, Docker and both Mystic BBS and MBSE BBS. MBSE is my main mail hub, I like it because its written in C and operates more like a Linux BBS application. (I’m a long time Linuxer.) I also like Mystic BBS, the UI is really easy to use, it has nicer navigation and a better editor (IMHO). As I'm still re-learning the art of BBSing, I'll explore other modern legacy(!) BBS software.
|
||||||
|
|
||||||
|
The cost of a Raspberry Pi is about AUD $70 (Pi, Case and SD card) and makes a perfect BBS.
|
||||||
|
|
||||||
|
Your welcome to [login](/2018/08/31/chinwag) and have a play, and even send a message or few. And if you are interested in setting up a similar system, you can follow my posts on how to get started. First, you need to install [Raspbian](/2018/09/01/raspian).
|
BIN
source/images/ansitex.png
Normal file
After Width: | Height: | Size: 4.4 KiB |
BIN
source/images/bbs-header.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
source/images/chinwag.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
source/images/docker.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
source/images/favicon.ico
Normal file
After Width: | Height: | Size: 3.9 KiB |
BIN
source/images/logo-magicka.png
Normal file
After Width: | Height: | Size: 8.1 KiB |
BIN
source/images/mbse.png
Normal file
After Width: | Height: | Size: 5.6 KiB |
BIN
source/images/mysticlogo.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
source/images/oztex.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
source/images/raspian.jpg
Normal file
After Width: | Height: | Size: 25 KiB |
23
source/networks/index.md
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
---
|
||||||
|
title: FidoNet Networks
|
||||||
|
date: 2018-09-03 17:24:36
|
||||||
|
---
|
||||||
|
My BBS's are a member of the following FTN networks.
|
||||||
|
|
||||||
|
| Network | Address |
|
||||||
|
| - | - |
|
||||||
|
| DoreNet | 44:61/0 |
|
||||||
|
| FidoNet | 3:633/509 |
|
||||||
|
| fsxNet | 21:2/116 |
|
||||||
|
| GameNet | 32:10/1 |
|
||||||
|
| microNet | 618:510/10 |
|
||||||
|
| piNet | 314:314/180 |
|
||||||
|
| RetroNet | 80:774/87 |
|
||||||
|
| SciNet | 77:3/101 |
|
||||||
|
| tqwNet | 1337:2/101 |
|
||||||
|
| VKRadio | 432:1/142 |
|
||||||
|
| VideotexNet | 516:1/1 |
|
||||||
|
|
||||||
|
I also pick up mail from DoveNet and DevelopmentNet using QWK.
|
||||||
|
|
||||||
|
If you want to send me a message, address it to `deon` at one of those network addresses above.
|
339
themes/hueman/LICENSE
Normal file
@ -0,0 +1,339 @@
|
|||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 2, June 1991
|
||||||
|
|
||||||
|
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
||||||
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The licenses for most software are designed to take away your
|
||||||
|
freedom to share and change it. By contrast, the GNU General Public
|
||||||
|
License is intended to guarantee your freedom to share and change free
|
||||||
|
software--to make sure the software is free for all its users. This
|
||||||
|
General Public License applies to most of the Free Software
|
||||||
|
Foundation's software and to any other program whose authors commit to
|
||||||
|
using it. (Some other Free Software Foundation software is covered by
|
||||||
|
the GNU Lesser General Public License instead.) You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
this service if you wish), that you receive source code or can get it
|
||||||
|
if you want it, that you can change the software or use pieces of it
|
||||||
|
in new free programs; and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to make restrictions that forbid
|
||||||
|
anyone to deny you these rights or to ask you to surrender the rights.
|
||||||
|
These restrictions translate to certain responsibilities for you if you
|
||||||
|
distribute copies of the software, or if you modify it.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must give the recipients all the rights that
|
||||||
|
you have. You must make sure that they, too, receive or can get the
|
||||||
|
source code. And you must show them these terms so they know their
|
||||||
|
rights.
|
||||||
|
|
||||||
|
We protect your rights with two steps: (1) copyright the software, and
|
||||||
|
(2) offer you this license which gives you legal permission to copy,
|
||||||
|
distribute and/or modify the software.
|
||||||
|
|
||||||
|
Also, for each author's protection and ours, we want to make certain
|
||||||
|
that everyone understands that there is no warranty for this free
|
||||||
|
software. If the software is modified by someone else and passed on, we
|
||||||
|
want its recipients to know that what they have is not the original, so
|
||||||
|
that any problems introduced by others will not reflect on the original
|
||||||
|
authors' reputations.
|
||||||
|
|
||||||
|
Finally, any free program is threatened constantly by software
|
||||||
|
patents. We wish to avoid the danger that redistributors of a free
|
||||||
|
program will individually obtain patent licenses, in effect making the
|
||||||
|
program proprietary. To prevent this, we have made it clear that any
|
||||||
|
patent must be licensed for everyone's free use or not licensed at all.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||||
|
|
||||||
|
0. This License applies to any program or other work which contains
|
||||||
|
a notice placed by the copyright holder saying it may be distributed
|
||||||
|
under the terms of this General Public License. The "Program", below,
|
||||||
|
refers to any such program or work, and a "work based on the Program"
|
||||||
|
means either the Program or any derivative work under copyright law:
|
||||||
|
that is to say, a work containing the Program or a portion of it,
|
||||||
|
either verbatim or with modifications and/or translated into another
|
||||||
|
language. (Hereinafter, translation is included without limitation in
|
||||||
|
the term "modification".) Each licensee is addressed as "you".
|
||||||
|
|
||||||
|
Activities other than copying, distribution and modification are not
|
||||||
|
covered by this License; they are outside its scope. The act of
|
||||||
|
running the Program is not restricted, and the output from the Program
|
||||||
|
is covered only if its contents constitute a work based on the
|
||||||
|
Program (independent of having been made by running the Program).
|
||||||
|
Whether that is true depends on what the Program does.
|
||||||
|
|
||||||
|
1. You may copy and distribute verbatim copies of the Program's
|
||||||
|
source code as you receive it, in any medium, provided that you
|
||||||
|
conspicuously and appropriately publish on each copy an appropriate
|
||||||
|
copyright notice and disclaimer of warranty; keep intact all the
|
||||||
|
notices that refer to this License and to the absence of any warranty;
|
||||||
|
and give any other recipients of the Program a copy of this License
|
||||||
|
along with the Program.
|
||||||
|
|
||||||
|
You may charge a fee for the physical act of transferring a copy, and
|
||||||
|
you may at your option offer warranty protection in exchange for a fee.
|
||||||
|
|
||||||
|
2. You may modify your copy or copies of the Program or any portion
|
||||||
|
of it, thus forming a work based on the Program, and copy and
|
||||||
|
distribute such modifications or work under the terms of Section 1
|
||||||
|
above, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) You must cause the modified files to carry prominent notices
|
||||||
|
stating that you changed the files and the date of any change.
|
||||||
|
|
||||||
|
b) You must cause any work that you distribute or publish, that in
|
||||||
|
whole or in part contains or is derived from the Program or any
|
||||||
|
part thereof, to be licensed as a whole at no charge to all third
|
||||||
|
parties under the terms of this License.
|
||||||
|
|
||||||
|
c) If the modified program normally reads commands interactively
|
||||||
|
when run, you must cause it, when started running for such
|
||||||
|
interactive use in the most ordinary way, to print or display an
|
||||||
|
announcement including an appropriate copyright notice and a
|
||||||
|
notice that there is no warranty (or else, saying that you provide
|
||||||
|
a warranty) and that users may redistribute the program under
|
||||||
|
these conditions, and telling the user how to view a copy of this
|
||||||
|
License. (Exception: if the Program itself is interactive but
|
||||||
|
does not normally print such an announcement, your work based on
|
||||||
|
the Program is not required to print an announcement.)
|
||||||
|
|
||||||
|
These requirements apply to the modified work as a whole. If
|
||||||
|
identifiable sections of that work are not derived from the Program,
|
||||||
|
and can be reasonably considered independent and separate works in
|
||||||
|
themselves, then this License, and its terms, do not apply to those
|
||||||
|
sections when you distribute them as separate works. But when you
|
||||||
|
distribute the same sections as part of a whole which is a work based
|
||||||
|
on the Program, the distribution of the whole must be on the terms of
|
||||||
|
this License, whose permissions for other licensees extend to the
|
||||||
|
entire whole, and thus to each and every part regardless of who wrote it.
|
||||||
|
|
||||||
|
Thus, it is not the intent of this section to claim rights or contest
|
||||||
|
your rights to work written entirely by you; rather, the intent is to
|
||||||
|
exercise the right to control the distribution of derivative or
|
||||||
|
collective works based on the Program.
|
||||||
|
|
||||||
|
In addition, mere aggregation of another work not based on the Program
|
||||||
|
with the Program (or with a work based on the Program) on a volume of
|
||||||
|
a storage or distribution medium does not bring the other work under
|
||||||
|
the scope of this License.
|
||||||
|
|
||||||
|
3. You may copy and distribute the Program (or a work based on it,
|
||||||
|
under Section 2) in object code or executable form under the terms of
|
||||||
|
Sections 1 and 2 above provided that you also do one of the following:
|
||||||
|
|
||||||
|
a) Accompany it with the complete corresponding machine-readable
|
||||||
|
source code, which must be distributed under the terms of Sections
|
||||||
|
1 and 2 above on a medium customarily used for software interchange; or,
|
||||||
|
|
||||||
|
b) Accompany it with a written offer, valid for at least three
|
||||||
|
years, to give any third party, for a charge no more than your
|
||||||
|
cost of physically performing source distribution, a complete
|
||||||
|
machine-readable copy of the corresponding source code, to be
|
||||||
|
distributed under the terms of Sections 1 and 2 above on a medium
|
||||||
|
customarily used for software interchange; or,
|
||||||
|
|
||||||
|
c) Accompany it with the information you received as to the offer
|
||||||
|
to distribute corresponding source code. (This alternative is
|
||||||
|
allowed only for noncommercial distribution and only if you
|
||||||
|
received the program in object code or executable form with such
|
||||||
|
an offer, in accord with Subsection b above.)
|
||||||
|
|
||||||
|
The source code for a work means the preferred form of the work for
|
||||||
|
making modifications to it. For an executable work, complete source
|
||||||
|
code means all the source code for all modules it contains, plus any
|
||||||
|
associated interface definition files, plus the scripts used to
|
||||||
|
control compilation and installation of the executable. However, as a
|
||||||
|
special exception, the source code distributed need not include
|
||||||
|
anything that is normally distributed (in either source or binary
|
||||||
|
form) with the major components (compiler, kernel, and so on) of the
|
||||||
|
operating system on which the executable runs, unless that component
|
||||||
|
itself accompanies the executable.
|
||||||
|
|
||||||
|
If distribution of executable or object code is made by offering
|
||||||
|
access to copy from a designated place, then offering equivalent
|
||||||
|
access to copy the source code from the same place counts as
|
||||||
|
distribution of the source code, even though third parties are not
|
||||||
|
compelled to copy the source along with the object code.
|
||||||
|
|
||||||
|
4. You may not copy, modify, sublicense, or distribute the Program
|
||||||
|
except as expressly provided under this License. Any attempt
|
||||||
|
otherwise to copy, modify, sublicense or distribute the Program is
|
||||||
|
void, and will automatically terminate your rights under this License.
|
||||||
|
However, parties who have received copies, or rights, from you under
|
||||||
|
this License will not have their licenses terminated so long as such
|
||||||
|
parties remain in full compliance.
|
||||||
|
|
||||||
|
5. You are not required to accept this License, since you have not
|
||||||
|
signed it. However, nothing else grants you permission to modify or
|
||||||
|
distribute the Program or its derivative works. These actions are
|
||||||
|
prohibited by law if you do not accept this License. Therefore, by
|
||||||
|
modifying or distributing the Program (or any work based on the
|
||||||
|
Program), you indicate your acceptance of this License to do so, and
|
||||||
|
all its terms and conditions for copying, distributing or modifying
|
||||||
|
the Program or works based on it.
|
||||||
|
|
||||||
|
6. Each time you redistribute the Program (or any work based on the
|
||||||
|
Program), the recipient automatically receives a license from the
|
||||||
|
original licensor to copy, distribute or modify the Program subject to
|
||||||
|
these terms and conditions. You may not impose any further
|
||||||
|
restrictions on the recipients' exercise of the rights granted herein.
|
||||||
|
You are not responsible for enforcing compliance by third parties to
|
||||||
|
this License.
|
||||||
|
|
||||||
|
7. If, as a consequence of a court judgment or allegation of patent
|
||||||
|
infringement or for any other reason (not limited to patent issues),
|
||||||
|
conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot
|
||||||
|
distribute so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you
|
||||||
|
may not distribute the Program at all. For example, if a patent
|
||||||
|
license would not permit royalty-free redistribution of the Program by
|
||||||
|
all those who receive copies directly or indirectly through you, then
|
||||||
|
the only way you could satisfy both it and this License would be to
|
||||||
|
refrain entirely from distribution of the Program.
|
||||||
|
|
||||||
|
If any portion of this section is held invalid or unenforceable under
|
||||||
|
any particular circumstance, the balance of the section is intended to
|
||||||
|
apply and the section as a whole is intended to apply in other
|
||||||
|
circumstances.
|
||||||
|
|
||||||
|
It is not the purpose of this section to induce you to infringe any
|
||||||
|
patents or other property right claims or to contest validity of any
|
||||||
|
such claims; this section has the sole purpose of protecting the
|
||||||
|
integrity of the free software distribution system, which is
|
||||||
|
implemented by public license practices. Many people have made
|
||||||
|
generous contributions to the wide range of software distributed
|
||||||
|
through that system in reliance on consistent application of that
|
||||||
|
system; it is up to the author/donor to decide if he or she is willing
|
||||||
|
to distribute software through any other system and a licensee cannot
|
||||||
|
impose that choice.
|
||||||
|
|
||||||
|
This section is intended to make thoroughly clear what is believed to
|
||||||
|
be a consequence of the rest of this License.
|
||||||
|
|
||||||
|
8. If the distribution and/or use of the Program is restricted in
|
||||||
|
certain countries either by patents or by copyrighted interfaces, the
|
||||||
|
original copyright holder who places the Program under this License
|
||||||
|
may add an explicit geographical distribution limitation excluding
|
||||||
|
those countries, so that distribution is permitted only in or among
|
||||||
|
countries not thus excluded. In such case, this License incorporates
|
||||||
|
the limitation as if written in the body of this License.
|
||||||
|
|
||||||
|
9. The Free Software Foundation may publish revised and/or new versions
|
||||||
|
of the General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the Program
|
||||||
|
specifies a version number of this License which applies to it and "any
|
||||||
|
later version", you have the option of following the terms and conditions
|
||||||
|
either of that version or of any later version published by the Free
|
||||||
|
Software Foundation. If the Program does not specify a version number of
|
||||||
|
this License, you may choose any version ever published by the Free Software
|
||||||
|
Foundation.
|
||||||
|
|
||||||
|
10. If you wish to incorporate parts of the Program into other free
|
||||||
|
programs whose distribution conditions are different, write to the author
|
||||||
|
to ask for permission. For software which is copyrighted by the Free
|
||||||
|
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||||
|
make exceptions for this. Our decision will be guided by the two goals
|
||||||
|
of preserving the free status of all derivatives of our free software and
|
||||||
|
of promoting the sharing and reuse of software generally.
|
||||||
|
|
||||||
|
NO WARRANTY
|
||||||
|
|
||||||
|
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||||
|
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||||
|
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||||
|
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||||
|
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||||
|
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||||
|
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||||
|
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||||
|
REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||||
|
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||||
|
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||||
|
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||||
|
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||||
|
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||||
|
POSSIBILITY OF SUCH DAMAGES.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
convey the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
A Hexo migrator that import off-site images referenced in markdown source
|
||||||
|
Copyright (C) 2013 AKFish
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along
|
||||||
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program is interactive, make it output a short notice like this
|
||||||
|
when it starts in an interactive mode:
|
||||||
|
|
||||||
|
Gnomovision version 69, Copyright (C) year name of author
|
||||||
|
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it
|
||||||
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||||
|
parts of the General Public License. Of course, the commands you use may
|
||||||
|
be called something other than `show w' and `show c'; they could even be
|
||||||
|
mouse-clicks or menu items--whatever suits your program.
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or your
|
||||||
|
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||||
|
necessary. Here is a sample; alter the names:
|
||||||
|
|
||||||
|
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||||
|
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||||
|
|
||||||
|
{signature of Ty Coon}, 1 April 1989
|
||||||
|
Ty Coon, President of Vice
|
||||||
|
|
||||||
|
This General Public License does not permit incorporating your program into
|
||||||
|
proprietary programs. If your program is a subroutine library, you may
|
||||||
|
consider it more useful to permit linking proprietary applications with the
|
||||||
|
library. If this is what you want to do, use the GNU Lesser General
|
||||||
|
Public License instead of this License.
|
68
themes/hueman/README.md
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
# Hueman
|
||||||
|
#### Probably the most beautiful theme for Hexo. [Preview](http://ppoffice.github.io/hexo-theme-hueman/)
|
||||||
|
|
||||||
|
![Hueman](http://ppoffice.github.io/hexo-theme-hueman/gallery/screenshot.jpg "")
|
||||||
|
|
||||||
|
> This theme is ported from [AlxMedia](https://github.com/AlxMedia)'s the WordPress theme [Hueman](https://github.com/AlxMedia/hueman).
|
||||||
|
|
||||||
|
> Special thanks to [AlxMedia](https://github.com/AlxMedia), who designed the original theme [Hueman](https://github.com/AlxMedia/hueman) for wordpress.
|
||||||
|
|
||||||
|
#### [View Documentation](https://github.com/ppoffice/hexo-theme-hueman/wiki)
|
||||||
|
:star: It is strongly recommended that you read the docs before using Hueman.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
### Responsive Layout
|
||||||
|
|
||||||
|
Hueman knows on what screen size you are browsering the website, and reorganize the layout to fit your device.
|
||||||
|
|
||||||
|
![](http://ppoffice.github.io/hexo-theme-hueman/gallery/responsive.jpg "")
|
||||||
|
|
||||||
|
### Categories inside Main Menu
|
||||||
|
|
||||||
|
Hueman inserts your blog categories into main menu in the header section. You can enable/disable this feature in `menu` setting.
|
||||||
|
|
||||||
|
![](http://ppoffice.github.io/hexo-theme-hueman/gallery/main-menu.jpg "")
|
||||||
|
|
||||||
|
### Self-hosted Insite Search Engine
|
||||||
|
With the help of [Insight Search](https://github.com/ppoffice/hexo-theme-hueman/wiki/Search#insight-search), you can search anything inside your site without any third-party plugin.
|
||||||
|
|
||||||
|
![](http://ppoffice.github.io/hexo-theme-hueman/gallery/insight-search.png "")
|
||||||
|
|
||||||
|
### Custom Comment Services
|
||||||
|
Hueman supports several comment services, give you better choices to communicate with your readers.
|
||||||
|
|
||||||
|
![](http://ppoffice.github.io/hexo-theme-hueman/gallery/custom-comments.png "")
|
||||||
|
|
||||||
|
### Thumbnail
|
||||||
|
|
||||||
|
Hueman uses the `thumbnail` [front-matter](https://hexo.io/docs/front-matter.html) option to set the thumbnail for a post. If the post does not have a `thumbnail` option, Hueman will find the first image in the post as the thumbnail. You can enable/disable this feature in `thumbnail` setting.
|
||||||
|
|
||||||
|
![](http://ppoffice.github.io/hexo-theme-hueman/gallery/thumbnail.jpg "")
|
||||||
|
|
||||||
|
### Code Highlight
|
||||||
|
Hueman has more than 60 themes imported from [Highlight.js](https://github.com/isagalaev/highlight.js), and it is very easy to customize your own highlight theme.
|
||||||
|
|
||||||
|
![](http://ppoffice.github.io/hexo-theme-hueman/gallery/code-highlight.png "")
|
||||||
|
|
||||||
|
### lightgallery
|
||||||
|
|
||||||
|
Hueman uses [lightgallery.js](https://sachinchoolur.github.io/lightgallery.js/) to showcase your photos. Just enable it in your configuration, and that's all!
|
||||||
|
|
||||||
|
![](http://ppoffice.github.io/hexo-theme-hueman/gallery/lightgallery.jpg "")
|
||||||
|
|
||||||
|
### Sidebar
|
||||||
|
|
||||||
|
Hueman provides 6 built-in widgets:
|
||||||
|
|
||||||
|
- recent_posts
|
||||||
|
- category
|
||||||
|
- archives
|
||||||
|
- tag
|
||||||
|
- tagcloud
|
||||||
|
- links
|
||||||
|
|
||||||
|
All of them are enabled by default. You can edit them in `widget` setting.
|
||||||
|
|
||||||
|
### And so many new features to be explored...
|
||||||
|
[View Documentation](https://github.com/ppoffice/hexo-theme-hueman/wiki)
|
106
themes/hueman/_config.yml
Normal file
@ -0,0 +1,106 @@
|
|||||||
|
# Menus
|
||||||
|
menu:
|
||||||
|
Home: /
|
||||||
|
# Delete this row if you don't want categories in your header nav bar
|
||||||
|
Categories:
|
||||||
|
Networks: /networks/index.html
|
||||||
|
About: /about/index.html
|
||||||
|
|
||||||
|
# Customize
|
||||||
|
customize:
|
||||||
|
logo:
|
||||||
|
width: 320
|
||||||
|
height: 90
|
||||||
|
url: /images/bbs-header.png
|
||||||
|
theme_color: '#006bde'
|
||||||
|
highlight: tomorrow-night
|
||||||
|
sidebar: left # sidebar position, options: left, right
|
||||||
|
thumbnail: true # enable posts thumbnail, options: true, false
|
||||||
|
favicon: /images/favicon.ico # path to favicon
|
||||||
|
# social_links: # for more icons, please see http://fontawesome.io/icons/#brand
|
||||||
|
# twitter: /
|
||||||
|
# facebook: /
|
||||||
|
# google-plus: /
|
||||||
|
# github: https://github.com/ppoffice/hexo-theme-hueman
|
||||||
|
# weibo: /
|
||||||
|
# rss: /
|
||||||
|
|
||||||
|
# Widgets
|
||||||
|
widgets:
|
||||||
|
# - catalog
|
||||||
|
- recent_posts
|
||||||
|
- category
|
||||||
|
# - archive
|
||||||
|
- tag
|
||||||
|
# - tagcloud
|
||||||
|
# - links
|
||||||
|
|
||||||
|
# Search
|
||||||
|
search:
|
||||||
|
insight: true # you need to install `hexo-generator-json-content` before using Insight Search
|
||||||
|
swiftype: # enter swiftype install key here
|
||||||
|
baidu: false # you need to disable other search engines to use Baidu search, options: true, false
|
||||||
|
|
||||||
|
# Comment
|
||||||
|
comment:
|
||||||
|
disqus: # enter disqus shortname here
|
||||||
|
duoshuo: # enter duoshuo shortname here
|
||||||
|
youyan: # enter youyan uid here
|
||||||
|
facebook: # enter true to enable
|
||||||
|
isso: # options for isso. All fields below are OPTIONAL (except for site). See https://posativ.org/isso/docs/configuration/client/ for more information.
|
||||||
|
on: # enter true to enable isso
|
||||||
|
site: # enter the domain name of your own comment isso server, eg. comments.example.com
|
||||||
|
lang: # two letter language code, eg. en
|
||||||
|
reply-to-self: # true when your server spam guard has this value set
|
||||||
|
require-author: # true when your server spam guard has this value set
|
||||||
|
require-email: # true when your server spam guard has this value set
|
||||||
|
max-comments-top: # number of top level comments to show, specify "inf" for all
|
||||||
|
max-comments-nested: # number of nested comments to show.
|
||||||
|
reveal-on-click: # number of comments to reveal when clicking "hidden" link
|
||||||
|
avatar: # true|false, setting to enable avatar generation
|
||||||
|
avatar-bg: # background color of avatar, i.e. "#f0f0f0"
|
||||||
|
avatar-fg: # set pallet of foreground colors (up to 8) i.e. "#9abf88 #5698c4 #e279a3 #9163b6"
|
||||||
|
vote: # true|false, setting to enable voting feature on client side.
|
||||||
|
vote-levels: # levels to customize appearance of comments, eg. "[-5, 5, 15]" or "0,5,10"
|
||||||
|
changyan:
|
||||||
|
appId: # enter the changyan appId here
|
||||||
|
appKey: # enter the changyan appKey here
|
||||||
|
on: # enter true to enable
|
||||||
|
valine: # Valine Comment System https://github.com/xCss/Valine
|
||||||
|
on: # enter true to enable valine
|
||||||
|
appId: # enter the leancloud application appId here
|
||||||
|
appKey: # enter the leancloud application appKey here
|
||||||
|
notify: # enter true to enable <Mail notifier> https://github.com/xCss/Valine/wiki/Valine-%E8%AF%84%E8%AE%BA%E7%B3%BB%E7%BB%9F%E4%B8%AD%E7%9A%84%E9%82%AE%E4%BB%B6%E6%8F%90%E9%86%92%E8%AE%BE%E7%BD%AE
|
||||||
|
verify: # enter true to enable <Validation code>
|
||||||
|
placeholder: Just Do It # enter the comment box placeholder
|
||||||
|
avatar: identicon # (''/mm/identicon/monsterid/wavatar/retro/hide), more to see https://valine.js.org/avatar/
|
||||||
|
avatar_cdn: https://gravatar.loli.net/avatar/ # avatar CDN address, default gravatar.loli.net
|
||||||
|
pageSize: 10 # comments of one page
|
||||||
|
|
||||||
|
# Share
|
||||||
|
share: default # options: jiathis, bdshare, addtoany, default
|
||||||
|
|
||||||
|
# Plugins
|
||||||
|
plugins:
|
||||||
|
lightgallery: true # options: true, false
|
||||||
|
justifiedgallery: true # options: true, false
|
||||||
|
google_analytics: # enter the tracking ID for your Google Analytics
|
||||||
|
baidu_analytics: # enter Baidu Analytics hash key
|
||||||
|
bing_site_verification: # enter Bing verification key here
|
||||||
|
statcounter:
|
||||||
|
sc_project: # enter statcounter project id
|
||||||
|
sc_invisible: # enter 1 to make statcounter invisible
|
||||||
|
sc_security: # enter security code
|
||||||
|
public: # enter true if you want a link to your public stats. Must be configured on statcouter as well.
|
||||||
|
on: # enter true to enable statcounter
|
||||||
|
mathjax: false # options: true, false
|
||||||
|
|
||||||
|
# Miscellaneous
|
||||||
|
miscellaneous:
|
||||||
|
open_graph: # see http://ogp.me
|
||||||
|
fb_app_id:
|
||||||
|
fb_admins:
|
||||||
|
twitter_id:
|
||||||
|
google_plus:
|
||||||
|
links:
|
||||||
|
Mystic Docker: https://dev.leenooks.net/leenooks/mysticbbs
|
105
themes/hueman/_config.yml.example
Normal file
@ -0,0 +1,105 @@
|
|||||||
|
# Menus
|
||||||
|
menu:
|
||||||
|
Home: /
|
||||||
|
# Delete this row if you don't want categories in your header nav bar
|
||||||
|
Categories:
|
||||||
|
About: /about/index.html
|
||||||
|
|
||||||
|
# Customize
|
||||||
|
customize:
|
||||||
|
logo:
|
||||||
|
width: 165
|
||||||
|
height: 60
|
||||||
|
url: images/logo-header.png
|
||||||
|
theme_color: '#006bde'
|
||||||
|
highlight: androidstudio
|
||||||
|
sidebar: left # sidebar position, options: left, right
|
||||||
|
thumbnail: true # enable posts thumbnail, options: true, false
|
||||||
|
favicon: # path to favicon
|
||||||
|
social_links: # for more icons, please see http://fontawesome.io/icons/#brand
|
||||||
|
twitter: /
|
||||||
|
facebook: /
|
||||||
|
google-plus: /
|
||||||
|
github: https://github.com/ppoffice/hexo-theme-hueman
|
||||||
|
weibo: /
|
||||||
|
rss: /
|
||||||
|
|
||||||
|
# Widgets
|
||||||
|
widgets:
|
||||||
|
- catalog
|
||||||
|
- recent_posts
|
||||||
|
- category
|
||||||
|
- archive
|
||||||
|
- tag
|
||||||
|
- tagcloud
|
||||||
|
- links
|
||||||
|
|
||||||
|
# Search
|
||||||
|
search:
|
||||||
|
insight: true # you need to install `hexo-generator-json-content` before using Insight Search
|
||||||
|
swiftype: # enter swiftype install key here
|
||||||
|
baidu: false # you need to disable other search engines to use Baidu search, options: true, false
|
||||||
|
|
||||||
|
# Comment
|
||||||
|
comment:
|
||||||
|
disqus: hexo-theme-hueman # enter disqus shortname here
|
||||||
|
duoshuo: # enter duoshuo shortname here
|
||||||
|
youyan: # enter youyan uid here
|
||||||
|
facebook: # enter true to enable
|
||||||
|
isso: # options for isso. All fields below are OPTIONAL (except for site). See https://posativ.org/isso/docs/configuration/client/ for more information.
|
||||||
|
on: # enter true to enable isso
|
||||||
|
site: # enter the domain name of your own comment isso server, eg. comments.example.com
|
||||||
|
lang: # two letter language code, eg. en
|
||||||
|
reply-to-self: # true when your server spam guard has this value set
|
||||||
|
require-author: # true when your server spam guard has this value set
|
||||||
|
require-email: # true when your server spam guard has this value set
|
||||||
|
max-comments-top: # number of top level comments to show, specify "inf" for all
|
||||||
|
max-comments-nested: # number of nested comments to show.
|
||||||
|
reveal-on-click: # number of comments to reveal when clicking "hidden" link
|
||||||
|
avatar: # true|false, setting to enable avatar generation
|
||||||
|
avatar-bg: # background color of avatar, i.e. "#f0f0f0"
|
||||||
|
avatar-fg: # set pallet of foreground colors (up to 8) i.e. "#9abf88 #5698c4 #e279a3 #9163b6"
|
||||||
|
vote: # true|false, setting to enable voting feature on client side.
|
||||||
|
vote-levels: # levels to customize appearance of comments, eg. "[-5, 5, 15]" or "0,5,10"
|
||||||
|
changyan:
|
||||||
|
appId: # enter the changyan appId here
|
||||||
|
appKey: # enter the changyan appKey here
|
||||||
|
on: # enter true to enable
|
||||||
|
valine: # Valine Comment System https://github.com/xCss/Valine
|
||||||
|
on: # enter true to enable valine
|
||||||
|
appId: # enter the leancloud application appId here
|
||||||
|
appKey: # enter the leancloud application appKey here
|
||||||
|
notify: # enter true to enable <Mail notifier> https://github.com/xCss/Valine/wiki/Valine-%E8%AF%84%E8%AE%BA%E7%B3%BB%E7%BB%9F%E4%B8%AD%E7%9A%84%E9%82%AE%E4%BB%B6%E6%8F%90%E9%86%92%E8%AE%BE%E7%BD%AE
|
||||||
|
verify: # enter true to enable <Validation code>
|
||||||
|
placeholder: Just Do It # enter the comment box placeholder
|
||||||
|
avatar: identicon # (''/mm/identicon/monsterid/wavatar/retro/hide), more to see https://valine.js.org/avatar/
|
||||||
|
avatar_cdn: https://gravatar.loli.net/avatar/ # avatar CDN address, default gravatar.loli.net
|
||||||
|
pageSize: 10 # comments of one page
|
||||||
|
|
||||||
|
# Share
|
||||||
|
share: default # options: jiathis, bdshare, addtoany, default
|
||||||
|
|
||||||
|
# Plugins
|
||||||
|
plugins:
|
||||||
|
lightgallery: true # options: true, false
|
||||||
|
justifiedgallery: true # options: true, false
|
||||||
|
google_analytics: # enter the tracking ID for your Google Analytics
|
||||||
|
baidu_analytics: # enter Baidu Analytics hash key
|
||||||
|
bing_site_verification: # enter Bing verification key here
|
||||||
|
statcounter:
|
||||||
|
sc_project: # enter statcounter project id
|
||||||
|
sc_invisible: # enter 1 to make statcounter invisible
|
||||||
|
sc_security: # enter security code
|
||||||
|
public: # enter true if you want a link to your public stats. Must be configured on statcouter as well.
|
||||||
|
on: # enter true to enable statcounter
|
||||||
|
mathjax: false # options: true, false
|
||||||
|
|
||||||
|
# Miscellaneous
|
||||||
|
miscellaneous:
|
||||||
|
open_graph: # see http://ogp.me
|
||||||
|
fb_app_id:
|
||||||
|
fb_admins:
|
||||||
|
twitter_id:
|
||||||
|
google_plus:
|
||||||
|
links:
|
||||||
|
Hexo: http://hexo.io
|
33
themes/hueman/languages/ca.yml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
index:
|
||||||
|
home: 'Inici'
|
||||||
|
about: 'Quant a'
|
||||||
|
search: 'Cercar'
|
||||||
|
archive: 'Arxiu'
|
||||||
|
category: 'Categoria'
|
||||||
|
uncategorized: 'Sense categoria'
|
||||||
|
tag: 'Etiqueta'
|
||||||
|
nav:
|
||||||
|
current_page:
|
||||||
|
other: 'Pàgina %d '
|
||||||
|
total_page:
|
||||||
|
other: 'de %d'
|
||||||
|
sidebar:
|
||||||
|
follow: 'seguir'
|
||||||
|
newer: 'més nou'
|
||||||
|
older: 'antic'
|
||||||
|
recents: 'recents'
|
||||||
|
archives: 'arxius'
|
||||||
|
categories: 'categories'
|
||||||
|
links: 'links'
|
||||||
|
tags: 'etiquetes'
|
||||||
|
tag_cloud: 'etiqueta cloud'
|
||||||
|
article:
|
||||||
|
comments: 'Comentaris'
|
||||||
|
share: 'Compartir'
|
||||||
|
insight:
|
||||||
|
hint: 'Type something...'
|
||||||
|
posts: 'Posts'
|
||||||
|
pages: 'Pages'
|
||||||
|
categories: 'categories'
|
||||||
|
tags: 'etiquetes'
|
||||||
|
untitled: '(Untitled)'
|
36
themes/hueman/languages/en.yml
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
index:
|
||||||
|
home: 'Home'
|
||||||
|
about: 'About'
|
||||||
|
search: 'Search'
|
||||||
|
archive: 'Archive'
|
||||||
|
category: 'Category'
|
||||||
|
networks: 'Networks'
|
||||||
|
uncategorized: 'uncategorized'
|
||||||
|
tag: 'Tag'
|
||||||
|
nav:
|
||||||
|
current_page:
|
||||||
|
other: 'Page %d '
|
||||||
|
total_page:
|
||||||
|
other: 'of %d'
|
||||||
|
sidebar:
|
||||||
|
follow: 'follow'
|
||||||
|
newer: 'newer'
|
||||||
|
older: 'older'
|
||||||
|
recents: 'recents'
|
||||||
|
sticky: 'Popular'
|
||||||
|
archives: 'archives'
|
||||||
|
categories: 'categories'
|
||||||
|
links: 'links'
|
||||||
|
tags: 'tags'
|
||||||
|
tag_cloud: 'tag cloud'
|
||||||
|
catalogue: 'Catalog'
|
||||||
|
article:
|
||||||
|
comments: 'Comments'
|
||||||
|
share: 'Share'
|
||||||
|
insight:
|
||||||
|
hint: 'Type something...'
|
||||||
|
posts: 'Posts'
|
||||||
|
pages: 'Pages'
|
||||||
|
categories: 'Categories'
|
||||||
|
tags: 'Tags'
|
||||||
|
untitled: '(Untitled)'
|
33
themes/hueman/languages/es.yml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
index:
|
||||||
|
home: 'Inicio'
|
||||||
|
about: 'Acerca de'
|
||||||
|
search: 'Buscar'
|
||||||
|
archive: 'Archivo'
|
||||||
|
category: 'Categoria'
|
||||||
|
uncategorized: 'Sin categoría'
|
||||||
|
tag: 'Etiqueta'
|
||||||
|
nav:
|
||||||
|
current_page:
|
||||||
|
other: 'Página %d '
|
||||||
|
total_page:
|
||||||
|
other: 'de %d'
|
||||||
|
sidebar:
|
||||||
|
follow: 'seguir'
|
||||||
|
newer: 'más nuevo'
|
||||||
|
older: 'antiguo'
|
||||||
|
recents: 'recientes'
|
||||||
|
archives: 'archivos'
|
||||||
|
categories: 'categorias'
|
||||||
|
links: 'links'
|
||||||
|
tags: 'etiquetas'
|
||||||
|
tag_cloud: 'etiqueta cloud'
|
||||||
|
article:
|
||||||
|
comments: 'Comentarios'
|
||||||
|
share: 'Compartir'
|
||||||
|
insight:
|
||||||
|
hint: 'Type something...'
|
||||||
|
posts: 'Entradas'
|
||||||
|
pages: 'Pages'
|
||||||
|
categories: 'Categorias'
|
||||||
|
tags: 'Etiquetas'
|
||||||
|
untitled: '(Untitled)'
|
33
themes/hueman/languages/fr.yml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
index:
|
||||||
|
home: 'Accueil'
|
||||||
|
about: 'À propos'
|
||||||
|
search: 'Rechercher'
|
||||||
|
archive: 'Archive'
|
||||||
|
category: 'Categorie'
|
||||||
|
uncategorized: 'Aucune catégorie'
|
||||||
|
tag: 'Tag'
|
||||||
|
nav:
|
||||||
|
current_page:
|
||||||
|
other: 'Page %d '
|
||||||
|
total_page:
|
||||||
|
other: 'sur %d'
|
||||||
|
sidebar:
|
||||||
|
follow: 'suivre'
|
||||||
|
newer: '+ récent'
|
||||||
|
older: '- récent'
|
||||||
|
recents: 'récents'
|
||||||
|
archives: 'archives'
|
||||||
|
categories: 'catégories'
|
||||||
|
links: 'liens'
|
||||||
|
tags: 'tags'
|
||||||
|
tag_cloud: 'tag cloud'
|
||||||
|
article:
|
||||||
|
comments: 'Commentaires'
|
||||||
|
share: 'Partager'
|
||||||
|
insight:
|
||||||
|
hint: 'Type something...'
|
||||||
|
posts: 'Articles'
|
||||||
|
pages: 'Pages'
|
||||||
|
categories: 'Catégories'
|
||||||
|
tags: 'Tags'
|
||||||
|
untitled: '(Untitled)'
|
33
themes/hueman/languages/hu.yml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
index:
|
||||||
|
home: 'Főoldal'
|
||||||
|
about: 'Elérhetőség'
|
||||||
|
search: 'Keresés'
|
||||||
|
archive: 'Archívum'
|
||||||
|
category: 'Kategória'
|
||||||
|
uncategorized: 'kategorizálatlan'
|
||||||
|
tag: 'Címke'
|
||||||
|
nav:
|
||||||
|
current_page:
|
||||||
|
other: '%d. oldal '
|
||||||
|
total_page:
|
||||||
|
other: '/ %d'
|
||||||
|
sidebar:
|
||||||
|
follow: 'követés'
|
||||||
|
newer: 'következő'
|
||||||
|
older: 'előző'
|
||||||
|
recents: 'friss'
|
||||||
|
archives: 'archívum'
|
||||||
|
categories: 'kategórák'
|
||||||
|
links: 'linkek'
|
||||||
|
tags: 'címkék'
|
||||||
|
tag_cloud: 'címkefelhő'
|
||||||
|
article:
|
||||||
|
comments: 'Komment'
|
||||||
|
share: 'Megosztás'
|
||||||
|
insight:
|
||||||
|
hint: 'Keresendő szöveg...'
|
||||||
|
posts: 'Bejegyzések'
|
||||||
|
pages: 'Oldalak'
|
||||||
|
categories: 'Kategóriák'
|
||||||
|
tags: 'Címkék'
|
||||||
|
untitled: '(Névtelen)'
|
33
themes/hueman/languages/id.yml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
index:
|
||||||
|
home: 'Beranda'
|
||||||
|
about: 'Tentang'
|
||||||
|
search: 'Cari'
|
||||||
|
archive: 'Arsip'
|
||||||
|
category: 'Kategori'
|
||||||
|
uncategorized: 'belum terkategori'
|
||||||
|
tag: 'Tag'
|
||||||
|
nav:
|
||||||
|
current_page:
|
||||||
|
other: 'Halaman %d '
|
||||||
|
total_page:
|
||||||
|
other: 'dari %d'
|
||||||
|
sidebar:
|
||||||
|
follow: 'ikuti'
|
||||||
|
newer: 'lebih baru'
|
||||||
|
older: 'lebih lawas'
|
||||||
|
recents: 'terbaru'
|
||||||
|
archives: 'arsip'
|
||||||
|
categories: 'kategori'
|
||||||
|
links: 'tautan'
|
||||||
|
tags: 'tag'
|
||||||
|
tag_cloud: 'awan tag'
|
||||||
|
article:
|
||||||
|
comments: 'Komentar'
|
||||||
|
share: 'Bagikan'
|
||||||
|
insight:
|
||||||
|
hint: 'Type something...'
|
||||||
|
posts: 'pos'
|
||||||
|
pages: 'Pages'
|
||||||
|
categories: 'kategori'
|
||||||
|
tags: 'tag'
|
||||||
|
untitled: '(Untitled)'
|
33
themes/hueman/languages/ja.yml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
index:
|
||||||
|
home: 'ホーム'
|
||||||
|
about: 'このブログについて'
|
||||||
|
search: '検索'
|
||||||
|
archive: 'アーカイブ'
|
||||||
|
category: 'カテゴリー'
|
||||||
|
uncategorized: 'カテゴリ未設定'
|
||||||
|
tag: 'タグ'
|
||||||
|
nav:
|
||||||
|
current_page:
|
||||||
|
other: ' %d ページ'
|
||||||
|
total_page:
|
||||||
|
other: '%d ページ中'
|
||||||
|
sidebar:
|
||||||
|
follow: 'フォロー'
|
||||||
|
newer: '新しい'
|
||||||
|
older: '古い'
|
||||||
|
recents: '最新'
|
||||||
|
archives: 'アーカイブ'
|
||||||
|
categories: 'カテゴリー'
|
||||||
|
links: 'リンク'
|
||||||
|
tags: 'タグ'
|
||||||
|
tag_cloud: 'タグクラウド'
|
||||||
|
article:
|
||||||
|
comments: 'コメント'
|
||||||
|
share: 'シェア'
|
||||||
|
insight:
|
||||||
|
hint: '入力してください'
|
||||||
|
posts: '記事'
|
||||||
|
pages: 'ページ'
|
||||||
|
categories: 'カテゴリー'
|
||||||
|
tags: 'タグ'
|
||||||
|
untitled: '(名称未設定)'
|
33
themes/hueman/languages/ko.yml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
index:
|
||||||
|
home: '홈'
|
||||||
|
about: 'About'
|
||||||
|
search: '검색'
|
||||||
|
archive: '아카이브'
|
||||||
|
category: '카테고리'
|
||||||
|
uncategorized: '미지정'
|
||||||
|
tag: '태그'
|
||||||
|
nav:
|
||||||
|
current_page:
|
||||||
|
other: 'Page %d '
|
||||||
|
total_page:
|
||||||
|
other: 'of %d'
|
||||||
|
sidebar:
|
||||||
|
follow: '팔로우'
|
||||||
|
newer: '새로운'
|
||||||
|
older: '오래된'
|
||||||
|
recents: '최근 글'
|
||||||
|
archives: '아카이브'
|
||||||
|
categories: '카테고리'
|
||||||
|
links: '링크'
|
||||||
|
tags: '태그'
|
||||||
|
tag_cloud: '태그 클라우드'
|
||||||
|
article:
|
||||||
|
comments: '댓글'
|
||||||
|
share: '공유하기'
|
||||||
|
insight:
|
||||||
|
hint: 'Type something...'
|
||||||
|
posts: '포스트'
|
||||||
|
pages: 'Pages'
|
||||||
|
categories: '카테고리'
|
||||||
|
tags: '태그'
|
||||||
|
untitled: '(Untitled)'
|
33
themes/hueman/languages/pt-BR.yml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
index:
|
||||||
|
home: 'Home'
|
||||||
|
about: 'Sobre'
|
||||||
|
search: 'Busca'
|
||||||
|
archive: 'Arquivo'
|
||||||
|
category: 'Categoria'
|
||||||
|
uncategorized: 'sem categoria'
|
||||||
|
tag: 'Tag'
|
||||||
|
nav:
|
||||||
|
current_page:
|
||||||
|
other: 'Página %d '
|
||||||
|
total_page:
|
||||||
|
other: 'de %d'
|
||||||
|
sidebar:
|
||||||
|
follow: 'seguir'
|
||||||
|
newer: 'novos'
|
||||||
|
older: 'antigos'
|
||||||
|
recents: 'recentes'
|
||||||
|
archives: 'arquivos'
|
||||||
|
categories: 'categorias'
|
||||||
|
links: 'links'
|
||||||
|
tags: 'tags'
|
||||||
|
tag_cloud: 'tag cloud'
|
||||||
|
article:
|
||||||
|
comments: 'Comentários'
|
||||||
|
share: 'Compartilhar'
|
||||||
|
insight:
|
||||||
|
hint: 'Type something...'
|
||||||
|
posts: 'Posts'
|
||||||
|
pages: 'Pages'
|
||||||
|
categories: 'categorias'
|
||||||
|
tags: 'tags'
|
||||||
|
untitled: '(Untitled)'
|
33
themes/hueman/languages/ru.yml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
index:
|
||||||
|
home: 'Главная'
|
||||||
|
about: 'О сайте'
|
||||||
|
search: 'Поиск'
|
||||||
|
archive: 'архив'
|
||||||
|
category: 'категории : '
|
||||||
|
uncategorized: 'без категории'
|
||||||
|
tag: 'тэг : '
|
||||||
|
nav:
|
||||||
|
current_page:
|
||||||
|
other: 'Страница %d '
|
||||||
|
total_page:
|
||||||
|
other: 'из %d'
|
||||||
|
sidebar:
|
||||||
|
follow: 'Подписаться'
|
||||||
|
newer: 'новые'
|
||||||
|
older: 'старые'
|
||||||
|
recents: 'недавние'
|
||||||
|
archives: 'архивы'
|
||||||
|
categories: 'Категории'
|
||||||
|
links: 'ссылки'
|
||||||
|
tags: 'Тэги'
|
||||||
|
tag_cloud: 'Облако тэгов'
|
||||||
|
article:
|
||||||
|
comments: 'Комментарии'
|
||||||
|
share: 'Поделиться'
|
||||||
|
insight:
|
||||||
|
hint: 'Введите что-нибудь...'
|
||||||
|
posts: 'посты'
|
||||||
|
pages: 'страницы'
|
||||||
|
categories: 'категории'
|
||||||
|
tags: 'теги'
|
||||||
|
untitled: '(Без названия)'
|
33
themes/hueman/languages/tr.yml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
index:
|
||||||
|
home: 'Anasayfa'
|
||||||
|
about: 'Hakkında'
|
||||||
|
search: 'Ara'
|
||||||
|
archive: 'Arşiv'
|
||||||
|
category: 'Kategori'
|
||||||
|
uncategorized: 'Kategorisiz'
|
||||||
|
tag: 'Etiket'
|
||||||
|
nav:
|
||||||
|
current_page:
|
||||||
|
other: 'Sayfa %d '
|
||||||
|
total_page:
|
||||||
|
other: 'toplam %d'
|
||||||
|
sidebar:
|
||||||
|
follow: 'Takip Et'
|
||||||
|
newer: 'sonraki'
|
||||||
|
older: 'önceki'
|
||||||
|
recents: 'son yazılar'
|
||||||
|
archives: 'arşiv'
|
||||||
|
categories: 'kategoriler'
|
||||||
|
links: 'linkler'
|
||||||
|
tags: 'etiketler'
|
||||||
|
tag_cloud: 'etiket bulutu'
|
||||||
|
article:
|
||||||
|
comments: 'Yorumlar'
|
||||||
|
share: 'Paylaş'
|
||||||
|
insight:
|
||||||
|
hint: 'Bir şeyler yaz...'
|
||||||
|
posts: 'Gönderiler'
|
||||||
|
pages: 'Sayfalar'
|
||||||
|
categories: 'Kategoriler'
|
||||||
|
tags: 'Etiketler'
|
||||||
|
untitled: '(Başlıksız)'
|
33
themes/hueman/languages/vi.yml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
index:
|
||||||
|
home: 'Trang chủ'
|
||||||
|
about: 'Giới thiệu'
|
||||||
|
search: 'Tìm kiếm'
|
||||||
|
archive: 'Lưu trữ'
|
||||||
|
category: 'Chuyên mục'
|
||||||
|
uncategorized: 'Chưa phân loại'
|
||||||
|
tag: 'Thẻ'
|
||||||
|
nav:
|
||||||
|
current_page:
|
||||||
|
other: '%d '
|
||||||
|
total_page:
|
||||||
|
other: '/ %d'
|
||||||
|
sidebar:
|
||||||
|
follow: 'Theo dõi'
|
||||||
|
newer: 'Mới hơn'
|
||||||
|
older: 'Cũ hơn'
|
||||||
|
recents: 'Bài viết mới'
|
||||||
|
archives: 'Lưu trữ'
|
||||||
|
categories: 'Chuyên mục'
|
||||||
|
links: 'Liên kết'
|
||||||
|
tags: 'Thẻ'
|
||||||
|
tag_cloud: 'Mây thẻ'
|
||||||
|
article:
|
||||||
|
comments: 'Bình luận'
|
||||||
|
share: 'Chia sẻ'
|
||||||
|
insight:
|
||||||
|
hint: 'Gõ gì đó...'
|
||||||
|
posts: 'Bài viết'
|
||||||
|
pages: 'Trang'
|
||||||
|
categories: 'Chuyên mục'
|
||||||
|
tags: 'Thẻ'
|
||||||
|
untitled: '(Không đề)'
|
34
themes/hueman/languages/zh-CN.yml
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
index:
|
||||||
|
home: '主页'
|
||||||
|
about: '关于'
|
||||||
|
search: '搜索'
|
||||||
|
archive: '归档'
|
||||||
|
category: '分类:'
|
||||||
|
uncategorized: '未分类'
|
||||||
|
tag: '标签:'
|
||||||
|
nav:
|
||||||
|
current_page:
|
||||||
|
other: '第 %d 页,'
|
||||||
|
total_page:
|
||||||
|
other: '共 %d 页'
|
||||||
|
sidebar:
|
||||||
|
follow: '关注我 '
|
||||||
|
newer: '下一篇'
|
||||||
|
older: '上一篇'
|
||||||
|
recents: '最新文章'
|
||||||
|
archives: '归档'
|
||||||
|
categories: '分类'
|
||||||
|
links: '链接'
|
||||||
|
tags: '标签'
|
||||||
|
tag_cloud: '标签云'
|
||||||
|
catalogue: '目录'
|
||||||
|
article:
|
||||||
|
comments: '评论'
|
||||||
|
share: '分享到'
|
||||||
|
insight:
|
||||||
|
hint: '想要查找什么...'
|
||||||
|
posts: '文章'
|
||||||
|
pages: '页面'
|
||||||
|
categories: '分类'
|
||||||
|
tags: '标签'
|
||||||
|
untitled: '(未命名)'
|
35
themes/hueman/languages/zh-TW.yml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
index:
|
||||||
|
home: '首頁'
|
||||||
|
about: '關於'
|
||||||
|
search: '搜尋'
|
||||||
|
archive: '所有文章'
|
||||||
|
category: '分類:'
|
||||||
|
uncategorized: '未分類'
|
||||||
|
tag: '標籤:'
|
||||||
|
nav:
|
||||||
|
current_page:
|
||||||
|
other: '第 %d 頁,'
|
||||||
|
total_page:
|
||||||
|
other: '共 %d 頁'
|
||||||
|
sidebar:
|
||||||
|
follow: '追蹤 '
|
||||||
|
newer: '下一篇'
|
||||||
|
older: '上一篇'
|
||||||
|
recents: '最新文章'
|
||||||
|
sticky: '熱門文章'
|
||||||
|
archives: '所有文章'
|
||||||
|
categories: '分類'
|
||||||
|
links: '連結'
|
||||||
|
tags: '標籤'
|
||||||
|
tag_cloud: '標籤雲'
|
||||||
|
catalogue: '目錄'
|
||||||
|
article:
|
||||||
|
comments: '評論'
|
||||||
|
share: '分享到'
|
||||||
|
insight:
|
||||||
|
hint: '輸入關鍵字...'
|
||||||
|
posts: '文章'
|
||||||
|
pages: '頁面'
|
||||||
|
categories: '分類'
|
||||||
|
tags: '標籤'
|
||||||
|
untitled: '(未命名)'
|
1
themes/hueman/layout/archive.ejs
Normal file
@ -0,0 +1 @@
|
|||||||
|
<%- partial('common/archive') %>
|
1
themes/hueman/layout/author.ejs
Normal file
@ -0,0 +1 @@
|
|||||||
|
<%- partial('common/archive') %>
|
1
themes/hueman/layout/category.ejs
Normal file
@ -0,0 +1 @@
|
|||||||
|
<%- partial('common/archive') %>
|
43
themes/hueman/layout/comment/changyan.ejs
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
<% if (typeof(script) !== 'undefined' && script) { %>
|
||||||
|
<script id="cy_cmt_num" src="https://changyan.sohu.com/upload/plugins/plugins.list.count.js?clientId=<%= theme.comment.changyan.appId %>"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
(function() {
|
||||||
|
var appid = '<%= theme.comment.changyan.appId %>';
|
||||||
|
var conf = '<%= theme.comment.changyan.appKey %>';
|
||||||
|
var width = window.innerWidth || document.documentElement.clientWidth;
|
||||||
|
if (width < 960) {
|
||||||
|
window.document.write('<script id="changyan_mobile_js" charset="utf-8" type="text/javascript" src="https://changyan.sohu.com/upload/mobile/wap-js/changyan_mobile.js?client_id=' + appid + '&conf=' + conf + '"><\/script>');
|
||||||
|
} else {
|
||||||
|
var loadJs = function(d, a) {
|
||||||
|
var c = document.getElementsByTagName("head")[0] || document.head || document.documentElement;
|
||||||
|
var b = document.createElement("script");
|
||||||
|
b.setAttribute("type", "text/javascript");
|
||||||
|
b.setAttribute("charset", "UTF-8");
|
||||||
|
b.setAttribute("src", d);
|
||||||
|
if (typeof a === "function") {
|
||||||
|
if (window.attachEvent) {
|
||||||
|
b.onreadystatechange = function() {
|
||||||
|
var e = b.readyState;
|
||||||
|
if (e === "loaded" || e === "complete") {
|
||||||
|
b.onreadystatechange = null;
|
||||||
|
a()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
b.onload = a
|
||||||
|
}
|
||||||
|
}
|
||||||
|
c.appendChild(b)
|
||||||
|
};
|
||||||
|
loadJs("https://changyan.sohu.com/upload/changyan.js", function() {
|
||||||
|
window.changyan.api.config({
|
||||||
|
appid: appid,
|
||||||
|
conf: conf
|
||||||
|
})
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
<% } else { %>
|
||||||
|
<div id="SOHUCS" sid="<%= page.permalink %>"></div>
|
||||||
|
<% } %>
|
16
themes/hueman/layout/comment/counter.ejs
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<% if (post.comments) { %>
|
||||||
|
<span class="comment-counter">
|
||||||
|
<i class="fa fa-comments-o"></i>
|
||||||
|
<% if (theme.comment.disqus) { %>
|
||||||
|
<span class="disqus-comment-count" data-disqus-identifier="<%= post.disqusId || '' %>" data-disqus-url="<%= post.permalink %>">0</span>
|
||||||
|
<% } else if (theme.comment.duoshuo) { %>
|
||||||
|
<span class="ds-thread-count" data-thread-key="<%= post.path %>">0</span>
|
||||||
|
<% } else if (theme.comment.isso) { %>
|
||||||
|
<span><a href="<%= post.permalink %>#isso-thread"></a></span>
|
||||||
|
<% } else if (theme.comment.facebook) { %>
|
||||||
|
<span class="fb-comments-count" data-href="<%= post.permalink %>">0</span>
|
||||||
|
<% } else if (theme.comment.changyan.on) { %>
|
||||||
|
<span class="cy_cmt_count" id="sourceId::<%= post.permalink %>">0</span>
|
||||||
|
<% } %>
|
||||||
|
</span>
|
||||||
|
<% } %>
|
22
themes/hueman/layout/comment/disqus.ejs
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
<% if (typeof(script) !== 'undefined' && script) { %>
|
||||||
|
<script>
|
||||||
|
var disqus_shortname = '<%= theme.comment.disqus %>';
|
||||||
|
<% if (page.disqusId) { %>
|
||||||
|
var disqus_identifier = '<%= page.disqusId || page.slug %>';
|
||||||
|
<% } %>
|
||||||
|
<% if (page.permalink) { %>
|
||||||
|
var disqus_url = '<%= page.permalink %>';
|
||||||
|
<% } %>
|
||||||
|
(function() {
|
||||||
|
var dsq = document.createElement('script');
|
||||||
|
dsq.type = 'text/javascript';
|
||||||
|
dsq.async = true;
|
||||||
|
dsq.src = '//' + disqus_shortname + '.disqus.com/<% if (page.comments) { %>embed.js<% } else { %>count.js<% } %>';
|
||||||
|
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
<% } else { %>
|
||||||
|
<div id="disqus_thread">
|
||||||
|
<noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
||||||
|
</div>
|
||||||
|
<% } %>
|
52
themes/hueman/layout/comment/duoshuo.ejs
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
<% if (typeof(script) !== 'undefined' && script) { %>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var duoshuoQuery = {short_name:'<%= theme.comment.duoshuo %>'};
|
||||||
|
(function() {
|
||||||
|
var ds = document.createElement('script');
|
||||||
|
ds.type = 'text/javascript';ds.async = true;
|
||||||
|
ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
|
||||||
|
ds.charset = 'UTF-8';
|
||||||
|
(document.getElementsByTagName('head')[0]
|
||||||
|
|| document.getElementsByTagName('body')[0]).appendChild(ds);
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
<% } else { %>
|
||||||
|
<div class="ds-thread" data-thread-key="<%= post.path %>" data-title="<%= post.title %>" data-url="<%= page.permalink %>"></div>
|
||||||
|
<style>
|
||||||
|
#ds-thread #ds-reset .ds-textarea-wrapper {
|
||||||
|
background: none;
|
||||||
|
}
|
||||||
|
#ds-reset .ds-avatar img {
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
#ds-reset .ds-gradient-bg {
|
||||||
|
background: #f7f7f7;
|
||||||
|
}
|
||||||
|
#ds-thread #ds-reset li.ds-tab a {
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
#ds-thread #ds-reset .ds-post-button {
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
box-shadow: none;
|
||||||
|
background: #d32;
|
||||||
|
text-shadow: none;
|
||||||
|
font-weight: normal;
|
||||||
|
font-family: 'Microsoft Yahei';
|
||||||
|
}
|
||||||
|
#ds-thread #ds-reset .ds-post-button:hover {
|
||||||
|
color: white;
|
||||||
|
background: #DE594C;
|
||||||
|
}
|
||||||
|
#ds-thread #ds-reset .ds-post-button:active {
|
||||||
|
background: #d32;
|
||||||
|
}
|
||||||
|
#ds-smilies-tooltip ul.ds-smilies-tabs li a.ds-current {
|
||||||
|
color: white;
|
||||||
|
background: #d32;
|
||||||
|
box-shadow: none;
|
||||||
|
text-shadow: none;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<% } %>
|
11
themes/hueman/layout/comment/facebook.ejs
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<% if (typeof(script) !== 'undefined' && script) { %>
|
||||||
|
<script>(function(d, s, id) {
|
||||||
|
var js, fjs = d.getElementsByTagName(s)[0];
|
||||||
|
if (d.getElementById(id)) return;
|
||||||
|
js = d.createElement(s); js.id = id;
|
||||||
|
js.src = "//connect.facebook.net/<%= config.language ? config.language.split('-').join('_') : 'en' %>/sdk.js#xfbml=1&version=v2.8";
|
||||||
|
fjs.parentNode.insertBefore(js, fjs);
|
||||||
|
}(document, 'script', 'facebook-jssdk'));</script>
|
||||||
|
<% } else { %>
|
||||||
|
<div class="fb-comments" data-width="100%" data-href="<%= page.permalink %>" data-num-posts="5"></div>
|
||||||
|
<% } %>
|
22
themes/hueman/layout/comment/index.ejs
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
<% if (post.comments) { %>
|
||||||
|
<section id="comments">
|
||||||
|
<% if (theme.comment.disqus) { %>
|
||||||
|
<%- partial('comment/disqus') %>
|
||||||
|
<% } else if (theme.comment.duoshuo) { %>
|
||||||
|
<%- partial('comment/duoshuo') %>
|
||||||
|
<% } else if (theme.comment.youyan) { %>
|
||||||
|
<%- partial('comment/youyan') %>
|
||||||
|
<% } else if (theme.comment.livere) { %>
|
||||||
|
<%- partial('comment/livere') %>
|
||||||
|
<% } else if (theme.comment.facebook) { %>
|
||||||
|
<%- partial('comment/facebook') %>
|
||||||
|
<% } else if (typeof(theme.comment.isso) === 'string'
|
||||||
|
|| theme.comment.isso && theme.comment.isso.on) { %>
|
||||||
|
<%- partial('comment/isso') %>
|
||||||
|
<% } else if (theme.comment.changyan.on) { %>
|
||||||
|
<%- partial('comment/changyan') %>
|
||||||
|
<% } else if (theme.comment.valine.on) { %>
|
||||||
|
<%- partial('comment/valine') %>
|
||||||
|
<% } %>
|
||||||
|
</section>
|
||||||
|
<% } %>
|
29
themes/hueman/layout/comment/isso.ejs
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<%
|
||||||
|
if (typeof(script) !== 'undefined' && script) {
|
||||||
|
let isso = theme.comment.isso;
|
||||||
|
let issoSite = (typeof(isso) === 'string' ? isso : isso.site);
|
||||||
|
if (isso === issoSite) { //isso is a string
|
||||||
|
//TODO: maybe something better error logging
|
||||||
|
console.warn('WARN Specifying property "comment.isso" as a ' +
|
||||||
|
'string is deprecated. Please consider using the object form. See ' +
|
||||||
|
'the respective _config.yml.example file for an example.');
|
||||||
|
}
|
||||||
|
%>
|
||||||
|
<script data-isso="//<%= issoSite %>"
|
||||||
|
<%
|
||||||
|
let props = ['css', 'lang', 'reply_to_self', 'require_author',
|
||||||
|
'require_email', 'max_comments_top', 'max_comments_nested',
|
||||||
|
'reveal_on_click', 'avatar', 'avatar_bg', 'avatar_fg', 'vote',
|
||||||
|
'vote_levels'];
|
||||||
|
for (var p of props) {
|
||||||
|
if (theme.comment.isso[p]) { %>
|
||||||
|
<%= 'data-isso-' + p.replace('_', '-') %> =
|
||||||
|
"<%= theme.comment.isso[p] %>"
|
||||||
|
<% } %>
|
||||||
|
<% } %>
|
||||||
|
src="//<%= issoSite %>/js/embed.min.js">
|
||||||
|
</script>
|
||||||
|
<% } else { %>
|
||||||
|
<section id="isso-thread"></section>
|
||||||
|
<% } %>
|
||||||
|
|
22
themes/hueman/layout/comment/livere.ejs
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
<% if (typeof(script) !== 'undefined' && script) { %>
|
||||||
|
|
||||||
|
<!-- 来必力City版安装代码 -->
|
||||||
|
<script type="text/javascript">
|
||||||
|
(function(d, s) {
|
||||||
|
var j, e = d.getElementsByTagName(s)[0];
|
||||||
|
|
||||||
|
if (typeof LivereTower === 'function') { return; }
|
||||||
|
|
||||||
|
j = d.createElement(s);
|
||||||
|
j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
|
||||||
|
j.async = true;
|
||||||
|
|
||||||
|
e.parentNode.insertBefore(j, e);
|
||||||
|
})(document, 'script');
|
||||||
|
</script>
|
||||||
|
<noscript> 为正常使用来必力评论功能请激活JavaScript</noscript>
|
||||||
|
<!-- City版安装代码已完成 -->
|
||||||
|
|
||||||
|
<% } else { %>
|
||||||
|
<div id="lv-container" data-id="city" data-uid=<%= theme.comment.livere %>></div>
|
||||||
|
<% } %>
|
18
themes/hueman/layout/comment/scripts.ejs
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<% if (theme.comment.disqus) { %>
|
||||||
|
<%- partial('comment/disqus', { script: true }) %>
|
||||||
|
<% } else if (theme.comment.duoshuo) { %>
|
||||||
|
<%- partial('comment/duoshuo', { script: true }) %>
|
||||||
|
<% } else if (theme.comment.youyan) { %>
|
||||||
|
<%- partial('comment/youyan', { script: true }) %>
|
||||||
|
<% } else if (theme.comment.livere) { %>
|
||||||
|
<%- partial('comment/livere', { script: true }) %>
|
||||||
|
<% } else if (theme.comment.facebook) { %>
|
||||||
|
<%- partial('comment/facebook', { script: true }) %>
|
||||||
|
<% } else if (typeof(theme.comment.isso) === 'string'
|
||||||
|
|| theme.comment.isso && theme.comment.isso.on) { %>
|
||||||
|
<%- partial('comment/isso', { script: true }) %>
|
||||||
|
<% } else if (theme.comment.changyan.on) { %>
|
||||||
|
<%- partial('comment/changyan', { script: true }) %>
|
||||||
|
<% } else if (theme.comment.valine.on) { %>
|
||||||
|
<%- partial('comment/valine', { script: true }) %>
|
||||||
|
<% } %>
|
19
themes/hueman/layout/comment/valine.ejs
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<% if (typeof(script) !== 'undefined' && script) { %>
|
||||||
|
<script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>
|
||||||
|
<script src='//unpkg.com/valine/dist/Valine.min.js'></script>
|
||||||
|
<script>
|
||||||
|
new Valine({
|
||||||
|
el: '#valine-thread' ,
|
||||||
|
notify:<%= theme.comment.valine.notify %>,
|
||||||
|
verify:<%= theme.comment.valine.verify %>,
|
||||||
|
app_id: '<%= theme.comment.valine.appId %>',
|
||||||
|
app_key: '<%= theme.comment.valine.appKey %>',
|
||||||
|
placeholder: '<%= theme.comment.valine.placeholder %>',
|
||||||
|
pageSize: '<%= theme.comment.valine.pageSize %>',
|
||||||
|
avatar: '<%= theme.comment.valine.avatar %>',
|
||||||
|
avatar_cdn: '<%= theme.comment.valine.avatar_cdn %>'
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<% } else { %>
|
||||||
|
<div id="valine-thread"></div>
|
||||||
|
<% } %>
|
5
themes/hueman/layout/comment/youyan.ejs
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<% if (typeof(script) !== 'undefined' && script) { %>
|
||||||
|
<script type="text/javascript" src="//v2.uyan.cc/code/uyan.js?uid=<%= theme.comment.youyan %>"></script>
|
||||||
|
<% } else { %>
|
||||||
|
<div id="uyan_frame"></div>
|
||||||
|
<% } %>
|
32
themes/hueman/layout/common/archive.ejs
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
<% var last, postCount = 0; %>
|
||||||
|
<% page.posts.each(function(post, i) { %>
|
||||||
|
<% var year = post.date.year(); %>
|
||||||
|
<% if (last != year) { %>
|
||||||
|
<% if (last != null) { %>
|
||||||
|
</div></section>
|
||||||
|
<% } %>
|
||||||
|
<% last = year; postCount = 0;%>
|
||||||
|
<section class="archives-wrap">
|
||||||
|
<div class="archive-year-wrap">
|
||||||
|
<a href="<%- url_for('archives/' + year) %>" class="archive-year"><i class="icon fa fa-calendar-o"></i><%= year %></a>
|
||||||
|
</div>
|
||||||
|
<div class="archives">
|
||||||
|
<% } %>
|
||||||
|
<% postCount++; %>
|
||||||
|
<% if (postCount % 2 == 1) { %>
|
||||||
|
<div class="article-row">
|
||||||
|
<% } %>
|
||||||
|
<%- partial('summary', { post: post }) %>
|
||||||
|
<% if (postCount == page.posts.length || postCount % 2 == 0) { %>
|
||||||
|
</div>
|
||||||
|
<% } %>
|
||||||
|
<% }) %>
|
||||||
|
<% if (page.posts.length) { %>
|
||||||
|
</div></section>
|
||||||
|
<% } %>
|
||||||
|
<% if (page.total > 1) { %>
|
||||||
|
<nav id="page-nav">
|
||||||
|
<span class="pages"><%= _p('nav.current_page', page.current) %><%= _p('nav.total_page', page.total) %></span>
|
||||||
|
<%- paginator({prev_text: '«', next_text: '»'}) %>
|
||||||
|
</nav>
|
||||||
|
<% } %>
|
24
themes/hueman/layout/common/article.ejs
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<article id="<%= post.layout %>-<%= post.slug %>" class="article article-single article-type-<%= post.layout %><%= (post.direction && post.direction.toLowerCase() === 'rtl' ? ' rtl' : '') %>" itemscope itemprop="blogPost">
|
||||||
|
<div class="article-inner">
|
||||||
|
<% if (post.link || post.title) { %>
|
||||||
|
<header class="article-header">
|
||||||
|
<%- partial('post/title', { class_name: 'article-title' }) %>
|
||||||
|
</header>
|
||||||
|
<% } %>
|
||||||
|
<% if (post.layout != 'page') { %>
|
||||||
|
<div class="article-meta">
|
||||||
|
<%- partial('post/date', { class_name: 'article-date', date_format: null }) %>
|
||||||
|
<%- partial('post/author') %>
|
||||||
|
<%- partial('post/tag') %>
|
||||||
|
</div>
|
||||||
|
<% } %>
|
||||||
|
<%- partial('post/gallery') %>
|
||||||
|
<div class="article-entry" itemprop="articleBody">
|
||||||
|
<%- post.content %>
|
||||||
|
</div>
|
||||||
|
<footer class="article-footer">
|
||||||
|
<%- partial('share/index', { post: post }) %>
|
||||||
|
</footer>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
<%- partial('comment/index') %>
|
39
themes/hueman/layout/common/content-title.ejs
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
<div class="main-body-header">
|
||||||
|
<h1 class="header">
|
||||||
|
<%
|
||||||
|
var title = page.title;
|
||||||
|
if (page.archive) {
|
||||||
|
title = __('index.archive');
|
||||||
|
if (page.month) {
|
||||||
|
title += ': ' + page.year + '/' + page.month;
|
||||||
|
} else if (page.year) {
|
||||||
|
title += ': ' + page.year;
|
||||||
|
}
|
||||||
|
title = '<i class="icon fa fa-archive"></i>' + title;
|
||||||
|
} else if (page.author && !is_post()) {
|
||||||
|
title = page.author.name;
|
||||||
|
if (page.author.about) {
|
||||||
|
title += ' - ' + page.author.about;
|
||||||
|
}
|
||||||
|
} else if (page.category) {
|
||||||
|
title = '<i class="icon fa fa-folder-open"></i>' + __('index.category') + ': <em class="page-title-link">' + page.category + '</em>';
|
||||||
|
} else if (page.tag) {
|
||||||
|
title = '<i class="icon fa fa-tag"></i>' + __('index.tag') + ': <em>' + page.tag + '</em>';
|
||||||
|
} else if (is_post()) {
|
||||||
|
title = list_categories(page.categories, {show_count: false, style: 'none', class: 'page-title', separator: '<i class="icon fa fa-angle-right"></i>'});
|
||||||
|
if (title == "") {
|
||||||
|
title = __('index.uncategorized');
|
||||||
|
}
|
||||||
|
} else if (is_home()) {
|
||||||
|
title = '<em class="page-title-link" data-url="home">' + __('index.home') + '</em>';
|
||||||
|
} else if (page.subtitle) {
|
||||||
|
title = '<em class="page-title-link" data-url="' + url_for(page.path) + '">' + page.subtitle + '</em>';
|
||||||
|
} else if (page.title) {
|
||||||
|
title = '<em class="page-title-link" data-url="' + url_for(page.path) + '">' + page.title + '</em>';
|
||||||
|
} else {
|
||||||
|
title = config.title;
|
||||||
|
}
|
||||||
|
%>
|
||||||
|
<%- title %>
|
||||||
|
</h1>
|
||||||
|
</div>
|
17
themes/hueman/layout/common/footer.ejs
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<footer id="footer">
|
||||||
|
<div class="container">
|
||||||
|
<div class="container-inner">
|
||||||
|
<a id="back-to-top" href="javascript:;"><i class="icon fa fa-angle-up"></i></a>
|
||||||
|
<div class="credit">
|
||||||
|
<h1 class="logo-wrap">
|
||||||
|
<a href="<%- url_for() %>" class="logo"></a>
|
||||||
|
</h1>
|
||||||
|
<p>© <%= date(new Date(), 'YYYY') %> <%= config.author || config.title %></p>
|
||||||
|
<p>Powered by <a href="//hexo.io/" target="_blank">Hexo</a>. Theme by <a href="//github.com/ppoffice" target="_blank">PPOffice</a></p>
|
||||||
|
</div>
|
||||||
|
<div class="footer-plugins">
|
||||||
|
<%- partial('plugin/scripts', { isFooter: true }) %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
60
themes/hueman/layout/common/head.ejs
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
|
||||||
|
<%- partial('pwa/index') %>
|
||||||
|
<%
|
||||||
|
var title = page.title;
|
||||||
|
if (is_archive()) {
|
||||||
|
title = __('index.archive');
|
||||||
|
if (is_month()) {
|
||||||
|
title += ': ' + page.year + '/' + page.month;
|
||||||
|
} else if (is_year()) {
|
||||||
|
title += ': ' + page.year;
|
||||||
|
}
|
||||||
|
} else if (is_category()) {
|
||||||
|
title = __('index.category') + ': ' + page.category;
|
||||||
|
} else if (is_tag()) {
|
||||||
|
title = __('index.tag') + ': ' + page.tag;
|
||||||
|
}
|
||||||
|
%>
|
||||||
|
<title><% if (title) { %><%= title %> | <% } %><%= config.title %></title>
|
||||||
|
<% if (theme.plugins.bing_site_verification) { %>
|
||||||
|
<meta name="msvalidate.01" content="<%- theme.plugins.bing_site_verification %>" />
|
||||||
|
<% } %>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||||
|
<% if (page.tags) {
|
||||||
|
var keywords = [];
|
||||||
|
for (var i in page.tags.data) {
|
||||||
|
keywords.push(page.tags.data[i].name);
|
||||||
|
}
|
||||||
|
%>
|
||||||
|
<meta name="keywords" content="<%= keywords.join(',') %>" />
|
||||||
|
<% } %>
|
||||||
|
<%- open_graph({
|
||||||
|
image: thumbnail(page),
|
||||||
|
fb_app_id: theme.miscellaneous.open_graph.fb_app_id,
|
||||||
|
fb_admins: theme.miscellaneous.open_graph.fb_admins,
|
||||||
|
twitter_id: theme.miscellaneous.open_graph.twitter_id,
|
||||||
|
google_plus: theme.miscellaneous.open_graph.google_plus,
|
||||||
|
}) %>
|
||||||
|
<%- meta(page) %>
|
||||||
|
|
||||||
|
<% if (theme.customize && theme.customize.social_links && theme.customize.social_links.rss) { %>
|
||||||
|
<link rel="alternate" href="<%- theme.customize.social_links.rss %>" title="<%= config.title %>" type="application/atom+xml" />
|
||||||
|
<% } %>
|
||||||
|
|
||||||
|
<% if (theme.customize.favicon) { %>
|
||||||
|
<link rel="icon" href="<%- url_for(theme.customize.favicon) %>" />
|
||||||
|
<% } %>
|
||||||
|
|
||||||
|
<%- css('libs/font-awesome/css/font-awesome.min') %>
|
||||||
|
<%- css('libs/titillium-web/styles') %>
|
||||||
|
<%- css('libs/source-code-pro/styles') %>
|
||||||
|
|
||||||
|
<%- css('css/style') %>
|
||||||
|
|
||||||
|
<%- js('libs/jquery/3.3.1/jquery.min') %>
|
||||||
|
<%- partial('plugin/scripts', { isHead: true }) %>
|
||||||
|
</head>
|
41
themes/hueman/layout/common/header.ejs
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
<header id="header">
|
||||||
|
<div id="header-outer" class="outer">
|
||||||
|
<div class="container">
|
||||||
|
<div class="container-inner">
|
||||||
|
<div id="header-title">
|
||||||
|
<h1 class="logo-wrap">
|
||||||
|
<a href="<%- url_for() %>" class="logo"></a>
|
||||||
|
</h1>
|
||||||
|
<% if (theme.subtitle) { %>
|
||||||
|
<h2 class="subtitle-wrap">
|
||||||
|
<p class="subtitle"><%= theme.subtitle %></p>
|
||||||
|
</h2>
|
||||||
|
<% } %>
|
||||||
|
</div>
|
||||||
|
<div id="header-inner" class="nav-container">
|
||||||
|
<a id="main-nav-toggle" class="nav-icon fa fa-bars"></a>
|
||||||
|
<div class="nav-container-inner">
|
||||||
|
<ul id="main-nav">
|
||||||
|
<% for (var i in theme.menu) {
|
||||||
|
if (i == 'Categories') { %>
|
||||||
|
<%- list_categories({
|
||||||
|
depth: 2,
|
||||||
|
style: 'list',
|
||||||
|
class: 'main-nav',
|
||||||
|
show_count: false,
|
||||||
|
}) %>
|
||||||
|
<% } else { %>
|
||||||
|
<li class="main-nav-list-item" >
|
||||||
|
<a class="main-nav-list-link" href="<%- url_for(theme.menu[i]) %>"><%= __('index.' + i.toLowerCase()) %></a>
|
||||||
|
</li>
|
||||||
|
<% }} %>
|
||||||
|
</ul>
|
||||||
|
<nav id="sub-nav">
|
||||||
|
<%- partial('search/index') %>
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
5
themes/hueman/layout/common/post/author.ejs
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<% if (post.authorId) { %>
|
||||||
|
<div class="article-author">
|
||||||
|
<a href="<%- config.root %><%- 'author/' + post.authorId %>"><%= post.author.name %></a>
|
||||||
|
</div>
|
||||||
|
<% } %>
|
7
themes/hueman/layout/common/post/date.ejs
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<% if (post.date) { %>
|
||||||
|
<div class="<%= class_name %>">
|
||||||
|
<a href="<%- url_for(post.path) %>" class="<%= class_name %>">
|
||||||
|
<time datetime="<%= date_xml(post.date) %>" itemprop="datePublished"><%= date(post.date, date_format) %></time>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<% } %>
|
9
themes/hueman/layout/common/post/gallery.ejs
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<% if (post.photos && post.photos.length) { %>
|
||||||
|
<div class="article-gallery">
|
||||||
|
<% post.photos.forEach(function(photo, i) { %>
|
||||||
|
<a class="gallery-item" href="<%- url_for(photo) %>" rel="gallery_<%= post._id %>">
|
||||||
|
<img src="<%- url_for(photo) %>" itemprop="image" />
|
||||||
|
</a>
|
||||||
|
<% }) %>
|
||||||
|
</div>
|
||||||
|
<% } %>
|
24
themes/hueman/layout/common/post/nav.ejs
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<% if (post.prev || post.next) { %>
|
||||||
|
<nav id="article-nav">
|
||||||
|
<% if (post.prev) { %>
|
||||||
|
<a href="<%- url_for(post.prev.path) %>" id="article-nav-newer" class="article-nav-link-wrap">
|
||||||
|
<strong class="article-nav-caption"><%= __('sidebar.newer') %></strong>
|
||||||
|
<p class="article-nav-title">
|
||||||
|
<% if (post.prev.title) { %>
|
||||||
|
<%= post.prev.title %>
|
||||||
|
<% } else { %>
|
||||||
|
(no title)
|
||||||
|
<% } %>
|
||||||
|
</p>
|
||||||
|
<i class="icon fa fa-chevron-right" id="icon-chevron-right"></i>
|
||||||
|
</a>
|
||||||
|
<% } %>
|
||||||
|
<% if (post.next) { %>
|
||||||
|
<a href="<%- url_for(post.next.path) %>" id="article-nav-older" class="article-nav-link-wrap">
|
||||||
|
<strong class="article-nav-caption"><%= __('sidebar.older') %></strong>
|
||||||
|
<p class="article-nav-title"><%= post.next.title %></p>
|
||||||
|
<i class="icon fa fa-chevron-left" id="icon-chevron-left"></i>
|
||||||
|
</a>
|
||||||
|
<% } %>
|
||||||
|
</nav>
|
||||||
|
<% } %>
|
6
themes/hueman/layout/common/post/tag.ejs
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<% if (post.tags && post.tags.length) { %>
|
||||||
|
<div class="article-tag">
|
||||||
|
<i class="fa fa-tag"></i>
|
||||||
|
<%- list_tags(post.tags, { show_count: false, style: 'link' }) %>
|
||||||
|
</div>
|
||||||
|
<% } %>
|
15
themes/hueman/layout/common/post/title.ejs
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
<% if (post.link) { %>
|
||||||
|
<h1 itemprop="name">
|
||||||
|
<a class="<%= class_name %>" href="<%- url_for(post.link) %>" target="_blank" itemprop="url"><%= post.title %></a>
|
||||||
|
</h1>
|
||||||
|
<% } else if (post.title) { %>
|
||||||
|
<% if (typeof(linkable) !== 'undefined' && linkable) { %>
|
||||||
|
<h1 class="<%= class_name %>" itemprop="name">
|
||||||
|
<a href="<%- url_for(post.path) %>"><%= post.title %></a>
|
||||||
|
</h1>
|
||||||
|
<% } else { %>
|
||||||
|
<h1 class="<%= class_name %>" itemprop="name">
|
||||||
|
<%= post.title %>
|
||||||
|
</h1>
|
||||||
|
<% } %>
|
||||||
|
<% } %>
|
5
themes/hueman/layout/common/scripts.ejs
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<%- partial('comment/scripts') %>
|
||||||
|
<%- partial('plugin/scripts') %>
|
||||||
|
|
||||||
|
<!-- Custom Scripts -->
|
||||||
|
<%- js('js/main') %>
|
27
themes/hueman/layout/common/sidebar.ejs
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
<aside id="sidebar">
|
||||||
|
<a class="sidebar-toggle" title="Expand Sidebar"><i class="toggle icon"></i></a>
|
||||||
|
<div class="sidebar-top">
|
||||||
|
<p><%= __('sidebar.follow') %>:</p>
|
||||||
|
<ul class="social-links">
|
||||||
|
<% for (var i in theme.customize.social_links) { %>
|
||||||
|
<% if (theme.customize.social_links[i]) { %>
|
||||||
|
<li>
|
||||||
|
<a class="social-tooltip" title="<%= i %>" href="<%- url_for(theme.customize.social_links[i]) %>" target="_blank" rel="noopener">
|
||||||
|
<i class="icon fa fa-<%= i %>"></i>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<% } %>
|
||||||
|
<% } %>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<% if (is_post()) { %>
|
||||||
|
<%- partial('post/nav', {post: page}) %>
|
||||||
|
<% } %>
|
||||||
|
<div class="widgets-container">
|
||||||
|
<% if (theme.widgets) { %>
|
||||||
|
<% theme.widgets.forEach(function(widget) { %>
|
||||||
|
<%- partial('widget/' + widget, {post: page}) %>
|
||||||
|
<% }) %>
|
||||||
|
<% } %>
|
||||||
|
</div>
|
||||||
|
</aside>
|
23
themes/hueman/layout/common/summary.ejs
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<article class="article article-summary<%= (post.direction && post.direction.toLowerCase() === 'rtl' ? ' rtl' : '') %>">
|
||||||
|
<div class="article-summary-inner">
|
||||||
|
<% if (theme.customize.thumbnail === true) { %>
|
||||||
|
<%- partial('common/thumbnail', { counter: true }) %>
|
||||||
|
<% } %>
|
||||||
|
<div class="article-meta">
|
||||||
|
<div class="category">
|
||||||
|
<%- list_categories(post.categories, {
|
||||||
|
depth:2,
|
||||||
|
style: 'none',
|
||||||
|
show_count: false,
|
||||||
|
class: 'article-category',
|
||||||
|
separator: '<i class="icon fa fa-angle-right"></i>',
|
||||||
|
}) %>
|
||||||
|
</div>
|
||||||
|
<div class="date"><time datetime="<%= date_xml(post.date) %>" itemprop="datePublished"><%= date(post.date) %></time></div>
|
||||||
|
</div>
|
||||||
|
<%- partial('post/title', { class_name: 'article-title', linkable: true }) %>
|
||||||
|
<p class="article-excerpt">
|
||||||
|
<%- excerpt(post) %>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</article>
|
11
themes/hueman/layout/common/thumbnail.ejs
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<a href="<%- url_for(post.link ? post.link : post.path) %>" class="thumbnail">
|
||||||
|
<% var thumbnailUrl = thumbnail(post) %>
|
||||||
|
<% if (thumbnailUrl) { %>
|
||||||
|
<span style="background-image:url(<%- thumbnailUrl %>)" alt="<%= post.title %>" class="thumbnail-image"></span>
|
||||||
|
<% } else { %>
|
||||||
|
<span class="thumbnail-image thumbnail-none"></span>
|
||||||
|
<% } %>
|
||||||
|
<% if (typeof(counter) !== 'undefined' && counter) { %>
|
||||||
|
<%- partial('comment/counter') %>
|
||||||
|
<% } %>
|
||||||
|
</a>
|
1
themes/hueman/layout/index.ejs
Normal file
@ -0,0 +1 @@
|
|||||||
|
<%- partial('common/archive') %>
|
22
themes/hueman/layout/layout.ejs
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
<%- partial('common/head') %>
|
||||||
|
<body>
|
||||||
|
<div id="wrap">
|
||||||
|
<%- partial('common/header', null, {cache: !config.relative_link}) %>
|
||||||
|
<div class="container">
|
||||||
|
<div class="main-body container-inner">
|
||||||
|
<div class="main-body-inner">
|
||||||
|
<section id="main">
|
||||||
|
<%- partial('common/content-title') %>
|
||||||
|
<div class="main-body-content">
|
||||||
|
<%- body %>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<%- partial('common/sidebar') %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<%- partial('common/footer', null, {cache: !config.relative_link}) %>
|
||||||
|
<%- partial('common/scripts') %>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
1
themes/hueman/layout/page.ejs
Normal file
@ -0,0 +1 @@
|
|||||||
|
<%- partial('common/article', { post: page }) %>
|
9
themes/hueman/layout/plugin/baidu-analytics.ejs
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<script>
|
||||||
|
var _hmt = _hmt || [];
|
||||||
|
(function() {
|
||||||
|
var hm = document.createElement("script");
|
||||||
|
hm.src = "//hm.baidu.com/hm.js?<%= theme.plugins.baidu_analytics %>";
|
||||||
|
var s = document.getElementsByTagName("script")[0];
|
||||||
|
s.parentNode.insertBefore(hm, s);
|
||||||
|
})();
|
||||||
|
</script>
|
10
themes/hueman/layout/plugin/google-analytics.ejs
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<script type="text/javascript">
|
||||||
|
(function(i,s,o,g,r,a,m) {i['GoogleAnalyticsObject']=r;i[r]=i[r]||function() {
|
||||||
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||||
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||||
|
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||||
|
|
||||||
|
ga('create', '<%= theme.plugins.google_analytics %>', 'auto');
|
||||||
|
ga('send', 'pageview');
|
||||||
|
|
||||||
|
</script>
|
39
themes/hueman/layout/plugin/scripts.ejs
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
<% if (typeof(isHead) !== 'undefined' && isHead) { %>
|
||||||
|
<% if (theme.plugins.lightgallery) { %>
|
||||||
|
<%- css('libs/lightgallery/css/lightgallery.min') %>
|
||||||
|
<% } %>
|
||||||
|
<% if (theme.plugins.justifiedgallery) { %>
|
||||||
|
<%- css('libs/justified-gallery/justifiedGallery.min') %>
|
||||||
|
<% } %>
|
||||||
|
<% if (theme.plugins.google_analytics) { %>
|
||||||
|
<%- partial('plugin/google-analytics') %>
|
||||||
|
<% } %>
|
||||||
|
<% if (theme.plugins.baidu_analytics) { %>
|
||||||
|
<%- partial('plugin/baidu-analytics') %>
|
||||||
|
<% } %>
|
||||||
|
<% } else if (typeof(isFooter) !== 'undefined' && isFooter) { %>
|
||||||
|
<% if (theme.plugins.statcounter && theme.plugins.statcounter.on) { %>
|
||||||
|
<%- partial('plugin/statcounter') %>
|
||||||
|
<% } %>
|
||||||
|
<% } else { %>
|
||||||
|
<% if (theme.plugins.lightgallery) { %>
|
||||||
|
<%- js('libs/lightgallery/js/lightgallery.min') %>
|
||||||
|
<%- js('libs/lightgallery/js/lg-thumbnail.min') %>
|
||||||
|
<%- js('libs/lightgallery/js/lg-pager.min') %>
|
||||||
|
<%- js('libs/lightgallery/js/lg-autoplay.min') %>
|
||||||
|
<%- js('libs/lightgallery/js/lg-fullscreen.min') %>
|
||||||
|
<%- js('libs/lightgallery/js/lg-zoom.min') %>
|
||||||
|
<%- js('libs/lightgallery/js/lg-hash.min') %>
|
||||||
|
<%- js('libs/lightgallery/js/lg-share.min') %>
|
||||||
|
<%- js('libs/lightgallery/js/lg-video.min') %>
|
||||||
|
<% } %>
|
||||||
|
<% if (theme.plugins.justifiedgallery) { %>
|
||||||
|
<%- js('libs/justified-gallery/jquery.justifiedGallery.min') %>
|
||||||
|
<% } %>
|
||||||
|
<% if (theme.plugins.mathjax) { %>
|
||||||
|
<script type="text/x-mathjax-config">
|
||||||
|
MathJax.Hub.Config({ tex2jax: { inlineMath: [['$','$'], ['\\(','\\)']] } });
|
||||||
|
</script>
|
||||||
|
<%- js('https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_CHTML') %>
|
||||||
|
<% } %>
|
||||||
|
<% } %>
|
23
themes/hueman/layout/plugin/statcounter.ejs
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<!-- Default Statcounter code -->
|
||||||
|
<% let sc = theme.plugins.statcounter; %>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var sc_project=<%= sc.sc_project %>;
|
||||||
|
var sc_invisible=<%= sc.sc_invisible %>;
|
||||||
|
var sc_security="<%= sc.sc_security %>";
|
||||||
|
</script>
|
||||||
|
<script type="text/javascript" src="https://www.statcounter.com/counter/counter.js">
|
||||||
|
</script>
|
||||||
|
<noscript>
|
||||||
|
<div class="statcounter">
|
||||||
|
<a title="Web Analytics" href="http://statcounter.com/" target="_blank">
|
||||||
|
<img class="statcounter"
|
||||||
|
src="//c.statcounter.com/<%= sc.sc_project %>/0/<%=
|
||||||
|
sc.sc_security %>/<%= sc.sc_invisible %>/"
|
||||||
|
alt="Web Analytics">
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</noscript>
|
||||||
|
<!-- End of Statcounter Code -->
|
||||||
|
<% if (sc.public) { %>
|
||||||
|
<a href="http://statcounter.com/p<%= sc.sc_project %>/?guest=1">View My Stats</a>
|
||||||
|
<% } %>
|
1
themes/hueman/layout/post.ejs
Normal file
@ -0,0 +1 @@
|
|||||||
|
<%- partial('common/article', { post: page }) %>
|
20
themes/hueman/layout/pwa/index.ejs
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<% if (config.pwa) { %>
|
||||||
|
<%
|
||||||
|
var icon = config.pwa.manifest.body.icons.find(icon => icon.sizes === '152x152');
|
||||||
|
%>
|
||||||
|
<% if (icon) { %>
|
||||||
|
<link rel="icon" href="/<%= icon.src %>" />
|
||||||
|
<link rel="apple-touch-icon" href="/<%= icon.src %>" />
|
||||||
|
|
||||||
|
<meta name="msapplication-TileImage" content="/<%= icon.src %>" />
|
||||||
|
<% } %>
|
||||||
|
|
||||||
|
<meta name="msapplication-TileColor" content="<%= theme.customize.theme_color %>" />
|
||||||
|
|
||||||
|
<meta name="theme-color" content="<%= theme.customize.theme_color %>" />
|
||||||
|
|
||||||
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||||
|
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
|
||||||
|
<meta name="apple-mobile-web-app-title" content="<%= config.pwa.manifest.body.name %>" />
|
||||||
|
|
||||||
|
<% } %>
|
12
themes/hueman/layout/search/baidu.ejs
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<form class="search-form" method="GET" action="https://www.baidu.com/s?">
|
||||||
|
<input name="wd" type="text" class="search-form-input" placeholder="<%= __('index.search') %>" />
|
||||||
|
</form>
|
||||||
|
<script>
|
||||||
|
(function ($) {
|
||||||
|
$('.search-form').on('submit', function (e) {
|
||||||
|
var keyword = $('.search-form-input[name="wd"]').val();
|
||||||
|
window.location = 'https://www.baidu.com/s?wd=site:<%= config.url.replace(/http(s)*:\/\//, "") %> ' + keyword;
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
})(jQuery);
|
||||||
|
</script>
|
18
themes/hueman/layout/search/index.ejs
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<div id="search-form-wrap">
|
||||||
|
<% if (theme.search.insight) { %>
|
||||||
|
<form class="search-form">
|
||||||
|
<input type="text" class="ins-search-input search-form-input" placeholder="<%= __('index.search') %>" />
|
||||||
|
<button type="submit" class="search-form-submit"></button>
|
||||||
|
</form>
|
||||||
|
<%- partial('search/insight') %>
|
||||||
|
<% } else if (theme.search.swiftype) { %>
|
||||||
|
<div class="search-form">
|
||||||
|
<input type="text" class="st-default-search-input search-form-input" placeholder="<%= __('index.search') %>" />
|
||||||
|
</div>
|
||||||
|
<%- partial('search/swiftype') %>
|
||||||
|
<% } else if (theme.search.baidu) { %>
|
||||||
|
<%- partial('search/baidu') %>
|
||||||
|
<% } else { %>
|
||||||
|
<%- search_form({text: __('index.search')}) %>
|
||||||
|
<% } %>
|
||||||
|
</div>
|
29
themes/hueman/layout/search/insight.ejs
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<div class="ins-search">
|
||||||
|
<div class="ins-search-mask"></div>
|
||||||
|
<div class="ins-search-container">
|
||||||
|
<div class="ins-input-wrapper">
|
||||||
|
<input type="text" class="ins-search-input" placeholder="<%= __('insight.hint') %>" />
|
||||||
|
<span class="ins-close ins-selectable"><i class="fa fa-times-circle"></i></span>
|
||||||
|
</div>
|
||||||
|
<div class="ins-section-wrapper">
|
||||||
|
<div class="ins-section-container"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
(function (window) {
|
||||||
|
var INSIGHT_CONFIG = {
|
||||||
|
TRANSLATION: {
|
||||||
|
POSTS: '<%= __("insight.posts") %>',
|
||||||
|
PAGES: '<%= __("insight.pages") %>',
|
||||||
|
CATEGORIES: '<%= __("insight.categories") %>',
|
||||||
|
TAGS: '<%= __("insight.tags") %>',
|
||||||
|
UNTITLED: '<%= __("insight.untitled") %>',
|
||||||
|
},
|
||||||
|
ROOT_URL: '<%= config.root %>',
|
||||||
|
CONTENT_URL: '<%- url_for("/content.json")%>',
|
||||||
|
};
|
||||||
|
window.INSIGHT_CONFIG = INSIGHT_CONFIG;
|
||||||
|
})(window);
|
||||||
|
</script>
|
||||||
|
<%- js('js/insight') %>
|
26
themes/hueman/layout/search/swiftype.ejs
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<script type="text/javascript">
|
||||||
|
(function(w,d,t,u,n,s,e) {w['SwiftypeObject']=n;w[n]=w[n]||function() {
|
||||||
|
(w[n].q=w[n].q||[]).push(arguments);};s=d.createElement(t);
|
||||||
|
e=d.getElementsByTagName(t)[0];s.async=1;s.src=u;e.parentNode.insertBefore(s,e);
|
||||||
|
})(window,document,'script','//s.swiftypecdn.com/install/v2/st.js','_st');
|
||||||
|
|
||||||
|
_st('install','<%= theme.search.swiftype %>','2.0.0');
|
||||||
|
</script>
|
||||||
|
<style>
|
||||||
|
.st-ui-injected-overlay-container,
|
||||||
|
.st-ui-injected-overlay-container *:not(select) {
|
||||||
|
font-family: inherit !important;
|
||||||
|
}
|
||||||
|
section.st-ui-content.st-search-results a.st-ui-result .st-ui-type-heading {
|
||||||
|
color: <%= theme.customize.theme_color %> !important;
|
||||||
|
}
|
||||||
|
.st-ui-injected-overlay-container .st-ui-header input[type="text"]:focus {
|
||||||
|
border-bottom: 2px solid <%= theme.customize.theme_color %>;
|
||||||
|
}
|
||||||
|
.st-ui-injected-overlay-container .st-ui-footer a.st-ui-pagination-link {
|
||||||
|
color: <%= theme.customize.theme_color %>;
|
||||||
|
}
|
||||||
|
.st-ui-injected-overlay-container .st-ui-footer a.st-ui-pagination-link span.st-ui-arrow {
|
||||||
|
border-color: <%= theme.customize.theme_color %>;
|
||||||
|
}
|
||||||
|
</style>
|
52
themes/hueman/layout/share/addtoany.ejs
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
<div class="a2a_kit a2a_default_style">
|
||||||
|
<a class="a2a_dd" href="https://www.addtoany.com/share">Share</a>
|
||||||
|
<span class="a2a_divider"></span>
|
||||||
|
<a class="a2a_button_facebook"></a>
|
||||||
|
<a class="a2a_button_twitter"></a>
|
||||||
|
<a class="a2a_button_google_plus"></a>
|
||||||
|
<a class="a2a_button_pinterest"></a>
|
||||||
|
<a class="a2a_button_tumblr"></a>
|
||||||
|
</div>
|
||||||
|
<script type="text/javascript" src="//static.addtoany.com/menu/page.js"></script>
|
||||||
|
<style>
|
||||||
|
.a2a_menu {
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
.a2a_menu a {
|
||||||
|
margin: 2px 0;
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 16px;
|
||||||
|
border-radius: 4px;
|
||||||
|
color: inherit !important;
|
||||||
|
font-family: 'Microsoft Yahei';
|
||||||
|
}
|
||||||
|
#a2apage_dropdown {
|
||||||
|
margin: 10px 0;
|
||||||
|
}
|
||||||
|
.a2a_mini_services {
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
a.a2a_i,
|
||||||
|
i.a2a_i {
|
||||||
|
width: 122px;
|
||||||
|
line-height: 16px;
|
||||||
|
}
|
||||||
|
a.a2a_i .a2a_svg,
|
||||||
|
a.a2a_more .a2a_svg {
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
line-height: 16px;
|
||||||
|
vertical-align: top;
|
||||||
|
background-size: 16px;
|
||||||
|
}
|
||||||
|
a.a2a_i {
|
||||||
|
border: none !important;
|
||||||
|
}
|
||||||
|
a.a2a_menu_show_more_less {
|
||||||
|
margin: 0;
|
||||||
|
padding: 10px 0;
|
||||||
|
line-height: 16px;
|
||||||
|
}
|
||||||
|
.a2a_mini_services:after{content:".";display:block;height:0;clear:both;visibility:hidden}
|
||||||
|
.a2a_mini_services{*+height:1%;}
|
||||||
|
</style>
|
34
themes/hueman/layout/share/bdshare.ejs
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
<div class="bdsharebuttonbox">
|
||||||
|
<a href="#" class="bds_more" data-cmd="more">分享到:</a>
|
||||||
|
<a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间">QQ空间</a>
|
||||||
|
<a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博">新浪微博</a>
|
||||||
|
<a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博">腾讯微博</a>
|
||||||
|
<a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网">人人网</a>
|
||||||
|
<a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信">微信</a>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{"bdSize":16}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='//bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];
|
||||||
|
</script>
|
||||||
|
<style>
|
||||||
|
.bdshare_popup_box {
|
||||||
|
border-radius: 4px;
|
||||||
|
border: #e1e1e1 solid 1px;
|
||||||
|
}
|
||||||
|
.bdshare-button-style0-16 a,
|
||||||
|
.bdshare-button-style0-16 .bds_more {
|
||||||
|
padding-left: 20px;
|
||||||
|
margin: 6px 10px 6px 0;
|
||||||
|
}
|
||||||
|
.bdshare_dialog_list a,
|
||||||
|
.bdshare_popup_list a,
|
||||||
|
.bdshare_popup_bottom a {
|
||||||
|
font-family: 'Microsoft Yahei';
|
||||||
|
}
|
||||||
|
.bdshare_popup_top {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.bdshare_popup_bottom {
|
||||||
|
height: auto;
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
</style>
|
59
themes/hueman/layout/share/default.ejs
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
<a data-url="<%- post.permalink %>" data-id="<%= post._id %>" class="article-share-link"><i class="fa fa-share"></i><%=__('article.share')%></a>
|
||||||
|
<script>
|
||||||
|
(function ($) {
|
||||||
|
$('body').on('click', function() {
|
||||||
|
$('.article-share-box.on').removeClass('on');
|
||||||
|
}).on('click', '.article-share-link', function(e) {
|
||||||
|
e.stopPropagation();
|
||||||
|
|
||||||
|
var $this = $(this),
|
||||||
|
url = $this.attr('data-url'),
|
||||||
|
encodedUrl = encodeURIComponent(url),
|
||||||
|
id = 'article-share-box-' + $this.attr('data-id'),
|
||||||
|
offset = $this.offset(),
|
||||||
|
box;
|
||||||
|
|
||||||
|
if ($('#' + id).length) {
|
||||||
|
box = $('#' + id);
|
||||||
|
|
||||||
|
if (box.hasClass('on')){
|
||||||
|
box.removeClass('on');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
var html = [
|
||||||
|
'<div id="' + id + '" class="article-share-box">',
|
||||||
|
'<input class="article-share-input" value="' + url + '">',
|
||||||
|
'<div class="article-share-links">',
|
||||||
|
'<a href="https://twitter.com/intent/tweet?url=' + encodedUrl + '" class="article-share-twitter" target="_blank" title="Twitter"></a>',
|
||||||
|
'<a href="https://www.facebook.com/sharer.php?u=' + encodedUrl + '" class="article-share-facebook" target="_blank" title="Facebook"></a>',
|
||||||
|
'<a href="http://pinterest.com/pin/create/button/?url=' + encodedUrl + '" class="article-share-pinterest" target="_blank" title="Pinterest"></a>',
|
||||||
|
'<a href="https://plus.google.com/share?url=' + encodedUrl + '" class="article-share-google" target="_blank" title="Google+"></a>',
|
||||||
|
'</div>',
|
||||||
|
'</div>'
|
||||||
|
].join('');
|
||||||
|
|
||||||
|
box = $(html);
|
||||||
|
|
||||||
|
$('body').append(box);
|
||||||
|
}
|
||||||
|
|
||||||
|
$('.article-share-box.on').hide();
|
||||||
|
|
||||||
|
box.css({
|
||||||
|
top: offset.top + 25,
|
||||||
|
left: offset.left
|
||||||
|
}).addClass('on');
|
||||||
|
|
||||||
|
}).on('click', '.article-share-box', function (e) {
|
||||||
|
e.stopPropagation();
|
||||||
|
}).on('click', '.article-share-box-input', function () {
|
||||||
|
$(this).select();
|
||||||
|
}).on('click', '.article-share-box-link', function (e) {
|
||||||
|
e.preventDefault();
|
||||||
|
e.stopPropagation();
|
||||||
|
|
||||||
|
window.open(this.href, 'article-share-box-window-' + Date.now(), 'width=500,height=450');
|
||||||
|
});
|
||||||
|
})(jQuery);
|
||||||
|
</script>
|
12
themes/hueman/layout/share/index.ejs
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<% if (theme.share === 'jiathis') { %>
|
||||||
|
<%- partial('jiathis') %>
|
||||||
|
<% } %>
|
||||||
|
<% if (theme.share === 'bdshare') { %>
|
||||||
|
<%- partial('bdshare') %>
|
||||||
|
<% } %>
|
||||||
|
<% if (theme.share === 'addtoany') { %>
|
||||||
|
<%- partial('addtoany') %>
|
||||||
|
<% } %>
|
||||||
|
<% if (!theme.share || theme.share === 'default') { %>
|
||||||
|
<%- partial('default', { post: post }) %>
|
||||||
|
<% } %>
|